@nfq/eslint-config 3.2.1 → 3.2.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.
@@ -3,7 +3,6 @@ module.exports = {
3
3
  rules: {
4
4
  '@typescript-eslint/adjacent-overload-signatures': 'error',
5
5
  '@typescript-eslint/array-type': ['error', {default: 'array'}],
6
- '@typescript-eslint/ban-types': 'error',
7
6
  '@typescript-eslint/brace-style': ['error', '1tbs', {allowSingleLine: false}],
8
7
  '@typescript-eslint/class-literal-property-style': 'error',
9
8
  '@typescript-eslint/comma-dangle': ['error', 'never'],
@@ -78,6 +77,7 @@ module.exports = {
78
77
  '@typescript-eslint/no-dynamic-delete': 'off',
79
78
  '@typescript-eslint/no-empty-function': ['error', {allow: ['arrowFunctions', 'methods', 'asyncMethods']}],
80
79
  '@typescript-eslint/no-empty-interface': 'error',
80
+ '@typescript-eslint/no-empty-object-type': 'error',
81
81
  '@typescript-eslint/no-explicit-any': 'off',
82
82
  '@typescript-eslint/no-extra-non-null-assertion': 'error',
83
83
  '@typescript-eslint/no-extra-semi': 'error',
@@ -117,6 +117,7 @@ module.exports = {
117
117
  '@typescript-eslint/no-unsafe-argument': 'error',
118
118
  '@typescript-eslint/no-unsafe-assignment': 'off',
119
119
  '@typescript-eslint/no-unsafe-call': 'error',
120
+ '@typescript-eslint/no-unsafe-function-type': 'error',
120
121
  '@typescript-eslint/no-unsafe-member-access': 'error',
121
122
  '@typescript-eslint/no-unsafe-return': 'error',
122
123
  '@typescript-eslint/no-unused-expressions': [
@@ -148,6 +149,7 @@ module.exports = {
148
149
  '@typescript-eslint/no-useless-constructor': 'error',
149
150
  '@typescript-eslint/no-useless-empty-export': 'error',
150
151
  '@typescript-eslint/no-var-requires': 'error',
152
+ '@typescript-eslint/no-wrapper-object-types': 'error',
151
153
  '@typescript-eslint/non-nullable-type-assertion-style': 'error',
152
154
  '@typescript-eslint/object-curly-spacing': ['error', 'never'],
153
155
  '@typescript-eslint/padding-line-between-statements': [
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [3.2.2](https://github.com/nfqde/eslint-config-nfq/compare/v3.2.1...v3.2.2) (2024-10-01)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **Typescript:** fix deprecated rules ([#62](https://github.com/nfqde/eslint-config-nfq/issues/62)) ([076a459](https://github.com/nfqde/eslint-config-nfq/commit/076a459f2cb76a256fad653a654eb31457dafca0))
11
+
5
12
  ### [3.2.1](https://github.com/nfqde/eslint-config-nfq/compare/v3.2.0...v3.2.1) (2024-05-20)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nfq/eslint-config",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "engines": {
5
5
  "node": ">= 12.0.0"
6
6
  },
@@ -49,28 +49,28 @@
49
49
  "confusing-browser-globals": "^1.0.11"
50
50
  },
51
51
  "devDependencies": {
52
- "@babel/core": "^7.23.6",
53
- "@babel/eslint-parser": "^7.23.3",
54
- "@nfq/eslint-plugin": "^0.8.1",
55
- "@typescript-eslint/eslint-plugin": "^6.14.0",
56
- "@typescript-eslint/parser": "^6.14.0",
57
- "eslint": "^8.56.0",
52
+ "@babel/core": "^7.25.2",
53
+ "@babel/eslint-parser": "^7.25.1",
54
+ "@nfq/eslint-plugin": "^0.8.2",
55
+ "@typescript-eslint/eslint-plugin": "^8.8.0",
56
+ "@typescript-eslint/parser": "^8.8.0",
57
+ "eslint": "^8.57.1",
58
58
  "eslint-import-resolver-alias": "^1.1.2",
59
59
  "eslint-plugin-array-func": "^4.0.0",
60
60
  "eslint-plugin-better-styled-components": "^1.1.2",
61
- "eslint-plugin-import": "^2.29.1",
62
- "eslint-plugin-jsdoc": "^46.9.1",
63
- "eslint-plugin-jsx-a11y": "^6.8.0",
64
- "eslint-plugin-no-unsanitized": "^4.0.2",
61
+ "eslint-plugin-import": "^2.30.0",
62
+ "eslint-plugin-jsdoc": "^50.3.1",
63
+ "eslint-plugin-jsx-a11y": "^6.10.0",
64
+ "eslint-plugin-no-unsanitized": "^4.1.2",
65
65
  "eslint-plugin-node": "^11.1.0",
66
66
  "eslint-plugin-perf-standard": "^1.0.3",
67
- "eslint-plugin-promise": "^6.1.1",
68
- "eslint-plugin-react": "^7.33.2",
69
- "eslint-plugin-react-hooks": "^4.6.0",
67
+ "eslint-plugin-promise": "^7.1.0",
68
+ "eslint-plugin-react": "^7.37.1",
69
+ "eslint-plugin-react-hooks": "^4.6.2",
70
70
  "eslint-plugin-react-hooks-ssr": "^0.1.5",
71
- "eslint-plugin-redos": "4.4.5",
72
- "eslint-plugin-security": "^2.1.0",
73
- "eslint-plugin-sort-destructure-keys": "^1.5.0",
71
+ "eslint-plugin-redos": "4.5.0-beta.6",
72
+ "eslint-plugin-security": "^3.0.1",
73
+ "eslint-plugin-sort-destructure-keys": "^2.0.0",
74
74
  "standard-version": "^9.5.0"
75
75
  },
76
76
  "author": ".NFQ | Christoph Kruppe",
@@ -3,7 +3,6 @@ module.exports = {
3
3
  rules: {
4
4
  '@typescript-eslint/adjacent-overload-signatures': 'error',
5
5
  '@typescript-eslint/array-type': ['error', {default: 'array'}],
6
- '@typescript-eslint/ban-types': 'error',
7
6
  '@typescript-eslint/brace-style': ['error', '1tbs', {allowSingleLine: false}],
8
7
  '@typescript-eslint/class-literal-property-style': 'error',
9
8
  '@typescript-eslint/comma-dangle': ['error', 'never'],
@@ -78,6 +77,7 @@ module.exports = {
78
77
  '@typescript-eslint/no-dynamic-delete': 'off',
79
78
  '@typescript-eslint/no-empty-function': ['error', {allow: ['arrowFunctions', 'methods', 'asyncMethods']}],
80
79
  '@typescript-eslint/no-empty-interface': 'error',
80
+ '@typescript-eslint/no-empty-object-type': 'error',
81
81
  '@typescript-eslint/no-explicit-any': 'off',
82
82
  '@typescript-eslint/no-extra-non-null-assertion': 'error',
83
83
  '@typescript-eslint/no-extra-semi': 'error',
@@ -117,6 +117,7 @@ module.exports = {
117
117
  '@typescript-eslint/no-unsafe-argument': 'error',
118
118
  '@typescript-eslint/no-unsafe-assignment': 'off',
119
119
  '@typescript-eslint/no-unsafe-call': 'error',
120
+ '@typescript-eslint/no-unsafe-function-type': 'error',
120
121
  '@typescript-eslint/no-unsafe-member-access': 'error',
121
122
  '@typescript-eslint/no-unsafe-return': 'error',
122
123
  '@typescript-eslint/no-unused-expressions': [
@@ -148,6 +149,7 @@ module.exports = {
148
149
  '@typescript-eslint/no-useless-constructor': 'error',
149
150
  '@typescript-eslint/no-useless-empty-export': 'error',
150
151
  '@typescript-eslint/no-var-requires': 'error',
152
+ '@typescript-eslint/no-wrapper-object-types': 'error',
151
153
  '@typescript-eslint/non-nullable-type-assertion-style': 'error',
152
154
  '@typescript-eslint/object-curly-spacing': ['error', 'never'],
153
155
  '@typescript-eslint/padding-line-between-statements': [
@@ -1,237 +0,0 @@
1
- /* eslint-disable no-inline-comments */
2
- module.exports = {
3
- rules: {
4
- '@typescript-eslint/adjacent-overload-signatures': 'error',
5
- '@typescript-eslint/array-type': ['error', {default: 'array'}],
6
- '@typescript-eslint/ban-types': 'error',
7
- '@typescript-eslint/brace-style': ['error', '1tbs', {allowSingleLine: false}],
8
- '@typescript-eslint/class-literal-property-style': 'error',
9
- '@typescript-eslint/comma-dangle': ['error', 'never'],
10
- '@typescript-eslint/comma-spacing': [
11
- 'error',
12
- {
13
- after: true,
14
- before: false
15
- }
16
- ],
17
- '@typescript-eslint/consistent-generic-constructors': ['error', 'constructor'],
18
- '@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
19
- '@typescript-eslint/consistent-type-assertions': ['error', {assertionStyle: 'as'}],
20
- '@typescript-eslint/consistent-type-definitions': 'off',
21
- '@typescript-eslint/consistent-type-exports': 'error',
22
- '@typescript-eslint/consistent-type-imports': [
23
- 'error',
24
- {
25
- disallowTypeAnnotations: true,
26
- prefer: 'type-imports'
27
- }
28
- ],
29
- '@typescript-eslint/default-param-last': 'error',
30
- '@typescript-eslint/dot-notation': ['error', {allowKeywords: true}],
31
- '@typescript-eslint/explicit-function-return-type': 'off',
32
- '@typescript-eslint/explicit-member-accessibility': ['error', {accessibility: 'no-public'}],
33
- '@typescript-eslint/explicit-module-boundary-types': 'off',
34
- '@typescript-eslint/func-call-spacing': ['error', 'never'],
35
- '@typescript-eslint/indent': 'off',
36
- '@typescript-eslint/init-declarations': 'off',
37
- '@typescript-eslint/keyword-spacing': [
38
- 'error',
39
- {
40
- after: true,
41
- before: true
42
- }
43
- ],
44
- '@typescript-eslint/lines-between-class-members': [
45
- 'error',
46
- 'always',
47
- {exceptAfterSingleLine: false}
48
- ],
49
- '@typescript-eslint/member-delimiter-style': [
50
- 'error',
51
- {
52
- multiline: {
53
- delimiter: 'semi',
54
- requireLast: true
55
- },
56
- multilineDetection: 'brackets',
57
- singleline: {
58
- delimiter: 'semi',
59
- requireLast: false
60
- }
61
- }
62
- ],
63
- '@typescript-eslint/member-ordering': [
64
- 'error',
65
- {
66
- default: {order: 'as-written'},
67
- interfaces: {order: 'alphabetically-case-insensitive'},
68
- typeLiterals: {order: 'alphabetically-case-insensitive'}
69
- }
70
- ],
71
- '@typescript-eslint/method-signature-style': ['error', 'method'],
72
- '@typescript-eslint/no-array-constructor': 'error',
73
- '@typescript-eslint/no-base-to-string': 'error',
74
- '@typescript-eslint/no-confusing-non-null-assertion': 'warn',
75
- '@typescript-eslint/no-confusing-void-expression': 'off',
76
- '@typescript-eslint/no-dupe-class-members': 'error',
77
- '@typescript-eslint/no-duplicate-enum-values': 'warn',
78
- '@typescript-eslint/no-dynamic-delete': 'off',
79
- '@typescript-eslint/no-empty-function': ['error', {allow: ['arrowFunctions', 'methods', 'asyncMethods']}],
80
- '@typescript-eslint/no-empty-interface': 'error',
81
- '@typescript-eslint/no-explicit-any': 'off',
82
- '@typescript-eslint/no-extra-non-null-assertion': 'error',
83
- '@typescript-eslint/no-extra-semi': 'error',
84
- '@typescript-eslint/no-extraneous-class': 'off',
85
- '@typescript-eslint/no-floating-promises': 'error',
86
- '@typescript-eslint/no-for-in-array': 'error',
87
- '@typescript-eslint/no-implied-eval': 'error',
88
- '@typescript-eslint/no-inferrable-types': 'error',
89
- '@typescript-eslint/no-invalid-this': 'error',
90
- '@typescript-eslint/no-invalid-void-type': 'off',
91
- '@typescript-eslint/no-loop-func': 'error',
92
- '@typescript-eslint/no-loss-of-precision': 'error',
93
- '@typescript-eslint/no-misused-new': 'error',
94
- '@typescript-eslint/no-misused-promises': ['error', {checksVoidReturn: false}],
95
- '@typescript-eslint/no-namespace': [
96
- 'error',
97
- {
98
- allowDeclarations: true,
99
- allowDefinitionFiles: true
100
- }
101
- ],
102
- '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
103
- '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
104
- '@typescript-eslint/no-non-null-assertion': 'off',
105
- '@typescript-eslint/no-redeclare': 'error',
106
- '@typescript-eslint/no-redundant-type-constituents': 'warn',
107
- '@typescript-eslint/no-require-imports': 'warn',
108
- '@typescript-eslint/no-shadow': 'error',
109
- '@typescript-eslint/no-this-alias': ['error', {allowedNames: ['self']}],
110
- '@typescript-eslint/no-throw-literal': 'error',
111
- '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
112
- '@typescript-eslint/no-unnecessary-condition': 'error',
113
- '@typescript-eslint/no-unnecessary-qualifier': 'error',
114
- '@typescript-eslint/no-unnecessary-type-arguments': 'warn',
115
- '@typescript-eslint/no-unnecessary-type-assertion': 'warn',
116
- '@typescript-eslint/no-unnecessary-type-constraint': 'error',
117
- '@typescript-eslint/no-unsafe-argument': 'error',
118
- '@typescript-eslint/no-unsafe-assignment': 'off',
119
- '@typescript-eslint/no-unsafe-call': 'error',
120
- '@typescript-eslint/no-unsafe-member-access': 'error',
121
- '@typescript-eslint/no-unsafe-return': 'error',
122
- '@typescript-eslint/no-unused-expressions': [
123
- 'error',
124
- {
125
- allowShortCircuit: true,
126
- allowTaggedTemplates: false,
127
- allowTernary: true
128
- }
129
- ],
130
- '@typescript-eslint/no-unused-vars': 'error',
131
- '@typescript-eslint/no-use-before-define': [
132
- 'error',
133
- {
134
- classes: false,
135
- functions: false,
136
- variables: false
137
- }
138
- ],
139
- '@typescript-eslint/no-useless-constructor': 'error',
140
- '@typescript-eslint/no-useless-empty-export': 'error',
141
- '@typescript-eslint/no-var-requires': 'error',
142
- '@typescript-eslint/non-nullable-type-assertion-style': 'error',
143
- '@typescript-eslint/object-curly-spacing': ['error', 'never'],
144
- '@typescript-eslint/padding-line-between-statements': [
145
- 'error',
146
- {
147
- blankLine: 'always',
148
- next: '*',
149
- prev: ['const', 'let', 'var']
150
- },
151
- {
152
- blankLine: 'any',
153
- next: ['const', 'let', 'var'],
154
- prev: ['const', 'let', 'var']
155
- }
156
- ],
157
- '@typescript-eslint/prefer-as-const': 'error',
158
- '@typescript-eslint/prefer-enum-initializers': 'off',
159
- '@typescript-eslint/prefer-for-of': 'error',
160
- '@typescript-eslint/prefer-function-type': 'off',
161
- '@typescript-eslint/prefer-includes': 'error',
162
- '@typescript-eslint/prefer-literal-enum-member': 'error',
163
- '@typescript-eslint/prefer-namespace-keyword': 'error',
164
- '@typescript-eslint/prefer-nullish-coalescing': 'error',
165
- '@typescript-eslint/prefer-optional-chain': 'error',
166
- '@typescript-eslint/prefer-readonly': 'error',
167
- '@typescript-eslint/prefer-readonly-parameter-types': 'off',
168
- '@typescript-eslint/prefer-reduce-type-parameter': 'error',
169
- '@typescript-eslint/prefer-return-this-type': 'error',
170
- '@typescript-eslint/prefer-string-starts-ends-with': 'error',
171
- '@typescript-eslint/prefer-ts-expect-error': 'error',
172
- '@typescript-eslint/promise-function-async': 'error',
173
- '@typescript-eslint/quotes': [
174
- 'error',
175
- 'single',
176
- {avoidEscape: true}
177
- ],
178
- '@typescript-eslint/require-array-sort-compare': 'off',
179
- '@typescript-eslint/require-await': 'error',
180
- '@typescript-eslint/restrict-plus-operands': 'error',
181
- '@typescript-eslint/restrict-template-expressions': 'error',
182
- '@typescript-eslint/return-await': 'error',
183
- '@typescript-eslint/semi': 'error',
184
- '@typescript-eslint/sort-type-constituents': ['error', {checkIntersections: false}],
185
- '@typescript-eslint/space-before-blocks': ['error', 'always'],
186
- '@typescript-eslint/space-before-function-paren': [
187
- 'error',
188
- {
189
- anonymous: 'never',
190
- asyncArrow: 'always',
191
- named: 'never'
192
- }
193
- ],
194
- '@typescript-eslint/space-infix-ops': 'error',
195
- '@typescript-eslint/strict-boolean-expressions': 'off',
196
- '@typescript-eslint/switch-exhaustiveness-check': 'error',
197
- '@typescript-eslint/triple-slash-reference': 'error',
198
- '@typescript-eslint/type-annotation-spacing': 'error',
199
- '@typescript-eslint/unified-signatures': 'error',
200
- 'brace-style': 'off',
201
- 'comma-dangle': 'off',
202
- 'comma-spacing': 'off',
203
- 'default-param-last': 'off',
204
- 'dot-notation': 'off',
205
- 'func-call-spacing': 'off',
206
- 'jsdoc/require-param-type': 'off',
207
- 'jsdoc/require-returns-type': 'off',
208
- 'keyword-spacing': 'off',
209
- 'lines-between-class-members': 'off',
210
- 'no-array-constructor': 'off',
211
- 'no-dupe-class-members': 'off',
212
- 'no-empty-function': 'off',
213
- 'no-extra-semi': 'off',
214
- 'no-implied-eval': 'off',
215
- 'no-invalid-this': 'off',
216
- 'no-loop-func': 'off',
217
- 'no-loss-of-precision': 'off',
218
- 'no-redeclare': 'off',
219
- 'no-return-await': 'off',
220
- 'no-shadow': 'off',
221
- 'no-throw-literal': 'off',
222
- 'no-undefined': 'off',
223
- 'no-unused-expressions': 'off',
224
- 'no-unused-vars': 'off',
225
- 'no-use-before-define': 'off',
226
- 'no-useless-constructor': 'off',
227
- 'object-curly-spacing': 'off',
228
- 'padding-line-between-statements': 'off',
229
- quotes: 'off',
230
- 'react/default-props-match-prop-types': 'off',
231
- 'react/require-default-props': 'off',
232
- semi: 'off',
233
- 'space-before-blocks': 'off',
234
- 'space-before-function-paren': 'off',
235
- 'space-infix-ops': 'off'
236
- }
237
- };