eslint-config-tamia 9.2.3 → 9.3.1

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/package.json +12 -9
  2. package/rules/unicorn.mjs +7 -23
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "eslint-config-tamia",
3
3
  "description": "Tâmia ESLint config",
4
- "version": "9.2.3",
4
+ "version": "9.3.1",
5
+ "engines": {
6
+ "node": ">=22"
7
+ },
5
8
  "type": "module",
6
9
  "main": "index.mjs",
7
10
  "exports": {
@@ -42,19 +45,19 @@
42
45
  "homepage": "https://github.com/sapegin/eslint-config-tamia",
43
46
  "devDependencies": {
44
47
  "@types/eslint__js": "^8.42.3",
45
- "@types/react": "^18.3.5",
48
+ "@types/react": "^19.1.13",
46
49
  "eslint": ">=9.16",
47
- "react": "^18.3.1",
48
- "vitest": "^2.1.8"
50
+ "react": "^19.1.1",
51
+ "vitest": "^3.2.4"
49
52
  },
50
53
  "peerDependencies": {
51
54
  "eslint": ">=9.7"
52
55
  },
53
56
  "dependencies": {
54
- "@eslint/js": "^9.16.0",
55
- "eslint-plugin-react": "^7.37.2",
56
- "eslint-plugin-unicorn": "^56.0.1",
57
- "globals": "^15.13.0",
58
- "typescript-eslint": "^8.17.0"
57
+ "@eslint/js": "^9.36.0",
58
+ "eslint-plugin-react": "^7.37.5",
59
+ "eslint-plugin-unicorn": "^61.0.2",
60
+ "globals": "^16.4.0",
61
+ "typescript-eslint": "^8.44.1"
59
62
  }
60
63
  }
package/rules/unicorn.mjs CHANGED
@@ -1,36 +1,20 @@
1
1
  import eslintPluginUnicorn from 'eslint-plugin-unicorn';
2
2
 
3
3
  export default [
4
- eslintPluginUnicorn.configs['flat/recommended'],
4
+ eslintPluginUnicorn.configs.unopinionated,
5
5
  {
6
6
  rules: {
7
- // Opinionated, doesn't allow Button.tsx
8
- 'unicorn/filename-case': 'off',
9
- // Opinionated, sometimes you need it
10
- 'unicorn/no-array-reduce': 'off',
11
- // This is too opinionated
12
- 'unicorn/no-magic-array-flat-depth': 'off',
13
- // JavaScript and third-party libraries still rely too much on `null`
14
- 'unicorn/no-null': 'off',
15
- // I don't need this
16
- 'unicorn/no-process-exit': 'off',
17
7
  // Prevents explicitly exporting `undefined` as a value:
18
- // `return x.length > 0 x : undefined`
8
+ // - `return x.length > 0 x : undefined`
19
9
  'unicorn/no-useless-undefined': 'off',
20
- // This breaks a lot of code, like `typeof window` to detect that
21
- // we're in the browser
10
+ // This breaks a lot of code, like `typeof window` to detect that we're in
11
+ // the browser
22
12
  'unicorn/prefer-global-this': 'off',
23
- // Prefer reading a JSON file as a buffer
24
- 'unicorn/prefer-json-parse-buffer': 'error',
25
- // Set.has() might be faster than Array.includes() but who cares
26
- // if the array is short. Set is less readable
13
+ // Set.has() might be faster than Array.includes() but who cares if the array
14
+ // is short. Set is less readable
27
15
  'unicorn/prefer-set-has': 'off',
28
- // Reduces readability
16
+ // Ternaries often reduce readability
29
17
  'unicorn/prefer-ternary': 'off',
30
- // Disable abbreviation replacements because it breaks many
31
- // established naming conventions and often produces ugly code, like
32
- // `import { vars as variables } from '.'`
33
- 'unicorn/prevent-abbreviations': 'off',
34
18
  },
35
19
  },
36
20
  ];