eslint-config-tamia 9.0.2 → 9.0.3

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 +11 -2
  2. package/rules/typescript.mjs +35 -40
package/package.json CHANGED
@@ -1,9 +1,18 @@
1
1
  {
2
2
  "name": "eslint-config-tamia",
3
3
  "description": "Tâmia ESLint config",
4
- "version": "9.0.2",
4
+ "version": "9.0.3",
5
5
  "type": "module",
6
- "main": "index.js",
6
+ "main": "index.mjs",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./index.mjs"
10
+ },
11
+ "./legacy": "./legacy.mjs",
12
+ "./react": "./react.mjs",
13
+ "./typescript-react": "./typescript.mjs-react",
14
+ "./typescript": "./typescript.mjs"
15
+ },
7
16
  "files": [
8
17
  "rules",
9
18
  "*.mjs"
@@ -4,7 +4,42 @@ import tseslint from 'typescript-eslint';
4
4
  export default [
5
5
  tseslint.configs.base,
6
6
  {
7
+ files: ['*.ts', '*.tsx', '*.astro'],
7
8
  rules: {
9
+ // Disable generic rules that conflict with TypeScript
10
+ camelcase: 'off',
11
+ 'no-array-constructor': 'off',
12
+ 'no-unused-vars': 'off',
13
+ 'no-unused-expressions': 'off',
14
+ 'no-use-before-define': 'off',
15
+ 'no-shadow': 'off',
16
+
17
+ // Conflicts with TypeScript check for unreachable code
18
+ 'consistent-return': 'off',
19
+
20
+ //Checked by TypeScript - ts(2378)
21
+ 'getter-return': 'off',
22
+ // Checked by TypeScript - ts(2300)
23
+ 'no-dupe-args': 'off',
24
+ // Checked by TypeScript - ts(1117)
25
+ 'no-dupe-keys': 'off',
26
+ // Checked by TypeScript - ts(7027)
27
+ 'no-unreachable': 'off',
28
+ // Checked by TypeScript - ts(2367)
29
+ 'valid-typeof': 'off',
30
+ // Checked by TypeScript - ts(2588)
31
+ 'no-const-assign': 'off',
32
+ // Checked by TypeScript - ts(2588)
33
+ 'no-new-symbol': 'off',
34
+ // Checked by TypeScript - ts(2376)
35
+ 'no-this-before-super': 'off',
36
+ // This is checked by TypeScript using the option `strictNullChecks`.
37
+ 'no-undef': 'off',
38
+ // This is already checked by TypeScript.
39
+ 'no-dupe-class-members': 'off',
40
+ // This is already checked by TypeScript.
41
+ 'no-redeclare': 'off',
42
+
8
43
  '@typescript-eslint/adjacent-overload-signatures': 'error',
9
44
  '@typescript-eslint/array-type': 'error',
10
45
  '@typescript-eslint/ban-types': 'error',
@@ -51,45 +86,5 @@ export default [
51
86
  '@typescript-eslint/no-shadow': 'error',
52
87
  '@typescript-eslint/prefer-namespace-keyword': 'error',
53
88
  },
54
- overrides: [
55
- {
56
- files: ['*.ts', '*.tsx', '*.astro'],
57
- rules: {
58
- // Disable generic rules that conflict with TypeScript
59
- camelcase: 'off',
60
- 'no-array-constructor': 'off',
61
- 'no-unused-vars': 'off',
62
- 'no-unused-expressions': 'off',
63
- 'no-use-before-define': 'off',
64
- 'no-shadow': 'off',
65
-
66
- // Conflicts with TypeScript check for unreachable code
67
- 'consistent-return': 'off',
68
-
69
- //Checked by TypeScript - ts(2378)
70
- 'getter-return': 'off',
71
- // Checked by TypeScript - ts(2300)
72
- 'no-dupe-args': 'off',
73
- // Checked by TypeScript - ts(1117)
74
- 'no-dupe-keys': 'off',
75
- // Checked by TypeScript - ts(7027)
76
- 'no-unreachable': 'off',
77
- // Checked by TypeScript - ts(2367)
78
- 'valid-typeof': 'off',
79
- // Checked by TypeScript - ts(2588)
80
- 'no-const-assign': 'off',
81
- // Checked by TypeScript - ts(2588)
82
- 'no-new-symbol': 'off',
83
- // Checked by TypeScript - ts(2376)
84
- 'no-this-before-super': 'off',
85
- // This is checked by TypeScript using the option `strictNullChecks`.
86
- 'no-undef': 'off',
87
- // This is already checked by TypeScript.
88
- 'no-dupe-class-members': 'off',
89
- // This is already checked by TypeScript.
90
- 'no-redeclare': 'off',
91
- },
92
- },
93
- ],
94
89
  },
95
90
  ];