eslint-config-tamia 9.9.0 → 9.9.2
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/package.json +8 -9
- package/rules/misc.mjs +5 -1
- package/rules/typescript.mjs +6 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-tamia",
|
|
3
3
|
"description": "Tâmia ESLint config",
|
|
4
|
-
"version": "9.9.
|
|
4
|
+
"version": "9.9.2",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
7
7
|
},
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
".": {
|
|
12
12
|
"import": "./index.mjs"
|
|
13
13
|
},
|
|
14
|
-
"./react": "./react.mjs",
|
|
15
14
|
"./typescript": "./typescript.mjs",
|
|
16
15
|
"./typescript-react": "./typescript-react.mjs"
|
|
17
16
|
},
|
|
@@ -45,24 +44,24 @@
|
|
|
45
44
|
"homepage": "https://github.com/sapegin/eslint-config-tamia",
|
|
46
45
|
"devDependencies": {
|
|
47
46
|
"@types/eslint__js": "^8.42.3",
|
|
48
|
-
"@types/react": "^19.2.
|
|
47
|
+
"@types/react": "^19.2.7",
|
|
49
48
|
"eslint": ">=9.39",
|
|
50
|
-
"react": "^19.2.
|
|
51
|
-
"vitest": "^4.0.
|
|
49
|
+
"react": "^19.2.3",
|
|
50
|
+
"vitest": "^4.0.16"
|
|
52
51
|
},
|
|
53
52
|
"peerDependencies": {
|
|
54
53
|
"eslint": ">=9.39"
|
|
55
54
|
},
|
|
56
55
|
"dependencies": {
|
|
57
56
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
58
|
-
"@eslint-react/eslint-plugin": "2.3.
|
|
59
|
-
"@eslint/js": "9.39.
|
|
60
|
-
"@vitest/eslint-plugin": "1.
|
|
57
|
+
"@eslint-react/eslint-plugin": "2.3.13",
|
|
58
|
+
"@eslint/js": "9.39.2",
|
|
59
|
+
"@vitest/eslint-plugin": "1.5.2",
|
|
61
60
|
"eslint-plugin-de-morgan": "2.0.0",
|
|
62
61
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
63
62
|
"eslint-plugin-unicorn": "62.0.0",
|
|
64
63
|
"eslint-plugin-washing-code": "1.1.0",
|
|
65
64
|
"globals": "16.5.0",
|
|
66
|
-
"typescript-eslint": "8.
|
|
65
|
+
"typescript-eslint": "8.50.0"
|
|
67
66
|
}
|
|
68
67
|
}
|
package/rules/misc.mjs
CHANGED
|
@@ -11,6 +11,10 @@ export default [
|
|
|
11
11
|
// Rules inspired by Washing your code book
|
|
12
12
|
washingCode.configs.recommended,
|
|
13
13
|
{
|
|
14
|
-
rules: {
|
|
14
|
+
rules: {
|
|
15
|
+
// This doesn't do well with AI-written code, and I need to rethink my
|
|
16
|
+
// approach
|
|
17
|
+
'washing-code/explicit-boolean-check': 'off',
|
|
18
|
+
},
|
|
15
19
|
},
|
|
16
20
|
];
|
package/rules/typescript.mjs
CHANGED
|
@@ -123,7 +123,12 @@ export default [
|
|
|
123
123
|
// in the outer scope
|
|
124
124
|
'@typescript-eslint/no-shadow': 'error',
|
|
125
125
|
// Disallow conditionals where the type is always truthy or always falsy
|
|
126
|
-
'@typescript-eslint/no-unnecessary-condition':
|
|
126
|
+
'@typescript-eslint/no-unnecessary-condition': [
|
|
127
|
+
'error',
|
|
128
|
+
{
|
|
129
|
+
allowConstantLoopConditions: 'only-allowed-literals',
|
|
130
|
+
},
|
|
131
|
+
],
|
|
127
132
|
// Disallow unnecessary assignment of constructor property parameter
|
|
128
133
|
'@typescript-eslint/no-unnecessary-parameter-property-assignment':
|
|
129
134
|
'error',
|