eslint-config-scratch 12.0.51 → 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.
Files changed (2) hide show
  1. package/lib/eslint.mjs +4 -4
  2. package/package.json +2 -2
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": "12.0.51",
3
+ "version": "13.0.0",
4
4
  "description": "Shareable ESLint config for Scratch",
5
5
  "main": "./lib/index.mjs",
6
6
  "scripts": {
@@ -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": "2.32.0",
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",