eslint-config-tamia 8.0.0 → 8.0.2

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,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-config-tamia",
3
3
  "description": "Tâmia ESLint config",
4
- "version": "8.0.0",
4
+ "version": "8.0.2",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "pretest": "npm run lint",
package/rules/errors.js CHANGED
@@ -4,8 +4,6 @@ module.exports = {
4
4
  // Enforce “for” loop update clause moving the counter
5
5
  // in the right direction
6
6
  'for-direction': 2,
7
- // Disallow await inside of loops
8
- 'no-await-in-loop': 2,
9
7
  // Disallow use of Object.prototypes builtins directly
10
8
  'no-prototype-builtins': 2,
11
9
  },
@@ -5,46 +5,34 @@ module.exports = {
5
5
  '@typescript-eslint/adjacent-overload-signatures': 'error',
6
6
  '@typescript-eslint/array-type': 'error',
7
7
  '@typescript-eslint/ban-types': 'error',
8
- '@typescript-eslint/naming-convention': ['error',
8
+ '@typescript-eslint/naming-convention': [
9
+ 'error',
9
10
  {
10
11
  selector: 'default',
11
- format: ['camelCase']
12
+ format: ['camelCase'],
12
13
  },
13
14
  {
14
15
  selector: 'variableLike',
15
- format: ['camelCase', 'PascalCase', 'UPPER_CASE']
16
+ format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
16
17
  },
17
18
  {
18
19
  selector: 'property',
19
- format: ['camelCase', 'PascalCase', 'snake_case', 'UPPER_CASE'],
20
- leadingUnderscore: 'allow',
20
+ format: null,
21
21
  },
22
22
  {
23
23
  selector: 'typeLike',
24
- format: ['PascalCase']
24
+ format: ['PascalCase'],
25
25
  },
26
26
  {
27
27
  selector: 'enumMember',
28
28
  format: ['PascalCase', 'UPPER_CASE'],
29
29
  },
30
- {
31
- // React: dangerouslySetInnerHTML={{__html: '<div />'}}
32
- selector: 'property',
33
- filter: '^__html$',
34
- format: null,
35
- },
36
30
  {
37
31
  // Unused function argument
38
32
  selector: 'variableLike',
39
33
  filter: '^_$',
40
34
  format: null,
41
35
  },
42
- {
43
- // Quoted property names
44
- selector: 'property',
45
- filter: '[^a-zA-Z0-9_]',
46
- format: null,
47
- },
48
36
  ],
49
37
  '@typescript-eslint/explicit-member-accessibility': 'error',
50
38
  '@typescript-eslint/consistent-type-assertions': 'error',
@@ -64,38 +52,38 @@ module.exports = {
64
52
  },
65
53
  overrides: [
66
54
  {
67
- files: ['*.ts', '*.tsx'],
68
- rules: {
69
- // Disable generic rules that conflict with TypeScript
70
- 'camelcase': 'off',
71
- 'no-array-constructor': 'off',
72
- 'no-unused-vars': 'off',
73
- 'no-unused-expressions': 'off',
74
- 'no-use-before-define': 'off',
55
+ files: ['*.ts', '*.tsx'],
56
+ rules: {
57
+ // Disable generic rules that conflict with TypeScript
58
+ camelcase: 'off',
59
+ 'no-array-constructor': 'off',
60
+ 'no-unused-vars': 'off',
61
+ 'no-unused-expressions': 'off',
62
+ 'no-use-before-define': 'off',
75
63
 
76
- //Checked by Typescript - ts(2378)
77
- 'getter-return': 'off',
78
- // Checked by Typescript - ts(2300)
79
- 'no-dupe-args': 'off',
80
- // Checked by Typescript - ts(1117)
81
- 'no-dupe-keys': 'off',
82
- // Checked by Typescript - ts(7027)
83
- 'no-unreachable': 'off',
84
- // Checked by Typescript - ts(2367)
85
- 'valid-typeof': 'off',
86
- // Checked by Typescript - ts(2588)
87
- 'no-const-assign': 'off',
88
- // Checked by Typescript - ts(2588)
89
- 'no-new-symbol': 'off',
90
- // Checked by Typescript - ts(2376)
91
- 'no-this-before-super': 'off',
92
- // This is checked by Typescript using the option `strictNullChecks`.
93
- 'no-undef': 'off',
94
- // This is already checked by Typescript.
95
- 'no-dupe-class-members': 'off',
96
- // This is already checked by Typescript.
97
- 'no-redeclare': 'off',
98
- },
64
+ //Checked by Typescript - ts(2378)
65
+ 'getter-return': 'off',
66
+ // Checked by Typescript - ts(2300)
67
+ 'no-dupe-args': 'off',
68
+ // Checked by Typescript - ts(1117)
69
+ 'no-dupe-keys': 'off',
70
+ // Checked by Typescript - ts(7027)
71
+ 'no-unreachable': 'off',
72
+ // Checked by Typescript - ts(2367)
73
+ 'valid-typeof': 'off',
74
+ // Checked by Typescript - ts(2588)
75
+ 'no-const-assign': 'off',
76
+ // Checked by Typescript - ts(2588)
77
+ 'no-new-symbol': 'off',
78
+ // Checked by Typescript - ts(2376)
79
+ 'no-this-before-super': 'off',
80
+ // This is checked by Typescript using the option `strictNullChecks`.
81
+ 'no-undef': 'off',
82
+ // This is already checked by Typescript.
83
+ 'no-dupe-class-members': 'off',
84
+ // This is already checked by Typescript.
85
+ 'no-redeclare': 'off',
86
+ },
99
87
  },
100
- ],
88
+ ],
101
89
  };