@aneuhold/eslint-config 2.0.4 → 2.0.5
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 +22 -22
- package/src/ts-lib-config.js +13 -0
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aneuhold/eslint-config",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Main ESLint Configuration for personal projects",
|
|
5
5
|
"main": "./src/ts-lib-config.js",
|
|
6
|
-
"packageManager": "pnpm@10.
|
|
6
|
+
"packageManager": "pnpm@10.33.0",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "nodemon -e js --exec \"local-npm publish\"",
|
|
9
9
|
"unpub": "local-npm unpublish",
|
|
@@ -31,37 +31,37 @@
|
|
|
31
31
|
"src/**/*"
|
|
32
32
|
],
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"eslint": ">=
|
|
35
|
-
"prettier": ">= 3.
|
|
34
|
+
"eslint": ">= 10.2.1",
|
|
35
|
+
"prettier": ">= 3.8.3"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@eslint/js": "^10.0.1",
|
|
39
|
-
"@next/eslint-plugin-next": "^16.
|
|
39
|
+
"@next/eslint-plugin-next": "^16.2.4",
|
|
40
40
|
"@stylistic/eslint-plugin-js": "^4.4.1",
|
|
41
41
|
"@stylistic/eslint-plugin-ts": "^4.4.1",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
43
|
-
"@typescript-eslint/parser": "^8.
|
|
44
|
-
"angular-eslint": "^21.
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
43
|
+
"@typescript-eslint/parser": "^8.59.0",
|
|
44
|
+
"angular-eslint": "^21.3.1",
|
|
45
45
|
"eslint-config-prettier": "^10.1.8",
|
|
46
46
|
"eslint-plugin-import": "^2.32.0",
|
|
47
|
-
"eslint-plugin-jsdoc": "^62.
|
|
47
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
48
48
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
49
49
|
"eslint-plugin-prettier": "^5.5.5",
|
|
50
|
-
"eslint-plugin-react-hooks": "^7.
|
|
51
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
52
|
-
"eslint-plugin-simple-import-sort": "^
|
|
53
|
-
"eslint-plugin-svelte": "^3.
|
|
54
|
-
"eslint-plugin-unused-imports": "^4.
|
|
55
|
-
"globals": "^17.
|
|
56
|
-
"prettier-plugin-svelte": "^3.
|
|
57
|
-
"typescript-eslint": "^8.
|
|
50
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
51
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
52
|
+
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
53
|
+
"eslint-plugin-svelte": "^3.17.0",
|
|
54
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
55
|
+
"globals": "^17.5.0",
|
|
56
|
+
"prettier-plugin-svelte": "^3.5.1",
|
|
57
|
+
"typescript-eslint": "^8.59.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@aneuhold/local-npm-registry": "^0.2.
|
|
61
|
-
"@types/node": "^25.
|
|
62
|
-
"eslint": "^10.
|
|
63
|
-
"prettier": "^3.8.
|
|
60
|
+
"@aneuhold/local-npm-registry": "^0.2.30",
|
|
61
|
+
"@types/node": "^25.6.0",
|
|
62
|
+
"eslint": "^10.2.1",
|
|
63
|
+
"prettier": "^3.8.3",
|
|
64
64
|
"svelte": "^5.50.0",
|
|
65
|
-
"typescript": "^
|
|
65
|
+
"typescript": "^6.0.3"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/src/ts-lib-config.js
CHANGED
|
@@ -51,6 +51,19 @@ const defaultConfig = defineConfig(
|
|
|
51
51
|
// Turned off because it doesn't seem too helpful, and it likes to error
|
|
52
52
|
// on things that seem to be just fine in generics.
|
|
53
53
|
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
|
|
54
|
+
// Ban type assertions (as X) to prevent type-avoidance
|
|
55
|
+
'@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'never' }],
|
|
56
|
+
// Ban the `object` type to prevent type-avoidance
|
|
57
|
+
'@typescript-eslint/no-restricted-types': [
|
|
58
|
+
'error',
|
|
59
|
+
{
|
|
60
|
+
types: {
|
|
61
|
+
object: {
|
|
62
|
+
message: 'The `object` type is too loose. Use a specific type instead.',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
],
|
|
54
67
|
},
|
|
55
68
|
},
|
|
56
69
|
{
|