eslint-config-decent 2.2.0 → 2.2.1
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/index.cjs +0 -1
- package/dist/index.mjs +0 -1
- package/package.json +12 -12
- package/src/index.ts +0 -1
- package/src/jsdoc.ts +0 -1
- package/src/react.ts +2 -1
- package/src/testingLibrary.ts +2 -1
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-decent",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "A decent ESLint configuration",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -73,36 +73,36 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@eslint/compat": "1.1.1",
|
|
76
|
-
"@eslint/js": "9.
|
|
77
|
-
"@typescript-eslint/utils": "8.
|
|
76
|
+
"@eslint/js": "9.10.0",
|
|
77
|
+
"@typescript-eslint/utils": "8.5.0",
|
|
78
78
|
"eslint-config-prettier": "9.1.0",
|
|
79
|
-
"eslint-plugin-import-x": "
|
|
80
|
-
"eslint-plugin-jest": "28.8.
|
|
79
|
+
"eslint-plugin-import-x": "4.2.1",
|
|
80
|
+
"eslint-plugin-jest": "28.8.3",
|
|
81
81
|
"eslint-plugin-jest-dom": "5.4.0",
|
|
82
82
|
"eslint-plugin-jsdoc": "50.2.2",
|
|
83
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
83
|
+
"eslint-plugin-jsx-a11y": "6.10.0",
|
|
84
84
|
"eslint-plugin-mocha": "10.5.0",
|
|
85
85
|
"eslint-plugin-prettier": "5.2.1",
|
|
86
86
|
"eslint-plugin-promise": "7.1.0",
|
|
87
|
-
"eslint-plugin-react": "7.35.
|
|
87
|
+
"eslint-plugin-react": "7.35.2",
|
|
88
88
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
89
89
|
"eslint-plugin-security": "3.0.1",
|
|
90
90
|
"eslint-plugin-testing-library": "6.3.0",
|
|
91
91
|
"eslint-plugin-unicorn": "55.0.0",
|
|
92
92
|
"globals": "15.9.0",
|
|
93
|
-
"typescript-eslint": "8.
|
|
93
|
+
"typescript-eslint": "8.5.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@swc/core": "^1.7.
|
|
96
|
+
"@swc/core": "^1.7.24",
|
|
97
97
|
"@types/node": ">=22",
|
|
98
|
-
"eslint": "^9.
|
|
98
|
+
"eslint": "^9.10.0",
|
|
99
99
|
"husky": "^9.1.5",
|
|
100
|
-
"lint-staged": "^15.2.
|
|
100
|
+
"lint-staged": "^15.2.10",
|
|
101
101
|
"markdownlint-cli": "^0.41.0",
|
|
102
102
|
"npm-run-all": "^4.1.5",
|
|
103
103
|
"pinst": "^3.0.0",
|
|
104
104
|
"prettier": "^3.3.3",
|
|
105
|
-
"typescript": "^5.
|
|
105
|
+
"typescript": "^5.6.2",
|
|
106
106
|
"unbuild": "2.0.0"
|
|
107
107
|
},
|
|
108
108
|
"overrides": {
|
package/src/index.ts
CHANGED
package/src/jsdoc.ts
CHANGED
package/src/react.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FixupPluginDefinition } from '@eslint/compat';
|
|
1
2
|
import { fixupPluginRules } from '@eslint/compat';
|
|
2
3
|
import type { TSESLint } from '@typescript-eslint/utils';
|
|
3
4
|
import a11y from 'eslint-plugin-jsx-a11y';
|
|
@@ -16,7 +17,7 @@ const base: TSESLint.FlatConfig.Config = {
|
|
|
16
17
|
plugins: {
|
|
17
18
|
'jsx-a11y': a11y,
|
|
18
19
|
react,
|
|
19
|
-
'react-hooks': fixupPluginRules(reactHooks) as typeof reactHooks,
|
|
20
|
+
'react-hooks': fixupPluginRules(reactHooks as FixupPluginDefinition) as typeof reactHooks,
|
|
20
21
|
},
|
|
21
22
|
rules: {
|
|
22
23
|
...a11y.configs.recommended.rules,
|
package/src/testingLibrary.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { FixupPluginDefinition } from '@eslint/compat';
|
|
1
2
|
import { fixupPluginRules } from '@eslint/compat';
|
|
2
3
|
import type { TSESLint } from '@typescript-eslint/utils';
|
|
3
4
|
import testingLibrary from 'eslint-plugin-testing-library';
|
|
4
5
|
|
|
5
6
|
const base: TSESLint.FlatConfig.Config = {
|
|
6
7
|
plugins: {
|
|
7
|
-
'testing-library': fixupPluginRules(testingLibrary) as typeof testingLibrary,
|
|
8
|
+
'testing-library': fixupPluginRules(testingLibrary as FixupPluginDefinition) as typeof testingLibrary,
|
|
8
9
|
},
|
|
9
10
|
rules: {
|
|
10
11
|
...testingLibrary.configs['flat/react'].rules,
|