@will-stone/eslint-config 0.12.2 → 0.14.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 +3 -1
- package/dist/index.js +3 -1
- package/package.json +14 -14
package/dist/index.cjs
CHANGED
|
@@ -1157,6 +1157,7 @@ function typescript(options) {
|
|
|
1157
1157
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
1158
1158
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
1159
1159
|
"@typescript-eslint/no-unsafe-unary-minus": "off",
|
|
1160
|
+
"@typescript-eslint/no-useless-template-literals": "error",
|
|
1160
1161
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
1161
1162
|
"@typescript-eslint/prefer-destructuring": "off",
|
|
1162
1163
|
"@typescript-eslint/prefer-includes": "off",
|
|
@@ -1377,6 +1378,7 @@ function unicorn() {
|
|
|
1377
1378
|
"unicorn/no-this-assignment": "error",
|
|
1378
1379
|
"unicorn/no-typeof-undefined": "warn",
|
|
1379
1380
|
"unicorn/no-unnecessary-await": "warn",
|
|
1381
|
+
"unicorn/no-unnecessary-polyfills": "error",
|
|
1380
1382
|
"unicorn/no-unreadable-array-destructuring": "error",
|
|
1381
1383
|
"unicorn/no-unreadable-iife": "error",
|
|
1382
1384
|
// Turned off for now, even Sindre doesn't like it:
|
|
@@ -1419,7 +1421,7 @@ function unicorn() {
|
|
|
1419
1421
|
"unicorn/prefer-modern-math-apis": "warn",
|
|
1420
1422
|
// Not ready yet for ESM modules
|
|
1421
1423
|
// https://github.com/microsoft/TypeScript/issues/33079
|
|
1422
|
-
"unicorn/prefer-module": "
|
|
1424
|
+
"unicorn/prefer-module": "warn",
|
|
1423
1425
|
"unicorn/prefer-native-coercion-functions": "warn",
|
|
1424
1426
|
"unicorn/prefer-negative-index": "warn",
|
|
1425
1427
|
// TODO seems like this is not well supported by webpack yet
|
package/dist/index.js
CHANGED
|
@@ -1157,6 +1157,7 @@ function typescript(options) {
|
|
|
1157
1157
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
1158
1158
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
1159
1159
|
"@typescript-eslint/no-unsafe-unary-minus": "off",
|
|
1160
|
+
"@typescript-eslint/no-useless-template-literals": "error",
|
|
1160
1161
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
1161
1162
|
"@typescript-eslint/prefer-destructuring": "off",
|
|
1162
1163
|
"@typescript-eslint/prefer-includes": "off",
|
|
@@ -1377,6 +1378,7 @@ function unicorn() {
|
|
|
1377
1378
|
"unicorn/no-this-assignment": "error",
|
|
1378
1379
|
"unicorn/no-typeof-undefined": "warn",
|
|
1379
1380
|
"unicorn/no-unnecessary-await": "warn",
|
|
1381
|
+
"unicorn/no-unnecessary-polyfills": "error",
|
|
1380
1382
|
"unicorn/no-unreadable-array-destructuring": "error",
|
|
1381
1383
|
"unicorn/no-unreadable-iife": "error",
|
|
1382
1384
|
// Turned off for now, even Sindre doesn't like it:
|
|
@@ -1419,7 +1421,7 @@ function unicorn() {
|
|
|
1419
1421
|
"unicorn/prefer-modern-math-apis": "warn",
|
|
1420
1422
|
// Not ready yet for ESM modules
|
|
1421
1423
|
// https://github.com/microsoft/TypeScript/issues/33079
|
|
1422
|
-
"unicorn/prefer-module": "
|
|
1424
|
+
"unicorn/prefer-module": "warn",
|
|
1423
1425
|
"unicorn/prefer-native-coercion-functions": "warn",
|
|
1424
1426
|
"unicorn/prefer-negative-index": "warn",
|
|
1425
1427
|
// TODO seems like this is not well supported by webpack yet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Will Stone's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
},
|
|
44
44
|
"prettier": "@will-stone/prettier-config",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
47
|
-
"@typescript-eslint/parser": "^6.
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
47
|
+
"@typescript-eslint/parser": "^6.18.1",
|
|
48
48
|
"astro-eslint-parser": "^0.16.0",
|
|
49
49
|
"confusing-browser-globals": "^1.0.11",
|
|
50
50
|
"eslint-config-flat-gitignore": "^0.1.2",
|
|
51
51
|
"eslint-plugin-astro": "^0.31.0",
|
|
52
|
-
"eslint-plugin-i": "^2.29.
|
|
53
|
-
"eslint-plugin-jest": "^27.6.
|
|
52
|
+
"eslint-plugin-i": "^2.29.1",
|
|
53
|
+
"eslint-plugin-jest": "^27.6.1",
|
|
54
54
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
55
|
-
"eslint-plugin-n": "^16.
|
|
56
|
-
"eslint-plugin-prettier": "^5.
|
|
55
|
+
"eslint-plugin-n": "^16.6.2",
|
|
56
|
+
"eslint-plugin-prettier": "^5.1.2",
|
|
57
57
|
"eslint-plugin-react": "^7.33.2",
|
|
58
58
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
59
59
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
60
60
|
"eslint-plugin-switch-case": "^1.1.2",
|
|
61
|
-
"eslint-plugin-tailwindcss": "^3.13.
|
|
62
|
-
"eslint-plugin-unicorn": "^
|
|
61
|
+
"eslint-plugin-tailwindcss": "^3.13.1",
|
|
62
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
63
63
|
"glob": "^10.3.10",
|
|
64
64
|
"globals": "^13.24.0",
|
|
65
65
|
"globby": "^14.0.0",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@changesets/cli": "^2.27.1",
|
|
70
70
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
71
|
-
"@types/eslint": "^8.
|
|
72
|
-
"@types/node": "^20.10.
|
|
71
|
+
"@types/eslint": "^8.56.1",
|
|
72
|
+
"@types/node": "^20.10.7",
|
|
73
73
|
"@will-stone/prettier-config": "^7.0.2",
|
|
74
74
|
"eslint": "^8.56.0",
|
|
75
|
-
"eslint-flat-config-viewer": "^0.1.
|
|
75
|
+
"eslint-flat-config-viewer": "^0.1.8",
|
|
76
76
|
"husky": "^8.0.3",
|
|
77
77
|
"lint-staged": "^15.2.0",
|
|
78
78
|
"prettier": "^3.1.1",
|
|
79
79
|
"tsup": "^8.0.1",
|
|
80
|
-
"type-fest": "^4.
|
|
80
|
+
"type-fest": "^4.9.0",
|
|
81
81
|
"typescript": "^5.3.3"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"eslint": ">=8.
|
|
84
|
+
"eslint": ">=8.56.0"
|
|
85
85
|
}
|
|
86
86
|
}
|