@azat-io/eslint-config 2.79.0 → 2.81.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/react/index.js +3 -5
- package/dist/svelte/index.js +2 -0
- package/dist/utilities.js +1 -4
- package/package.json +17 -17
package/dist/react/index.js
CHANGED
|
@@ -60,6 +60,7 @@ async function react(config) {
|
|
|
60
60
|
"react-web-api/no-leaked-broadcast-channel": "error",
|
|
61
61
|
"react-web-api/no-leaked-event-listener": "error",
|
|
62
62
|
"react-web-api/no-leaked-event-source": "error",
|
|
63
|
+
"react-web-api/no-leaked-fetch": "error",
|
|
63
64
|
"react-web-api/no-leaked-geolocation": "error",
|
|
64
65
|
"react-web-api/no-leaked-gravity-sensor": "error",
|
|
65
66
|
"react-web-api/no-leaked-gyroscope": "error",
|
|
@@ -85,16 +86,13 @@ async function react(config) {
|
|
|
85
86
|
"react-x/no-duplicate-key": "error",
|
|
86
87
|
"react-x/no-key-after-spread": "error",
|
|
87
88
|
"react-x/no-nested-component-definitions": "error",
|
|
88
|
-
"react-x/no-unnecessary-use-callback": "error",
|
|
89
|
-
"react-x/no-unnecessary-use-memo": "error",
|
|
90
89
|
"react-x/no-unnecessary-use-prefix": "error",
|
|
91
90
|
"react-x/no-unsafe-component-will-update": "error",
|
|
92
91
|
"react-x/no-unstable-context-value": "error",
|
|
93
92
|
"react-x/no-unused-props": "error",
|
|
94
|
-
"react-x/no-unused-state": "error",
|
|
95
93
|
"react-x/no-use-context": "error",
|
|
96
|
-
"react-x/
|
|
97
|
-
"react-x/
|
|
94
|
+
"react-x/set-state-in-effect": "error",
|
|
95
|
+
"react-x/use-memo": "error"
|
|
98
96
|
},
|
|
99
97
|
settings: { react: {
|
|
100
98
|
fragment: "Fragment",
|
package/dist/svelte/index.js
CHANGED
|
@@ -49,6 +49,7 @@ async function svelte(config) {
|
|
|
49
49
|
"svelte/no-immutable-reactive-statements": "error",
|
|
50
50
|
"svelte/no-inner-declarations": "error",
|
|
51
51
|
"svelte/no-inspect": "error",
|
|
52
|
+
"svelte/no-nested-style-tag": "error",
|
|
52
53
|
"svelte/no-object-in-text-mustaches": "error",
|
|
53
54
|
"svelte/no-reactive-functions": "error",
|
|
54
55
|
"svelte/no-shorthand-style-property-overrides": "error",
|
|
@@ -59,6 +60,7 @@ async function svelte(config) {
|
|
|
59
60
|
"svelte/no-unused-svelte-ignore": "error",
|
|
60
61
|
"svelte/no-useless-mustaches": "error",
|
|
61
62
|
"svelte/prefer-class-directive": "error",
|
|
63
|
+
"svelte/prefer-derived-over-derived-by": "error",
|
|
62
64
|
"svelte/prefer-destructured-store-props": "error",
|
|
63
65
|
"svelte/prefer-style-directive": "error",
|
|
64
66
|
"svelte/prefer-svelte-reactivity": "error",
|
package/dist/utilities.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
async function interopDefault(module) {
|
|
2
2
|
try {
|
|
3
3
|
let resolved = await module;
|
|
4
|
-
if (typeof resolved === "object" && resolved !== null)
|
|
5
|
-
if ("default" in resolved) return resolved.default;
|
|
6
|
-
return resolved;
|
|
7
|
-
}
|
|
4
|
+
if (typeof resolved === "object" && resolved !== null && "default" in resolved) return resolved.default;
|
|
8
5
|
return resolved;
|
|
9
6
|
} catch (error) {
|
|
10
7
|
throw new Error(`Cannot import module: ${String(error)}`, { cause: error });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azat-io/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.81.0",
|
|
4
4
|
"description": "ESLint shareable config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -27,39 +27,39 @@
|
|
|
27
27
|
"./dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.
|
|
31
|
-
"@vitest/eslint-plugin": "1.6.
|
|
30
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
31
|
+
"@vitest/eslint-plugin": "1.6.18",
|
|
32
32
|
"astro-eslint-parser": "^1.4.0",
|
|
33
33
|
"eslint-config-flat-gitignore": "^2.3.0",
|
|
34
34
|
"eslint-plugin-astro": "^1.7.0",
|
|
35
|
-
"eslint-plugin-de-morgan": "^2.1.
|
|
35
|
+
"eslint-plugin-de-morgan": "^2.1.2",
|
|
36
36
|
"eslint-plugin-depend": "^1.5.0",
|
|
37
37
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
38
|
-
"eslint-plugin-jsdoc": "^
|
|
38
|
+
"eslint-plugin-jsdoc": "^63.0.0",
|
|
39
39
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
40
|
-
"eslint-plugin-n": "^
|
|
41
|
-
"eslint-plugin-package-json": "^
|
|
40
|
+
"eslint-plugin-n": "^18.0.1",
|
|
41
|
+
"eslint-plugin-package-json": "^1.1.0",
|
|
42
42
|
"eslint-plugin-perfectionist": "^5.9.0",
|
|
43
43
|
"eslint-plugin-prefer-let": "^4.2.2",
|
|
44
44
|
"eslint-plugin-promise": "^7.3.0",
|
|
45
45
|
"eslint-plugin-qwik": "2.0.0-beta.21",
|
|
46
46
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
47
|
-
"eslint-plugin-react-dom": "^
|
|
47
|
+
"eslint-plugin-react-dom": "^5.8.6",
|
|
48
48
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
49
|
-
"eslint-plugin-react-jsx": "^
|
|
50
|
-
"eslint-plugin-react-naming-convention": "^
|
|
49
|
+
"eslint-plugin-react-jsx": "^5.8.6",
|
|
50
|
+
"eslint-plugin-react-naming-convention": "^5.8.6",
|
|
51
51
|
"eslint-plugin-react-perf": "^3.3.3",
|
|
52
|
-
"eslint-plugin-react-web-api": "^
|
|
53
|
-
"eslint-plugin-react-x": "^
|
|
52
|
+
"eslint-plugin-react-web-api": "^5.8.6",
|
|
53
|
+
"eslint-plugin-react-x": "^5.8.6",
|
|
54
54
|
"eslint-plugin-regexp": "^3.1.0",
|
|
55
55
|
"eslint-plugin-sonarjs": "^4.0.3",
|
|
56
|
-
"eslint-plugin-svelte": "^3.
|
|
56
|
+
"eslint-plugin-svelte": "^3.18.0",
|
|
57
57
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
58
|
-
"eslint-plugin-vue": "^10.9.
|
|
59
|
-
"globals": "^17.
|
|
58
|
+
"eslint-plugin-vue": "^10.9.1",
|
|
59
|
+
"globals": "^17.6.0",
|
|
60
60
|
"jsonc-eslint-parser": "^3.1.0",
|
|
61
|
-
"svelte-eslint-parser": "^1.6.
|
|
62
|
-
"typescript-eslint": "^8.
|
|
61
|
+
"svelte-eslint-parser": "^1.6.1",
|
|
62
|
+
"typescript-eslint": "^8.60.0",
|
|
63
63
|
"vue-eslint-parser": "^10.4.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|