@will-stone/eslint-config 8.0.6 → 9.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/dist/index.cjs +6 -1
- package/dist/index.js +6 -1
- package/package.json +17 -17
package/dist/index.cjs
CHANGED
|
@@ -18,7 +18,6 @@ function astro() {
|
|
|
18
18
|
},
|
|
19
19
|
name: "will-stone/astro",
|
|
20
20
|
plugins: {
|
|
21
|
-
// @ts-expect-error -- does not confirm to type
|
|
22
21
|
astro: _eslintpluginastro2.default
|
|
23
22
|
},
|
|
24
23
|
rules: {
|
|
@@ -28,6 +27,7 @@ function astro() {
|
|
|
28
27
|
"astro/no-deprecated-astro-fetchcontent": "error",
|
|
29
28
|
"astro/no-deprecated-astro-resolve": "error",
|
|
30
29
|
"astro/no-deprecated-getentrybyslug": "error",
|
|
30
|
+
"astro/no-exports-from-components": "error",
|
|
31
31
|
"astro/no-unused-define-vars-in-style": "error",
|
|
32
32
|
"astro/semi": "off",
|
|
33
33
|
"astro/valid-compile": "error",
|
|
@@ -1166,6 +1166,7 @@ function unicorn() {
|
|
|
1166
1166
|
"unicorn/better-regex": "warn",
|
|
1167
1167
|
"unicorn/catch-error-name": "error",
|
|
1168
1168
|
"unicorn/consistent-destructuring": "warn",
|
|
1169
|
+
"unicorn/consistent-empty-array-spread": "warn",
|
|
1169
1170
|
"unicorn/consistent-function-scoping": [
|
|
1170
1171
|
"error",
|
|
1171
1172
|
{ checkArrowFunctions: false }
|
|
@@ -1198,6 +1199,7 @@ function unicorn() {
|
|
|
1198
1199
|
"unicorn/no-for-loop": "warn",
|
|
1199
1200
|
"unicorn/no-hex-escape": "warn",
|
|
1200
1201
|
"unicorn/no-instanceof-array": "warn",
|
|
1202
|
+
"unicorn/no-invalid-fetch-options": "error",
|
|
1201
1203
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
1202
1204
|
"unicorn/no-keyword-prefix": [
|
|
1203
1205
|
"error",
|
|
@@ -1209,6 +1211,7 @@ function unicorn() {
|
|
|
1209
1211
|
}
|
|
1210
1212
|
],
|
|
1211
1213
|
"unicorn/no-lonely-if": "warn",
|
|
1214
|
+
"unicorn/no-magic-array-flat-depth": "error",
|
|
1212
1215
|
"unicorn/no-negated-condition": "warn",
|
|
1213
1216
|
"unicorn/no-nested-ternary": "off",
|
|
1214
1217
|
"unicorn/no-new-array": "warn",
|
|
@@ -1277,10 +1280,12 @@ function unicorn() {
|
|
|
1277
1280
|
"unicorn/prefer-set-has": "warn",
|
|
1278
1281
|
"unicorn/prefer-set-size": "warn",
|
|
1279
1282
|
"unicorn/prefer-spread": "warn",
|
|
1283
|
+
"unicorn/prefer-string-raw": "warn",
|
|
1280
1284
|
"unicorn/prefer-string-replace-all": "warn",
|
|
1281
1285
|
"unicorn/prefer-string-slice": "warn",
|
|
1282
1286
|
"unicorn/prefer-string-starts-ends-with": "error",
|
|
1283
1287
|
"unicorn/prefer-string-trim-start-end": "warn",
|
|
1288
|
+
"unicorn/prefer-structured-clone": "error",
|
|
1284
1289
|
"unicorn/prefer-switch": "off",
|
|
1285
1290
|
"unicorn/prefer-ternary": ["warn", "only-single-line"],
|
|
1286
1291
|
"unicorn/prefer-top-level-await": "error",
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,6 @@ function astro() {
|
|
|
18
18
|
},
|
|
19
19
|
name: "will-stone/astro",
|
|
20
20
|
plugins: {
|
|
21
|
-
// @ts-expect-error -- does not confirm to type
|
|
22
21
|
astro: pluginAstro
|
|
23
22
|
},
|
|
24
23
|
rules: {
|
|
@@ -28,6 +27,7 @@ function astro() {
|
|
|
28
27
|
"astro/no-deprecated-astro-fetchcontent": "error",
|
|
29
28
|
"astro/no-deprecated-astro-resolve": "error",
|
|
30
29
|
"astro/no-deprecated-getentrybyslug": "error",
|
|
30
|
+
"astro/no-exports-from-components": "error",
|
|
31
31
|
"astro/no-unused-define-vars-in-style": "error",
|
|
32
32
|
"astro/semi": "off",
|
|
33
33
|
"astro/valid-compile": "error",
|
|
@@ -1166,6 +1166,7 @@ function unicorn() {
|
|
|
1166
1166
|
"unicorn/better-regex": "warn",
|
|
1167
1167
|
"unicorn/catch-error-name": "error",
|
|
1168
1168
|
"unicorn/consistent-destructuring": "warn",
|
|
1169
|
+
"unicorn/consistent-empty-array-spread": "warn",
|
|
1169
1170
|
"unicorn/consistent-function-scoping": [
|
|
1170
1171
|
"error",
|
|
1171
1172
|
{ checkArrowFunctions: false }
|
|
@@ -1198,6 +1199,7 @@ function unicorn() {
|
|
|
1198
1199
|
"unicorn/no-for-loop": "warn",
|
|
1199
1200
|
"unicorn/no-hex-escape": "warn",
|
|
1200
1201
|
"unicorn/no-instanceof-array": "warn",
|
|
1202
|
+
"unicorn/no-invalid-fetch-options": "error",
|
|
1201
1203
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
1202
1204
|
"unicorn/no-keyword-prefix": [
|
|
1203
1205
|
"error",
|
|
@@ -1209,6 +1211,7 @@ function unicorn() {
|
|
|
1209
1211
|
}
|
|
1210
1212
|
],
|
|
1211
1213
|
"unicorn/no-lonely-if": "warn",
|
|
1214
|
+
"unicorn/no-magic-array-flat-depth": "error",
|
|
1212
1215
|
"unicorn/no-negated-condition": "warn",
|
|
1213
1216
|
"unicorn/no-nested-ternary": "off",
|
|
1214
1217
|
"unicorn/no-new-array": "warn",
|
|
@@ -1277,10 +1280,12 @@ function unicorn() {
|
|
|
1277
1280
|
"unicorn/prefer-set-has": "warn",
|
|
1278
1281
|
"unicorn/prefer-set-size": "warn",
|
|
1279
1282
|
"unicorn/prefer-spread": "warn",
|
|
1283
|
+
"unicorn/prefer-string-raw": "warn",
|
|
1280
1284
|
"unicorn/prefer-string-replace-all": "warn",
|
|
1281
1285
|
"unicorn/prefer-string-slice": "warn",
|
|
1282
1286
|
"unicorn/prefer-string-starts-ends-with": "error",
|
|
1283
1287
|
"unicorn/prefer-string-trim-start-end": "warn",
|
|
1288
|
+
"unicorn/prefer-structured-clone": "error",
|
|
1284
1289
|
"unicorn/prefer-switch": "off",
|
|
1285
1290
|
"unicorn/prefer-ternary": ["warn", "only-single-line"],
|
|
1286
1291
|
"unicorn/prefer-top-level-await": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Will Stone's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -44,40 +44,40 @@
|
|
|
44
44
|
},
|
|
45
45
|
"prettier": "@will-stone/prettier-config",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
48
|
-
"@typescript-eslint/parser": "^7.
|
|
49
|
-
"astro-eslint-parser": "^0.
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
48
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
49
|
+
"astro-eslint-parser": "^1.0.2",
|
|
50
50
|
"confusing-browser-globals": "^1.0.11",
|
|
51
51
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
52
|
-
"eslint-plugin-astro": "^
|
|
52
|
+
"eslint-plugin-astro": "^1.1.2",
|
|
53
53
|
"eslint-plugin-i": "^2.29.1",
|
|
54
|
-
"eslint-plugin-jest": "^28.
|
|
54
|
+
"eslint-plugin-jest": "^28.5.0",
|
|
55
55
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
56
|
-
"eslint-plugin-n": "^17.
|
|
56
|
+
"eslint-plugin-n": "^17.6.0",
|
|
57
57
|
"eslint-plugin-react": "^7.34.1",
|
|
58
|
-
"eslint-plugin-react-hooks": "^4.6.
|
|
58
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
59
59
|
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
60
60
|
"eslint-plugin-tailwindcss": "^3.15.1",
|
|
61
|
-
"eslint-plugin-unicorn": "^
|
|
62
|
-
"glob": "^10.3.
|
|
63
|
-
"globals": "^15.
|
|
61
|
+
"eslint-plugin-unicorn": "^53.0.0",
|
|
62
|
+
"glob": "^10.3.14",
|
|
63
|
+
"globals": "^15.2.0",
|
|
64
64
|
"globby": "^14.0.1",
|
|
65
65
|
"load-json-file": "^7.0.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@commits-with-character/conventional-changelog-preset": "^0.2.1",
|
|
69
|
-
"@eslint/config-inspector": "^0.4.
|
|
69
|
+
"@eslint/config-inspector": "^0.4.8",
|
|
70
70
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
71
71
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
72
|
-
"@types/eslint": "^8.56.
|
|
73
|
-
"@types/node": "^20.12.
|
|
74
|
-
"@will-stone/prettier-config": "^
|
|
72
|
+
"@types/eslint": "^8.56.10",
|
|
73
|
+
"@types/node": "^20.12.11",
|
|
74
|
+
"@will-stone/prettier-config": "^8.0.0",
|
|
75
75
|
"husky": "^9.0.11",
|
|
76
76
|
"lint-staged": "^15.2.2",
|
|
77
77
|
"prettier": "^3.2.5",
|
|
78
|
-
"release-it": "^17.2.
|
|
78
|
+
"release-it": "^17.2.1",
|
|
79
79
|
"tsup": "^8.0.2",
|
|
80
|
-
"type-fest": "^4.
|
|
80
|
+
"type-fest": "^4.18.2",
|
|
81
81
|
"typescript": "^5.4.5"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|