@will-stone/eslint-config 9.0.0 → 9.1.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 +2 -3
- package/dist/index.js +2 -3
- package/package.json +22 -22
package/dist/index.cjs
CHANGED
|
@@ -1027,6 +1027,7 @@ function typescript(options) {
|
|
|
1027
1027
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
|
|
1028
1028
|
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
1029
1029
|
"@typescript-eslint/no-unnecessary-qualifier": "off",
|
|
1030
|
+
"@typescript-eslint/no-unnecessary-template-expression": "error",
|
|
1030
1031
|
"@typescript-eslint/no-unnecessary-type-arguments": "off",
|
|
1031
1032
|
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
1032
1033
|
"@typescript-eslint/no-unsafe-argument": "off",
|
|
@@ -1036,7 +1037,6 @@ function typescript(options) {
|
|
|
1036
1037
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
1037
1038
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
1038
1039
|
"@typescript-eslint/no-unsafe-unary-minus": "off",
|
|
1039
|
-
"@typescript-eslint/no-useless-template-literals": "error",
|
|
1040
1040
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
1041
1041
|
"@typescript-eslint/only-throw-error": "off",
|
|
1042
1042
|
"@typescript-eslint/prefer-destructuring": "off",
|
|
@@ -1141,8 +1141,6 @@ function typescript(options) {
|
|
|
1141
1141
|
"@typescript-eslint/prefer-for-of": "off",
|
|
1142
1142
|
"@typescript-eslint/prefer-function-type": "warn",
|
|
1143
1143
|
"@typescript-eslint/prefer-literal-enum-member": "error",
|
|
1144
|
-
"@typescript-eslint/prefer-ts-expect-error": "warn",
|
|
1145
|
-
"@typescript-eslint/sort-type-constituents": "warn",
|
|
1146
1144
|
// TODO Not sure if required yet. Might be too strict and produce noisy code.
|
|
1147
1145
|
"@typescript-eslint/typedef": "off",
|
|
1148
1146
|
"@typescript-eslint/unified-signatures": "error"
|
|
@@ -1213,6 +1211,7 @@ function unicorn() {
|
|
|
1213
1211
|
"unicorn/no-lonely-if": "warn",
|
|
1214
1212
|
"unicorn/no-magic-array-flat-depth": "error",
|
|
1215
1213
|
"unicorn/no-negated-condition": "warn",
|
|
1214
|
+
"unicorn/no-negation-in-equality-check": "error",
|
|
1216
1215
|
"unicorn/no-nested-ternary": "off",
|
|
1217
1216
|
"unicorn/no-new-array": "warn",
|
|
1218
1217
|
"unicorn/no-new-buffer": "warn",
|
package/dist/index.js
CHANGED
|
@@ -1027,6 +1027,7 @@ function typescript(options) {
|
|
|
1027
1027
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
|
|
1028
1028
|
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
1029
1029
|
"@typescript-eslint/no-unnecessary-qualifier": "off",
|
|
1030
|
+
"@typescript-eslint/no-unnecessary-template-expression": "error",
|
|
1030
1031
|
"@typescript-eslint/no-unnecessary-type-arguments": "off",
|
|
1031
1032
|
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
1032
1033
|
"@typescript-eslint/no-unsafe-argument": "off",
|
|
@@ -1036,7 +1037,6 @@ function typescript(options) {
|
|
|
1036
1037
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
1037
1038
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
1038
1039
|
"@typescript-eslint/no-unsafe-unary-minus": "off",
|
|
1039
|
-
"@typescript-eslint/no-useless-template-literals": "error",
|
|
1040
1040
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
1041
1041
|
"@typescript-eslint/only-throw-error": "off",
|
|
1042
1042
|
"@typescript-eslint/prefer-destructuring": "off",
|
|
@@ -1141,8 +1141,6 @@ function typescript(options) {
|
|
|
1141
1141
|
"@typescript-eslint/prefer-for-of": "off",
|
|
1142
1142
|
"@typescript-eslint/prefer-function-type": "warn",
|
|
1143
1143
|
"@typescript-eslint/prefer-literal-enum-member": "error",
|
|
1144
|
-
"@typescript-eslint/prefer-ts-expect-error": "warn",
|
|
1145
|
-
"@typescript-eslint/sort-type-constituents": "warn",
|
|
1146
1144
|
// TODO Not sure if required yet. Might be too strict and produce noisy code.
|
|
1147
1145
|
"@typescript-eslint/typedef": "off",
|
|
1148
1146
|
"@typescript-eslint/unified-signatures": "error"
|
|
@@ -1213,6 +1211,7 @@ function unicorn() {
|
|
|
1213
1211
|
"unicorn/no-lonely-if": "warn",
|
|
1214
1212
|
"unicorn/no-magic-array-flat-depth": "error",
|
|
1215
1213
|
"unicorn/no-negated-condition": "warn",
|
|
1214
|
+
"unicorn/no-negation-in-equality-check": "error",
|
|
1216
1215
|
"unicorn/no-nested-ternary": "off",
|
|
1217
1216
|
"unicorn/no-new-array": "warn",
|
|
1218
1217
|
"unicorn/no-new-buffer": "warn",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/eslint-config",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "Will Stone's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -44,41 +44,41 @@
|
|
|
44
44
|
},
|
|
45
45
|
"prettier": "@will-stone/prettier-config",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
48
|
-
"@typescript-eslint/parser": "^7.
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
48
|
+
"@typescript-eslint/parser": "^7.14.1",
|
|
49
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": "^1.
|
|
52
|
+
"eslint-plugin-astro": "^1.2.2",
|
|
53
53
|
"eslint-plugin-i": "^2.29.1",
|
|
54
|
-
"eslint-plugin-jest": "^28.
|
|
55
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
56
|
-
"eslint-plugin-n": "^17.
|
|
57
|
-
"eslint-plugin-react": "^7.34.
|
|
54
|
+
"eslint-plugin-jest": "^28.6.0",
|
|
55
|
+
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
56
|
+
"eslint-plugin-n": "^17.9.0",
|
|
57
|
+
"eslint-plugin-react": "^7.34.3",
|
|
58
58
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
59
59
|
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
60
|
-
"eslint-plugin-tailwindcss": "^3.
|
|
61
|
-
"eslint-plugin-unicorn": "^
|
|
62
|
-
"glob": "^10.
|
|
63
|
-
"globals": "^15.
|
|
60
|
+
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
61
|
+
"eslint-plugin-unicorn": "^54.0.0",
|
|
62
|
+
"glob": "^10.4.2",
|
|
63
|
+
"globals": "^15.6.0",
|
|
64
64
|
"globby": "^14.0.1",
|
|
65
65
|
"load-json-file": "^7.0.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@commits-with-character/conventional-changelog-preset": "^0.2.
|
|
69
|
-
"@eslint/config-inspector": "^0.
|
|
68
|
+
"@commits-with-character/conventional-changelog-preset": "^0.2.2",
|
|
69
|
+
"@eslint/config-inspector": "^0.5.0",
|
|
70
70
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
71
71
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
72
72
|
"@types/eslint": "^8.56.10",
|
|
73
|
-
"@types/node": "^20.
|
|
74
|
-
"@will-stone/prettier-config": "^8.0.
|
|
73
|
+
"@types/node": "^20.14.9",
|
|
74
|
+
"@will-stone/prettier-config": "^8.0.1",
|
|
75
75
|
"husky": "^9.0.11",
|
|
76
|
-
"lint-staged": "^15.2.
|
|
77
|
-
"prettier": "^3.2
|
|
78
|
-
"release-it": "^17.
|
|
79
|
-
"tsup": "^8.0
|
|
80
|
-
"type-fest": "^4.
|
|
81
|
-
"typescript": "^5.
|
|
76
|
+
"lint-staged": "^15.2.7",
|
|
77
|
+
"prettier": "^3.3.2",
|
|
78
|
+
"release-it": "^17.4.0",
|
|
79
|
+
"tsup": "^8.1.0",
|
|
80
|
+
"type-fest": "^4.20.1",
|
|
81
|
+
"typescript": "^5.5.2"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"eslint": ">=8.57.0"
|