@snowyyd/eslint-config 2.2.2 → 2.2.4

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.
Files changed (2) hide show
  1. package/dist/personal.js +15 -1
  2. package/package.json +15 -15
package/dist/personal.js CHANGED
@@ -31,6 +31,7 @@ export default (plugin, parser) => [
31
31
  'prefer-template': 'off',
32
32
  'prefer-destructuring': 'off',
33
33
  'prefer-arrow-callback': 'off',
34
+ 'no-void': ['error', { allowAsStatement: true }],
34
35
  'prefer-const': ['error', {
35
36
  destructuring: 'any',
36
37
  // this is needed as `no-use-before-define` is used in airbnb/variables and is overwritten in tseslint
@@ -67,7 +68,20 @@ export default (plugin, parser) => [
67
68
  '@stylistic/quotes': ['error', 'single', { avoidEscape: true }],
68
69
  '@stylistic/comma-dangle': ['error', 'always-multiline'],
69
70
  '@stylistic/lines-between-class-members': 'off',
70
- // TypeScript
71
+ },
72
+ },
73
+ {
74
+ name: '@snowyyd/eslint-config-x/personal-ts',
75
+ files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],
76
+ rules: {
77
+ /**
78
+ * best practices
79
+ */
80
+ // this is defined in airbnb-ts but is also checked by TypeScript itself
81
+ '@typescript-eslint/no-redeclare': 'off',
82
+ /**
83
+ * styling & formatting
84
+ */
71
85
  '@stylistic/type-annotation-spacing': 'error',
72
86
  '@stylistic/type-generic-spacing': 'error',
73
87
  '@stylistic/member-delimiter-style': ['error', {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@snowyyd/eslint-config",
3
3
  "description": "Personal TypeScript ESLint configs",
4
- "version": "2.2.2",
4
+ "version": "2.2.4",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/snowyyd/eslint-config-x#readme",
7
7
  "repository": "https://github.com/snowyyd/eslint-config-x.git",
@@ -14,32 +14,32 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@eslint/config-inspector": "^1.1.0",
17
- "@eslint/js": "^9.30.1",
18
- "@stylistic/eslint-plugin": "^5.1.0",
17
+ "@eslint/js": "^9.33.0",
18
+ "@stylistic/eslint-plugin": "^5.2.3",
19
19
  "@types/confusing-browser-globals": "^1.0.3",
20
20
  "@types/lodash": "^4.17.20",
21
- "@types/node": "^24.0.10",
22
- "@typescript-eslint/eslint-plugin": "^8.36.0",
23
- "@typescript-eslint/utils": "^8.36.0",
24
- "chalk": "^5.4.1",
21
+ "@types/node": "^24.2.1",
22
+ "@typescript-eslint/eslint-plugin": "^8.39.0",
23
+ "@typescript-eslint/utils": "^8.39.0",
24
+ "chalk": "^5.5.0",
25
25
  "confusing-browser-globals": "^1.0.11",
26
- "eslint": "^9.30.1",
26
+ "eslint": "^9.33.0",
27
27
  "eslint-plugin-import-x": "^4.16.1",
28
- "eslint-plugin-n": "^17.21.0",
28
+ "eslint-plugin-n": "^17.21.3",
29
29
  "globals": "^16.3.0",
30
30
  "lodash": "^4.17.21",
31
31
  "tsx": "^4.20.3",
32
- "typescript": "^5.8.3",
33
- "typescript-eslint": "^8.36.0"
32
+ "typescript": "^5.9.2",
33
+ "typescript-eslint": "^8.39.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@eslint/js": "^9.30.1",
37
- "@stylistic/eslint-plugin": "^5.1.0",
36
+ "@eslint/js": "^9.33.0",
37
+ "@stylistic/eslint-plugin": "^5.2.3",
38
38
  "confusing-browser-globals": "^1.0.11",
39
39
  "eslint-plugin-import-x": "^4.16.1",
40
- "eslint-plugin-n": "^17.21.0",
40
+ "eslint-plugin-n": "^17.21.3",
41
41
  "globals": "^16.3.0",
42
- "typescript-eslint": "^8.36.0"
42
+ "typescript-eslint": "^8.39.0"
43
43
  },
44
44
  "scripts": {
45
45
  "inspect": "pnpm eslint-config-inspector",