@h1fra/eslint-config 1.0.4 → 1.0.6

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@h1fra/eslint-config",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "repository": {
@@ -37,13 +37,12 @@
37
37
  "eslint-import-resolver-typescript": "^3.6.3",
38
38
  "eslint-plugin-import-x": "^4.3.0",
39
39
  "eslint-plugin-prettier": "5.2.1",
40
+ "eslint-plugin-unicorn": "^55.0.0",
40
41
  "globals": "^15.9.0",
41
42
  "prettier": "^3.3.3",
42
- "typescript-eslint": "^8.7.0",
43
- "eslint-plugin-unicorn": "^55.0.0"
43
+ "typescript-eslint": "^8.7.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "typescript": ">=5.0.0"
47
- },
48
- "devDependencies": {}
47
+ }
49
48
  }
@@ -16,6 +16,14 @@ export default tseslint.config(
16
16
  prettierRecommended,
17
17
  {
18
18
  files: ['**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,mtsx}'],
19
+ settings: {
20
+ settings: {
21
+ 'import-x/resolver': {
22
+ typescript: true,
23
+ node: true,
24
+ },
25
+ },
26
+ },
19
27
  rules: {
20
28
  'no-console': 1,
21
29
  'no-constant-condition': 'off',
@@ -59,6 +59,9 @@ export default [
59
59
  'unicorn/catch-error-name': ['error', { name: 'err' }],
60
60
  'unicorn/filename-case': ['error', { case: 'camelCase' }],
61
61
  'unicorn/prevent-abbreviations': 'off',
62
+ 'unicorn/no-for-loop': 'off', // handled by ts
63
+ 'unicorn/no-null': 'off', // can produce partial json
64
+ 'unicorn/prefer-ternary': 'off', // produce subpar code
62
65
  },
63
66
  },
64
67
  ];