eslint-plugin-oxlint
Advanced tools
Comparing version 0.0.1-beta.3 to 0.0.1-beta.4
@@ -11,5 +11,5 @@ import oxlint from "./index.js" | ||
eslint.configs.recommended, | ||
oxlint, | ||
unicorn.configs["flat/recommended"], | ||
...compat.extends("plugin:@typescript-eslint/recommended"), | ||
oxlint, | ||
] |
13
index.js
@@ -1,10 +0,9 @@ | ||
import { deepscanRules, importRules, eslintRules, typescriptRules} from './rules.js' | ||
import * as ruleMaps from './rules.js' | ||
// merge objects into one array | ||
const rules = Object.values(ruleMaps).reduce((accumulator, object) => ({ ...accumulator, ...object })) | ||
export default { | ||
rules: { | ||
...deepscanRules, | ||
...importRules, | ||
...eslintRules, | ||
...typescriptRules | ||
} | ||
rules, | ||
}; |
{ | ||
"name": "eslint-plugin-oxlint", | ||
"version": "0.0.1-beta.3", | ||
"version": "0.0.1-beta.4", | ||
"description": "Turn off all rules already supported by oxlint", | ||
@@ -17,2 +17,9 @@ "type": "module", | ||
}, | ||
"author": "Dunqing <dengqing0821@gmail.com>", | ||
"homepage": "https://github.com/oxc-project/eslint-plugin-oxlint", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:oxc-project/eslint-plugin-oxlint.git" | ||
}, | ||
"license": "MIT", | ||
"keywords": [ | ||
@@ -24,4 +31,2 @@ "oxc", | ||
], | ||
"author": "Dunqing <dengqing0821@gmail.com>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
@@ -28,0 +33,0 @@ "@eslint/eslintrc": "^3.0.0", |
@@ -23,4 +23,5 @@ # eslint-plugin-oxlint | ||
export default [ | ||
... // other plugins | ||
// oxlint should be the last one | ||
oxlint, | ||
... // other plugins | ||
] | ||
@@ -27,0 +28,0 @@ ``` |
18
rules.js
// These rules are automatically generated by scripts/generate-rules.ts | ||
export const deepscanRules = { | ||
"deepscan/bad-array-method-on-arguments": "off", | ||
"deepscan/bad-bitwise-operator": "off", | ||
"deepscan/bad-char-at-comparison": "off", | ||
"deepscan/bad-comparison-sequence": "off", | ||
"deepscan/bad-min-max-func": "off", | ||
"deepscan/bad-replace-all-arg": "off", | ||
"deepscan/missing-throw": "off", | ||
"deepscan/number-arg-out-of-range": "off", | ||
"deepscan/uninvoked-array-callback": "off" | ||
} | ||
export const eslintRules = { | ||
@@ -180,2 +168,3 @@ "array-callback-return": "off", | ||
"unicorn/prefer-modern-dom-apis": "off", | ||
"unicorn/prefer-modern-math-apis": "off", | ||
"unicorn/prefer-native-coercion-functions": "off", | ||
@@ -209,2 +198,3 @@ "unicorn/no-useless-spread": "off", | ||
"react/jsx-no-useless-fragment": "off", | ||
"react/jsx-no-undef": "off", | ||
"react/react-in-jsx-scope": "off", | ||
@@ -234,2 +224,3 @@ "react/no-children-prop": "off", | ||
"jsx-a11y/aria-props": "off", | ||
"jsx-a11y/aria-unsupported-elements": "off", | ||
"jsx-a11y/heading-has-content": "off", | ||
@@ -241,8 +232,11 @@ "jsx-a11y/html-has-lang": "off", | ||
"jsx-a11y/media-has-caption": "off", | ||
"jsx-a11y/mouse-events-have-key-events": "off", | ||
"jsx-a11y/no-access-key": "off", | ||
"jsx-a11y/no-aria-hidden-on-focusable": "off", | ||
"jsx-a11y/no-autofocus": "off", | ||
"jsx-a11y/prefer-tag-over-role": "off", | ||
"jsx-a11y/scope": "off", | ||
"jsx-a11y/tab-index-no-positive": "off", | ||
"jsx-a11y/aria-role": "off", | ||
"jsx-a11y/no-distracting-elements": "off" | ||
} |
@@ -11,3 +11,3 @@ import axios from 'axios' | ||
const rulesMap = new Map<string, Array<string>>() | ||
const ignoreScope = new Set(["oxc", "deepscane"]) | ||
const ignoreScope = new Set(["oxc", "deepscan"]) | ||
@@ -14,0 +14,0 @@ const scopeMaps = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
26881
1
45
0
384