eslint-config-scratch 12.0.50 → 13.0.0
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/lib/eslint.mjs +4 -4
- package/package.json +3 -3
package/lib/eslint.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import eslintConfigPrettier from 'eslint-config-prettier/flat'
|
|
|
2
2
|
import formatjs from 'eslint-plugin-formatjs'
|
|
3
3
|
import html from 'eslint-plugin-html'
|
|
4
4
|
import htmlSettings from 'eslint-plugin-html/src/settings.js'
|
|
5
|
-
import importPlugin from 'eslint-plugin-import'
|
|
5
|
+
import importPlugin from 'eslint-plugin-import-x'
|
|
6
6
|
import jsdoc from 'eslint-plugin-jsdoc'
|
|
7
7
|
import jsxA11y from 'eslint-plugin-jsx-a11y'
|
|
8
8
|
import react from 'eslint-plugin-react'
|
|
@@ -104,12 +104,12 @@ const allScriptRules = defineConfig([
|
|
|
104
104
|
'formatjs/no-offset': ['error'],
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
|
-
// eslint-plugin-import
|
|
107
|
+
// eslint-plugin-import-x
|
|
108
108
|
{
|
|
109
|
-
name: 'scratch/allScriptRules[eslint-plugin-import]',
|
|
109
|
+
name: 'scratch/allScriptRules[eslint-plugin-import-x]',
|
|
110
110
|
plugins: importPlugin.flatConfigs.recommended.plugins,
|
|
111
111
|
rules: {
|
|
112
|
-
'import/no-duplicates': 'error', // Forbid duplicate imports
|
|
112
|
+
'import-x/no-duplicates': 'error', // Forbid duplicate imports
|
|
113
113
|
},
|
|
114
114
|
},
|
|
115
115
|
// eslint-plugin-jsx-a11y
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-scratch",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Shareable ESLint config for Scratch",
|
|
5
5
|
"main": "./lib/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/eslint-parser": "7.28.6",
|
|
34
34
|
"@eslint-community/eslint-plugin-eslint-comments": "4.6.0",
|
|
35
|
-
"@eslint/eslintrc": "3.3.
|
|
35
|
+
"@eslint/eslintrc": "3.3.4",
|
|
36
36
|
"@eslint/js": "9.39.3",
|
|
37
37
|
"@eslint/markdown": "7.5.1",
|
|
38
38
|
"@stylistic/eslint-plugin": "^5.3.1",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"eslint-config-prettier": "10.1.8",
|
|
41
41
|
"eslint-plugin-formatjs": "5.4.2",
|
|
42
42
|
"eslint-plugin-html": "8.1.4",
|
|
43
|
-
"eslint-plugin-import": "
|
|
43
|
+
"eslint-plugin-import-x": "4.16.1",
|
|
44
44
|
"eslint-plugin-jsdoc": "61.7.1",
|
|
45
45
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
46
46
|
"eslint-plugin-react": "7.37.5",
|