Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-oxlint

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-oxlint - npm Package Compare versions

Comparing version 0.9.10 to 0.10.0

dist/configs-by-category.cjs

50

package.json
{
"name": "eslint-plugin-oxlint",
"version": "0.9.10",
"version": "0.10.0",
"description": "Turn off all rules already supported by oxlint",
"type": "module",
"packageManager": "pnpm@9.12.0",
"packageManager": "pnpm@9.12.1",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.mjs",
"require": "./lib/index.cjs",
"default": "./lib/index.mjs"
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.mjs"
},
"./rules-by-category": {
"types": "./lib/rules-by-category.d.ts",
"import": "./lib/rules-by-category.mjs",
"require": "./lib/rules-by-category.cjs",
"default": "./lib/rules-by-category.mjs"
"types": "./dist/rules-by-category.d.ts",
"import": "./dist/rules-by-category.mjs",
"require": "./dist/rules-by-category.cjs",
"default": "./dist/rules-by-category.mjs"
},
"./rules-by-scope": {
"types": "./lib/rules-by-scope.d.ts",
"import": "./lib/rules-by-scope.mjs",
"require": "./lib/rules-by-scope.cjs",
"default": "./lib/rules-by-scope.mjs"
"types": "./dist/rules-by-scope.d.ts",
"import": "./dist/rules-by-scope.mjs",
"require": "./dist/rules-by-scope.cjs",
"default": "./dist/rules-by-scope.mjs"
}
},
"files": [
"lib",
"dist",
"src"

@@ -39,6 +39,6 @@ ],

"scripts": {
"generate": "node --import @oxc-node/core/register ./scripts/generate.ts && pnpm format",
"generate": "node --import @oxc-node/core/register ./scripts/generate.ts",
"clone": "node --import @oxc-node/core/register ./scripts/sparse-clone.ts",
"build": "vite build",
"lint": "npx oxlint && npx eslint",
"lint": "npx oxlint && npx eslint --flag unstable_ts_config",
"format": "npx prettier --write .",

@@ -56,13 +56,10 @@ "release": "bumpp package.json",

"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.12.0",
"@oxc-node/core": "^0.0.15",
"@types/eslint": "^9.0.0",
"@types/node": "^22.0.0",
"@types/shelljs": "^0.8.15",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@vitest/coverage-v8": "^2.0.0",
"bumpp": "^9.4.1",
"dedent": "^1.5.3",
"eslint": "^8.57.0",
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",

@@ -73,6 +70,8 @@ "eslint-plugin-unicorn": "^56.0.0",

"memfs": "^4.9.2",
"oxlint": "^0.9.10",
"oxlint": "^0.10.0",
"prettier": "^3.3.1",
"scule": "^1.3.0",
"shelljs": "^0.8.5",
"typescript": "^5.4.5",
"typescript-eslint": "^8.8.1",
"vite": "^5.2.13",

@@ -83,8 +82,5 @@ "vite-plugin-dts": "^4.0.0",

"lint-staged": {
"*.{js,cjs,ts}": "eslint",
"*.{js,cjs,ts}": "eslint --flag unstable_ts_config",
"*": "prettier --ignore-unknown --write"
},
"dependencies": {
"scule": "^1.3.0"
},
"volta": {

@@ -91,0 +87,0 @@ "node": "20.14.0"

@@ -116,10 +116,4 @@ # eslint-plugin-oxlint

build cjs and esm versions of the library
```shell
pnpm build
```
## License
[MIT](https://github.com/Dunqing/eslint-plugin-oxlint/blob/main/LICENSE)
import * as ruleMapsByScope from './rules-by-scope.js';
import * as ruleMapsByCategory from './rules-by-category.js';
import { createFlatRulesConfig } from './utils.js';
import configByScope from './configs-by-scope.js';
import configByCategory from './configs-by-category.js';
const allRules: Record<string, string> = Object.assign(
type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (
x: infer I
) => void
? I
: never;
type RulesGroups = keyof typeof ruleMapsByScope;
type AllRules = (typeof ruleMapsByScope)[RulesGroups];
const allRules: UnionToIntersection<AllRules> = Object.assign(
{},

@@ -30,5 +40,5 @@ ...Object.values(ruleMapsByScope)

},
...createFlatRulesConfig(ruleMapsByScope),
...createFlatRulesConfig(ruleMapsByCategory),
...configByScope,
...configByCategory,
},
};

@@ -12,2 +12,3 @@ // These rules are automatically generated by scripts/generate-rules.ts

'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'off',
'no-self-compare': 'off',

@@ -36,3 +37,3 @@ radix: 'off',

'unicorn/prefer-event-target': 'off',
};
} as const;

@@ -51,3 +52,3 @@ const nurseryRules = {

'tree-shaking/no-side-effects-in-initialization': 'off',
};
} as const;

@@ -60,2 +61,3 @@ const restrictionRules = {

'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-eval': 'off',

@@ -87,3 +89,3 @@ 'no-restricted-globals': 'off',

'unicorn/no-magic-array-flat-depth': 'off',
};
} as const;

@@ -93,4 +95,6 @@ const styleRules = {

'default-param-last': 'off',
'@typescript-eslint/default-param-last': 'off',
'guard-for-in': 'off',
'max-params': 'off',
'@typescript-eslint/max-params': 'off',
'no-continue': 'off',

@@ -137,6 +141,7 @@ 'no-label-var': 'off',

'vitest/prefer-each': 'off',
};
} as const;
const conditionalFixRules = {
eqeqeq: 'off',
'no-else-return': 'off',
'prefer-numeric-literals': 'off',

@@ -169,14 +174,15 @@ 'sort-imports': 'off',

'unicorn/require-array-join-separator': 'off',
};
} as const;
const dangerousFixRules = {
'for-direction': 'off',
};
} as const;
const conditionalFixSuggestionRules = {
'func-names': 'off',
};
} as const;
const pendingRules = {
'no-array-constructor': 'off',
'@typescript-eslint/no-array-constructor': 'off',
'no-empty-static-block': 'off',

@@ -187,2 +193,3 @@ 'no-extra-boolean-cast': 'off',

'no-magic-numbers': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'no-new-wrappers': 'off',

@@ -231,3 +238,3 @@ 'no-nonoctal-decimal-escape': 'off',

'vitest/require-local-test-context-for-concurrent-snapshots': 'off',
};
} as const;

@@ -245,2 +252,3 @@ const correctnessRules = {

'no-dupe-class-members': 'off',
'@typescript-eslint/no-dupe-class-members': 'off',
'no-dupe-else-if': 'off',

@@ -258,2 +266,3 @@ 'no-dupe-keys': 'off',

'no-loss-of-precision': 'off',
'@typescript-eslint/no-loss-of-precision': 'off',
'no-new-native-nonconstructor': 'off',

@@ -344,3 +353,2 @@ 'no-obj-calls': 'off',

'react/void-dom-elements-no-children': 'off',
'security/api-keys': 'off',
'@typescript-eslint/no-duplicate-enum-values': 'off',

@@ -359,3 +367,3 @@ '@typescript-eslint/no-extra-non-null-assertion': 'off',

'vitest/no-conditional-tests': 'off',
};
} as const;

@@ -368,7 +376,7 @@ const perfRules = {

'react-perf/jsx-no-new-object-as-prop': 'off',
};
} as const;
const conditionalSuggestionFixRules = {
'no-compare-neg-zero': 'off',
};
} as const;

@@ -381,2 +389,3 @@ const fixRules = {

'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': 'off',
'no-useless-escape': 'off',

@@ -449,7 +458,7 @@ 'no-var': 'off',

'vitest/prefer-to-be-truthy': 'off',
};
} as const;
const suggestionRules = {
'no-empty': 'off',
};
} as const;

@@ -459,3 +468,3 @@ const fixDangerousRules = {

'no-unexpected-multiline': 'off',
};
} as const;

@@ -475,12 +484,14 @@ const suspiciousRules = {

'@typescript-eslint/no-unnecessary-type-constraint': 'off',
};
} as const;
const conditionalSuggestionRules = {
'no-throw-literal': 'off',
'jsx-a11y/anchor-has-content': 'off',
} as const;
const dangerousSuggestionRules = {
'no-unused-vars': 'off',
};
'@typescript-eslint/no-unused-vars': 'off',
} as const;
const conditionalSuggestionRules = {
'jsx-a11y/anchor-has-content': 'off',
};
export {

@@ -502,4 +513,4 @@ pedanticRules,

suspiciousRules,
conditionalSuggestionRules,
dangerousSuggestionRules,
conditionalSuggestionRules,
};

@@ -41,2 +41,3 @@ // These rules are automatically generated by scripts/generate-rules.ts

'no-duplicate-case': 'off',
'no-else-return': 'off',
'no-empty': 'off',

@@ -86,2 +87,3 @@ 'no-empty-character-class': 'off',

'no-this-before-super': 'off',
'no-throw-literal': 'off',
'no-undef': 'off',

@@ -117,4 +119,53 @@ 'no-undefined': 'off',

'valid-typeof': 'off',
};
} as const;
const typescriptRules = {
'@typescript-eslint/default-param-last': 'off',
'@typescript-eslint/max-params': 'off',
'@typescript-eslint/no-array-constructor': 'off',
'@typescript-eslint/no-dupe-class-members': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-loss-of-precision': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-useless-constructor': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-tslint-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-confusing-non-null-assertion': 'off',
'@typescript-eslint/no-duplicate-enum-values': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-extra-non-null-assertion': 'off',
'@typescript-eslint/no-extraneous-class': 'off',
'@typescript-eslint/no-import-type-side-effects': 'off',
'@typescript-eslint/no-misused-new': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
'@typescript-eslint/no-useless-empty-export': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-wrapper-object-types': 'off',
'@typescript-eslint/prefer-as-const': 'off',
'@typescript-eslint/prefer-enum-initializers': 'off',
'@typescript-eslint/prefer-for-of': 'off',
'@typescript-eslint/prefer-function-type': 'off',
'@typescript-eslint/prefer-literal-enum-member': 'off',
'@typescript-eslint/prefer-namespace-keyword': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
} as const;
const importRules = {

@@ -137,3 +188,3 @@ 'import/default': 'off',

'import/no-webpack-loader-syntax': 'off',
};
} as const;

@@ -189,3 +240,3 @@ const jestRules = {

'jest/valid-title': 'off',
};
} as const;

@@ -211,3 +262,3 @@ const jsdocRules = {

'jsdoc/require-yields': 'off',
};
} as const;

@@ -242,3 +293,3 @@ const jsxA11yRules = {

'jsx-a11y/tabindex-no-positive': 'off',
};
} as const;

@@ -266,7 +317,7 @@ const nextjsRules = {

'nextjs/no-unwanted-polyfillio': 'off',
};
} as const;
const nodeRules = {
'node/no-exports-assign': 'off',
};
} as const;

@@ -283,3 +334,3 @@ const promiseRules = {

'promise/valid-params': 'off',
};
} as const;

@@ -315,3 +366,3 @@ const reactRules = {

'react/void-dom-elements-no-children': 'off',
};
} as const;

@@ -323,51 +374,8 @@ const reactPerfRules = {

'react-perf/jsx-no-new-object-as-prop': 'off',
};
} as const;
const securityRules = {
'security/api-keys': 'off',
};
const treeShakingRules = {
'tree-shaking/no-side-effects-in-initialization': 'off',
};
} as const;
const typescriptRules = {
'@typescript-eslint/adjacent-overload-signatures': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-tslint-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-confusing-non-null-assertion': 'off',
'@typescript-eslint/no-duplicate-enum-values': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-extra-non-null-assertion': 'off',
'@typescript-eslint/no-extraneous-class': 'off',
'@typescript-eslint/no-import-type-side-effects': 'off',
'@typescript-eslint/no-misused-new': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
'@typescript-eslint/no-useless-empty-export': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-wrapper-object-types': 'off',
'@typescript-eslint/prefer-as-const': 'off',
'@typescript-eslint/prefer-enum-initializers': 'off',
'@typescript-eslint/prefer-for-of': 'off',
'@typescript-eslint/prefer-function-type': 'off',
'@typescript-eslint/prefer-literal-enum-member': 'off',
'@typescript-eslint/prefer-namespace-keyword': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
};
const unicornRules = {

@@ -460,3 +468,3 @@ 'unicorn/catch-error-name': 'off',

'unicorn/throw-new-error': 'off',
};
} as const;

@@ -471,6 +479,7 @@ const vitestRules = {

'vitest/require-local-test-context-for-concurrent-snapshots': 'off',
};
} as const;
export {
eslintRules,
typescriptRules,
importRules,

@@ -485,7 +494,5 @@ jestRules,

reactPerfRules,
securityRules,
treeShakingRules,
typescriptRules,
unicornRules,
vitestRules,
};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc