eslint-config-decent 4.2.5 → 4.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/oxlint.cjs CHANGED
@@ -234,18 +234,6 @@ const importRules = {
234
234
  "import/first": "error",
235
235
  "import/no-duplicates": "error"
236
236
  };
237
- const importCompatRules = {
238
- "import-compat/newline-after-import": "error",
239
- "import-compat/order": [
240
- "error",
241
- {
242
- "newlines-between": "always",
243
- alphabetize: { order: "asc", caseInsensitive: true },
244
- pathGroupsExcludedImportTypes: ["builtin"],
245
- groups: ["builtin", "external", "internal", "parent", "sibling", "index"]
246
- }
247
- ]
248
- };
249
237
  const unicornRules = {
250
238
  "unicorn/no-array-method-this-argument": "error",
251
239
  "unicorn/prefer-array-find": "error",
@@ -544,7 +532,6 @@ function oxlintConfig(options) {
544
532
  "eslint-plugin-security",
545
533
  // -compat JS plugins for gap rules in partially-supported native plugins
546
534
  { name: "eslint-compat", specifier: "oxlint-plugin-eslint" },
547
- { name: "import-compat", specifier: "eslint-plugin-import-x" },
548
535
  { name: "unicorn-compat", specifier: "eslint-plugin-unicorn" },
549
536
  { name: "jsdoc-compat", specifier: "eslint-plugin-jsdoc" },
550
537
  { name: "stylistic-compat", specifier: "@stylistic/eslint-plugin" },
@@ -562,7 +549,6 @@ function oxlintConfig(options) {
562
549
  ...eslintCompatRules,
563
550
  ...typescriptRules,
564
551
  ...importRules,
565
- ...importCompatRules,
566
552
  ...unicornRules,
567
553
  ...unicornCompatRules,
568
554
  ...promiseRules,
package/dist/oxlint.mjs CHANGED
@@ -232,18 +232,6 @@ const importRules = {
232
232
  "import/first": "error",
233
233
  "import/no-duplicates": "error"
234
234
  };
235
- const importCompatRules = {
236
- "import-compat/newline-after-import": "error",
237
- "import-compat/order": [
238
- "error",
239
- {
240
- "newlines-between": "always",
241
- alphabetize: { order: "asc", caseInsensitive: true },
242
- pathGroupsExcludedImportTypes: ["builtin"],
243
- groups: ["builtin", "external", "internal", "parent", "sibling", "index"]
244
- }
245
- ]
246
- };
247
235
  const unicornRules = {
248
236
  "unicorn/no-array-method-this-argument": "error",
249
237
  "unicorn/prefer-array-find": "error",
@@ -542,7 +530,6 @@ function oxlintConfig(options) {
542
530
  "eslint-plugin-security",
543
531
  // -compat JS plugins for gap rules in partially-supported native plugins
544
532
  { name: "eslint-compat", specifier: "oxlint-plugin-eslint" },
545
- { name: "import-compat", specifier: "eslint-plugin-import-x" },
546
533
  { name: "unicorn-compat", specifier: "eslint-plugin-unicorn" },
547
534
  { name: "jsdoc-compat", specifier: "eslint-plugin-jsdoc" },
548
535
  { name: "stylistic-compat", specifier: "@stylistic/eslint-plugin" },
@@ -560,7 +547,6 @@ function oxlintConfig(options) {
560
547
  ...eslintCompatRules,
561
548
  ...typescriptRules,
562
549
  ...importRules,
563
- ...importCompatRules,
564
550
  ...unicornRules,
565
551
  ...unicornCompatRules,
566
552
  ...promiseRules,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-decent",
3
- "version": "4.2.5",
3
+ "version": "4.2.7",
4
4
  "description": "A decent ESLint configuration",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -80,6 +80,14 @@
80
80
  "eslint": "^9.0.0 || ^10.0.0",
81
81
  "oxlint": ">=1.53.0",
82
82
  "oxlint-tsgolint": ">=0.1.0",
83
+ "oxlint-plugin-eslint": ">=1.52.0",
84
+ "@stylistic/eslint-plugin": ">=5.0.0",
85
+ "@vitest/eslint-plugin": ">=1.0.0",
86
+ "eslint-plugin-jsdoc": ">=62.0.0",
87
+ "eslint-plugin-react": ">=7.0.0",
88
+ "eslint-plugin-security": ">=4.0.0",
89
+ "eslint-plugin-testing-library": ">=7.0.0",
90
+ "eslint-plugin-unicorn": ">=63.0.0",
83
91
  "typescript": ">=5.5.0"
84
92
  },
85
93
  "peerDependenciesMeta": {
@@ -88,6 +96,30 @@
88
96
  },
89
97
  "oxlint-tsgolint": {
90
98
  "optional": true
99
+ },
100
+ "oxlint-plugin-eslint": {
101
+ "optional": true
102
+ },
103
+ "@stylistic/eslint-plugin": {
104
+ "optional": true
105
+ },
106
+ "@vitest/eslint-plugin": {
107
+ "optional": true
108
+ },
109
+ "eslint-plugin-jsdoc": {
110
+ "optional": true
111
+ },
112
+ "eslint-plugin-react": {
113
+ "optional": true
114
+ },
115
+ "eslint-plugin-security": {
116
+ "optional": true
117
+ },
118
+ "eslint-plugin-testing-library": {
119
+ "optional": true
120
+ },
121
+ "eslint-plugin-unicorn": {
122
+ "optional": true
91
123
  }
92
124
  },
93
125
  "dependencies": {
package/src/oxlint.ts CHANGED
@@ -255,20 +255,6 @@ const importRules: Record<string, DummyRule> = {
255
255
  'import/no-duplicates': 'error',
256
256
  };
257
257
 
258
- // Gap rules not yet natively supported — covered via import-compat JS plugin
259
- const importCompatRules: Record<string, DummyRule> = {
260
- 'import-compat/newline-after-import': 'error',
261
- 'import-compat/order': [
262
- 'error',
263
- {
264
- 'newlines-between': 'always',
265
- alphabetize: { order: 'asc', caseInsensitive: true },
266
- pathGroupsExcludedImportTypes: ['builtin'],
267
- groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
268
- },
269
- ],
270
- };
271
-
272
258
  const unicornRules: Record<string, DummyRule> = {
273
259
  'unicorn/no-array-method-this-argument': 'error',
274
260
  'unicorn/prefer-array-find': 'error',
@@ -594,7 +580,6 @@ export function oxlintConfig(options?: OxlintConfigOptions): OxlintConfig {
594
580
  'eslint-plugin-security',
595
581
  // -compat JS plugins for gap rules in partially-supported native plugins
596
582
  { name: 'eslint-compat', specifier: 'oxlint-plugin-eslint' },
597
- { name: 'import-compat', specifier: 'eslint-plugin-import-x' },
598
583
  { name: 'unicorn-compat', specifier: 'eslint-plugin-unicorn' },
599
584
  { name: 'jsdoc-compat', specifier: 'eslint-plugin-jsdoc' },
600
585
  { name: 'stylistic-compat', specifier: '@stylistic/eslint-plugin' },
@@ -614,7 +599,6 @@ export function oxlintConfig(options?: OxlintConfigOptions): OxlintConfig {
614
599
  ...eslintCompatRules,
615
600
  ...typescriptRules,
616
601
  ...importRules,
617
- ...importCompatRules,
618
602
  ...unicornRules,
619
603
  ...unicornCompatRules,
620
604
  ...promiseRules,