@aneuhold/eslint-config 2.0.3 → 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 CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aneuhold/eslint-config",
3
- "version": "2.0.3",
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.21.0",
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": ">= 9.39.1",
35
- "prettier": ">= 3.6.2"
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.1.6",
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.54.0",
43
- "@typescript-eslint/parser": "^8.54.0",
44
- "angular-eslint": "^21.2.0",
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.5.4",
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.0.1",
51
- "eslint-plugin-react-refresh": "^0.5.0",
52
- "eslint-plugin-simple-import-sort": "^12.1.1",
53
- "eslint-plugin-svelte": "^3.14.0",
54
- "eslint-plugin-unused-imports": "^4.3.0",
55
- "globals": "^17.3.0",
56
- "prettier-plugin-svelte": "^3.4.1",
57
- "typescript-eslint": "^8.54.0"
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.24",
61
- "@types/node": "^25.2.1",
62
- "eslint": "^10.0.0",
63
- "prettier": "^3.8.1",
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": "^5.9.3"
65
+ "typescript": "^6.0.3"
66
66
  }
67
67
  }
@@ -111,6 +111,19 @@ export default defineConfig(
111
111
  // Turned off because it doesn't seem too helpful, and it likes to error
112
112
  // on things that seem to be just fine in generics.
113
113
  '@typescript-eslint/no-unnecessary-type-parameters': 'off',
114
+ // Ban type assertions (as X) to prevent type-avoidance
115
+ '@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'never' }],
116
+ // Ban the `object` type to prevent type-avoidance
117
+ '@typescript-eslint/no-restricted-types': [
118
+ 'error',
119
+ {
120
+ types: {
121
+ object: {
122
+ message: 'The `object` type is too loose. Use a specific type instead.',
123
+ },
124
+ },
125
+ },
126
+ ],
114
127
  // Disabled due to false positives with Svelte components
115
128
  '@typescript-eslint/no-useless-default-assignment': 'off',
116
129
  // Disabled because it wasn't working correctly with Svelte snippets
@@ -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
  {