@azat-io/eslint-config 2.32.0 → 2.34.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/dist/core/index.js +1 -0
- package/dist/index.js +2 -1
- package/dist/package-json/index.js +3 -0
- package/dist/utilities.js +2 -6
- package/dist/vitest/index.js +1 -0
- package/package.json +14 -14
package/dist/core/index.js
CHANGED
|
@@ -217,6 +217,7 @@ let core = (config) => {
|
|
|
217
217
|
"no-template-curly-in-string": "error",
|
|
218
218
|
"no-this-before-super": "error",
|
|
219
219
|
"no-throw-literal": "error",
|
|
220
|
+
"no-unassigned-vars": "error",
|
|
220
221
|
"no-undef": "error",
|
|
221
222
|
"no-undef-init": "error",
|
|
222
223
|
"no-unexpected-multiline": "error",
|
package/dist/index.js
CHANGED
|
@@ -29,9 +29,12 @@ let packageJson = (_config) => ({
|
|
|
29
29
|
"package-json/require-engines": "error",
|
|
30
30
|
"package-json/require-keywords": "error",
|
|
31
31
|
"package-json/require-name": "error",
|
|
32
|
+
"package-json/require-type": "error",
|
|
32
33
|
"package-json/require-version": "error",
|
|
33
34
|
"package-json/sort-collections": "error",
|
|
34
35
|
"package-json/unique-dependencies": "error",
|
|
36
|
+
"package-json/valid-author": "error",
|
|
37
|
+
"package-json/valid-bin": "error",
|
|
35
38
|
"package-json/valid-local-dependency": "error",
|
|
36
39
|
"package-json/valid-name": "error",
|
|
37
40
|
"package-json/valid-package-definition": "error",
|
package/dist/utilities.js
CHANGED
|
@@ -2,12 +2,8 @@ let interopDefault = async (module) => {
|
|
|
2
2
|
try {
|
|
3
3
|
let resolved = await module;
|
|
4
4
|
if (typeof resolved === "object" && resolved !== null) {
|
|
5
|
-
if ("default" in resolved
|
|
6
|
-
|
|
7
|
-
if (!defaultExport) {
|
|
8
|
-
return defaultExport;
|
|
9
|
-
}
|
|
10
|
-
return defaultExport;
|
|
5
|
+
if ("default" in resolved) {
|
|
6
|
+
return resolved.default;
|
|
11
7
|
}
|
|
12
8
|
return resolved;
|
|
13
9
|
}
|
package/dist/vitest/index.js
CHANGED
|
@@ -56,6 +56,7 @@ let vitest = async (config) => {
|
|
|
56
56
|
"vitest/prefer-expect-resolves": "error",
|
|
57
57
|
"vitest/prefer-hooks-in-order": "error",
|
|
58
58
|
"vitest/prefer-hooks-on-top": "error",
|
|
59
|
+
"vitest/prefer-importing-vitest-globals": "error",
|
|
59
60
|
"vitest/prefer-lowercase-title": "error",
|
|
60
61
|
"vitest/prefer-mock-promise-shorthand": "error",
|
|
61
62
|
"vitest/prefer-spy-on": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azat-io/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.34.0",
|
|
4
4
|
"description": "ESLint shareable config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
30
|
-
"@vitest/eslint-plugin": "1.2.
|
|
30
|
+
"@vitest/eslint-plugin": "1.2.4",
|
|
31
31
|
"astro-eslint-parser": "^1.2.2",
|
|
32
32
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
33
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
33
|
+
"eslint-import-resolver-typescript": "^4.4.3",
|
|
34
34
|
"eslint-plugin-astro": "^1.3.1",
|
|
35
|
-
"eslint-plugin-de-morgan": "^1.
|
|
36
|
-
"eslint-plugin-import-x": "^4.
|
|
37
|
-
"eslint-plugin-jsdoc": "^
|
|
35
|
+
"eslint-plugin-de-morgan": "^1.3.0",
|
|
36
|
+
"eslint-plugin-import-x": "^4.15.2",
|
|
37
|
+
"eslint-plugin-jsdoc": "^51.0.1",
|
|
38
38
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
39
|
-
"eslint-plugin-n": "^17.
|
|
40
|
-
"eslint-plugin-package-json": "^0.
|
|
41
|
-
"eslint-plugin-perfectionist": "^4.
|
|
39
|
+
"eslint-plugin-n": "^17.20.0",
|
|
40
|
+
"eslint-plugin-package-json": "^0.38.0",
|
|
41
|
+
"eslint-plugin-perfectionist": "^4.14.0",
|
|
42
42
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
43
43
|
"eslint-plugin-prefer-let": "^4.0.0",
|
|
44
44
|
"eslint-plugin-promise": "^7.2.1",
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
"eslint-plugin-react-compiler": "19.1.0-rc.1-rc-af1b7da-20250421",
|
|
48
48
|
"eslint-plugin-react-hooks": "^6.0.0",
|
|
49
49
|
"eslint-plugin-react-perf": "^3.3.3",
|
|
50
|
-
"eslint-plugin-regexp": "^2.
|
|
50
|
+
"eslint-plugin-regexp": "^2.9.0",
|
|
51
51
|
"eslint-plugin-sonarjs": "^3.0.2",
|
|
52
|
-
"eslint-plugin-svelte": "^3.9.
|
|
52
|
+
"eslint-plugin-svelte": "^3.9.2",
|
|
53
53
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
54
|
-
"eslint-plugin-vue": "^10.
|
|
54
|
+
"eslint-plugin-vue": "^10.2.0",
|
|
55
55
|
"globals": "^16.2.0",
|
|
56
56
|
"jsonc-eslint-parser": "^2.4.0",
|
|
57
57
|
"svelte-eslint-parser": "^1.2.0",
|
|
58
|
-
"typescript-eslint": "^8.
|
|
58
|
+
"typescript-eslint": "^8.34.0",
|
|
59
59
|
"vue-eslint-parser": "^10.1.3"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"eslint": ">=9.
|
|
62
|
+
"eslint": ">=9.28.0"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=18.0.0"
|