@ffflorian/eslint-config 0.11.1 → 0.12.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 (4) hide show
  1. package/index.ts +78 -0
  2. package/package.json +45 -19
  3. package/CHANGELOG.md +0 -369
  4. package/index.json +0 -119
package/index.ts ADDED
@@ -0,0 +1,78 @@
1
+ import js from '@eslint/js';
2
+ import importPlugin from 'eslint-plugin-import';
3
+ import oxlint from 'eslint-plugin-oxlint';
4
+ import perfectionist from 'eslint-plugin-perfectionist';
5
+ import {defineConfig, globalIgnores} from 'eslint/config';
6
+ import globals from 'globals';
7
+ import {configs as tseslintConfigs} from 'typescript-eslint';
8
+
9
+ export default defineConfig([
10
+ globalIgnores(['**/node_modules/**', '**/dist/**']),
11
+ js.configs.recommended,
12
+ tseslintConfigs.recommended,
13
+ {
14
+ extends: [
15
+ importPlugin.flatConfigs.recommended,
16
+ importPlugin.flatConfigs.typescript,
17
+ perfectionist.configs['recommended-alphabetical'],
18
+ ],
19
+ files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
20
+ languageOptions: {
21
+ globals: {
22
+ ...globals.node,
23
+ },
24
+ },
25
+ plugins: {js},
26
+ rules: {
27
+ '@typescript-eslint/array-type': ['error', {default: 'array-simple'}],
28
+ '@typescript-eslint/consistent-type-assertions': 'error',
29
+ '@typescript-eslint/no-empty-object-type': 'off',
30
+ '@typescript-eslint/no-explicit-any': 'off',
31
+ '@typescript-eslint/no-inferrable-types': ['error', {ignoreParameters: true}],
32
+ '@typescript-eslint/no-redeclare': 'error',
33
+ '@typescript-eslint/no-this-alias': 'error',
34
+ '@typescript-eslint/no-unused-vars': 'error',
35
+ '@typescript-eslint/typedef': 'error',
36
+ 'constructor-super': 'error',
37
+ curly: 'error',
38
+ 'id-length': ['error', {exceptions: ['_']}],
39
+ 'import/order': 'off',
40
+ 'no-console': ['error', {allow: ['error', 'info', 'warn']}],
41
+ 'no-const-assign': 'error',
42
+ 'no-duplicate-case': 'error',
43
+ 'no-else-return': 'error',
44
+ 'no-inner-declarations': 'error',
45
+ 'no-lonely-if': 'error',
46
+ 'no-magic-numbers': ['error', {ignore: [-1, 0, 1, 2]}],
47
+ 'no-prototype-builtins': 'off',
48
+ 'no-redeclare': 'off',
49
+ 'no-return-await': 'error',
50
+ 'no-sequences': 'error',
51
+ 'no-sparse-arrays': 'error',
52
+ 'no-trailing-spaces': 'error',
53
+ 'no-undef': 'error',
54
+ 'no-unneeded-ternary': 'error',
55
+ 'no-unused-expressions': 'error',
56
+ 'no-unused-vars': 'off',
57
+ 'no-useless-return': 'error',
58
+ 'no-var': 'error',
59
+ 'one-var': ['error', 'never'],
60
+ 'prefer-arrow-callback': 'error',
61
+ 'prefer-const': 'error',
62
+ 'prefer-object-spread': 'error',
63
+ 'prefer-promise-reject-errors': 'error',
64
+ 'prefer-spread': 'error',
65
+ 'prefer-template': 'error',
66
+ quotes: ['error', 'single', {allowTemplateLiterals: true, avoidEscape: true}],
67
+ 'sort-keys': 'off',
68
+ 'sort-vars': 'error',
69
+ strict: ['error', 'global'],
70
+ },
71
+ settings: {
72
+ 'import/resolver': {
73
+ typescript: {},
74
+ },
75
+ },
76
+ },
77
+ ...oxlint.configs['flat/recommended'],
78
+ ]);
package/package.json CHANGED
@@ -1,30 +1,56 @@
1
1
  {
2
2
  "author": "Florian Imdahl <git@ffflorian.de>",
3
+ "dependencies": {
4
+ "@eslint/js": "9.39.2",
5
+ "eslint": "9.39.2",
6
+ "eslint-import-resolver-typescript": "4.4.4",
7
+ "eslint-plugin-import": "2.32.0",
8
+ "eslint-plugin-oxlint": "1.42.0",
9
+ "eslint-plugin-perfectionist": "5.4.0",
10
+ "globals": "17.2.0",
11
+ "jiti": "2.6.1",
12
+ "typescript-eslint": "8.54.0"
13
+ },
3
14
  "description": "@ffflorian's eslint configuration",
15
+ "devDependencies": {
16
+ "@eslint/js": "9.39.2",
17
+ "eslint": "9.39.2",
18
+ "eslint-import-resolver-typescript": "4.4.4",
19
+ "eslint-plugin-import": "2.32.0",
20
+ "eslint-plugin-oxlint": "1.42.0",
21
+ "eslint-plugin-perfectionist": "5.4.0",
22
+ "globals": "17.2.0",
23
+ "jiti": "2.6.1",
24
+ "typescript": "5.9.3",
25
+ "typescript-eslint": "8.54.0"
26
+ },
27
+ "files": [
28
+ "index.ts"
29
+ ],
4
30
  "keywords": [
5
31
  "eslint",
6
32
  "eslintconfig"
7
33
  ],
34
+ "peerDependencies": {
35
+ "@eslint/js": ">= 9.39.2",
36
+ "eslint": ">= 9.39.2",
37
+ "eslint-import-resolver-typescript": ">= 4.4.4",
38
+ "eslint-plugin-import": ">= 2.32.0",
39
+ "eslint-plugin-oxlint": ">= 1.42.0",
40
+ "eslint-plugin-perfectionist": ">= 5.4.0",
41
+ "globals": ">= 17.2.0",
42
+ "jiti": ">= 2.6.1",
43
+ "typescript": ">= 5.9.3",
44
+ "typescript-eslint": ">= 8.54.0"
45
+ },
8
46
  "license": "GPL-3.0",
9
- "main": "index.json",
47
+ "main": "index.ts",
10
48
  "name": "@ffflorian/eslint-config",
11
- "peerDependencies": {
12
- "@babel/eslint-parser": ">= 7.0.0",
13
- "@typescript-eslint/eslint-plugin": ">= 4.14.1",
14
- "@typescript-eslint/parser": ">= 4.14.1",
15
- "eslint": ">= 6.8.0",
16
- "eslint-config-prettier": ">= 4.0.0",
17
- "eslint-plugin-import": ">= 2.20.0",
18
- "eslint-plugin-jasmine": ">= 4.1.0",
19
- "eslint-plugin-jsdoc": ">= 21.0.0",
20
- "eslint-plugin-no-unsanitized": ">= 3.1.0",
21
- "eslint-plugin-prettier": ">= 3.1.2",
22
- "eslint-plugin-simple-import-sort": ">= 5.0.0",
23
- "eslint-plugin-sort-keys-fix": ">= 1.1.0",
24
- "eslint-plugin-typescript-sort-keys": ">= 0.8.0",
25
- "eslint-plugin-unused-imports": ">= 1.1.0"
49
+ "scripts": {
50
+ "fix": "yarn lint --fix",
51
+ "lint": "eslint -c index.ts ."
26
52
  },
27
- "repository": "https://github.com/ffflorian/config/tree/main/packages/eslint-config",
28
- "version": "0.11.1",
29
- "gitHead": "cb378fad1a418992ecb46aa3c8fd482e4d5b9abb"
53
+ "repository": "https://github.com/ffflorian/config",
54
+ "version": "0.12.1",
55
+ "gitHead": "e16ad8b4a1bfafa56aeb169c8d371bfce5e9523d"
30
56
  }
package/CHANGELOG.md DELETED
@@ -1,369 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## 0.11.1 (2026-01-09)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * Release ([90cde23](https://github.com/ffflorian/config/commit/90cde23c333d29f7613eb7dd59d990d139c4631c))
12
-
13
-
14
-
15
-
16
-
17
- # 0.11.0 (2026-01-06)
18
-
19
-
20
- ### Features
21
-
22
- * Remove typescript-config ([12608dd](https://github.com/ffflorian/config/commit/12608ddc926c2cb6ba05dd0b81c4793489886689))
23
-
24
-
25
-
26
-
27
-
28
- ## 0.10.3 (2024-05-26)
29
-
30
- **Note:** Version bump only for package @ffflorian/eslint-config
31
-
32
-
33
-
34
-
35
-
36
- ## 0.10.2 (2024-01-17)
37
-
38
-
39
- ### Bug Fixes
40
-
41
- * Update lerna configuration ([04609ff](https://github.com/ffflorian/config/commit/04609ffdd359679f451ae0668df455b6057c5e3d))
42
-
43
-
44
-
45
-
46
-
47
- ## 0.10.1 (2023-04-10)
48
-
49
-
50
- ### Bug Fixes
51
-
52
- * **semantic-release-config:** Remove publish-flat peer dependency ([0c0ae1e](https://github.com/ffflorian/config/commit/0c0ae1eca00c7572e4aade89b79bb4ba0024c38d))
53
-
54
-
55
-
56
-
57
-
58
- # 0.10.0 (2023-04-09)
59
-
60
-
61
- ### Features
62
-
63
- * **semantic-release-config:** Don't release from flattened anymore ([35f6dfb](https://github.com/ffflorian/config/commit/35f6dfba7b2bf8d3d18888845dbfe9dafa280a96))
64
-
65
-
66
-
67
-
68
-
69
- ## 0.9.1 (2023-02-21)
70
-
71
-
72
- ### Bug Fixes
73
-
74
- * **eslint-config:** Update readme instructions ([1369c28](https://github.com/ffflorian/config/commit/1369c28e4e33cc610a1214961359e75b46032f5b))
75
-
76
-
77
-
78
-
79
-
80
- # 0.9.0 (2023-02-21)
81
-
82
-
83
- ### Features
84
-
85
- * **eslint-config:** Use new eslint-parser ([213c145](https://github.com/ffflorian/config/commit/213c145b32b3221d8dd3082c860c1f21f4fa0e29))
86
-
87
-
88
-
89
-
90
-
91
- ## 0.8.3 (2022-08-31)
92
-
93
-
94
- ### Bug Fixes
95
-
96
- * **eslint-config:** Update peer dependencies ([ac4c51a](https://github.com/ffflorian/config/commit/ac4c51af63520d087d03c7d2abd2128ee415b726))
97
-
98
-
99
-
100
-
101
-
102
- ## 0.8.2 (2022-04-27)
103
-
104
-
105
- ### Bug Fixes
106
-
107
- * **eslint-config:** Use @typescript-eslint/no-unused-vars ([8c8623b](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/8c8623b724999980c6519d38db2f355240de4260))
108
-
109
-
110
-
111
-
112
-
113
- ## [0.8.1](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.8.0...@ffflorian/eslint-config@0.8.1) (2021-03-31)
114
-
115
-
116
- ### Bug Fixes
117
-
118
- * **eslint-config:** Correct dependency name ([0dbba9d](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/0dbba9dbd7706e661b1edaa93a8c9ea9122f0000))
119
-
120
-
121
-
122
-
123
-
124
- # [0.8.0](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.7.1...@ffflorian/eslint-config@0.8.0) (2021-03-30)
125
-
126
-
127
- ### Features
128
-
129
- * **eslint-config:** Add no-unused-vars ([91e71c0](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/91e71c0ca549d5b8138f8524e8966b140c846e3c))
130
-
131
-
132
-
133
-
134
-
135
- ## [0.7.1](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.7.0...@ffflorian/eslint-config@0.7.1) (2021-03-30)
136
-
137
-
138
- ### Bug Fixes
139
-
140
- * **eslint-config:** Add eslint-plugin-unused-import as peerDependency ([cc3afee](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/cc3afee91c00b9c35c2a30ede656d2a1f8ebf910))
141
-
142
-
143
-
144
-
145
-
146
- # [0.7.0](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.6.2...@ffflorian/eslint-config@0.7.0) (2021-03-30)
147
-
148
-
149
- ### Features
150
-
151
- * **eslint-config:** Add unused-imports plugin ([1c8ef07](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/1c8ef070bb143e7782efefa30fb2c47d83758117))
152
-
153
-
154
-
155
-
156
-
157
- ## [0.6.2](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.6.1...@ffflorian/eslint-config@0.6.2) (2020-08-11)
158
-
159
- **Note:** Version bump only for package @ffflorian/eslint-config
160
-
161
-
162
-
163
-
164
-
165
- ## [0.6.1](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.6.0...@ffflorian/eslint-config@0.6.1) (2020-07-21)
166
-
167
- **Note:** Version bump only for package @ffflorian/eslint-config
168
-
169
-
170
-
171
-
172
-
173
- # [0.6.0](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.5.1...@ffflorian/eslint-config@0.6.0) (2020-07-03)
174
-
175
-
176
- ### Features
177
-
178
- * Switch to new main branch ([f841d3e](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/f841d3e))
179
-
180
-
181
-
182
-
183
-
184
- ## [0.5.1](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.5.0...@ffflorian/eslint-config@0.5.1) (2020-05-17)
185
-
186
-
187
- ### Bug Fixes
188
-
189
- * **eslint-config:** Array-type default ([8929ad9](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/8929ad9))
190
-
191
-
192
-
193
-
194
-
195
- # [0.5.0](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.4.1...@ffflorian/eslint-config@0.5.0) (2020-05-15)
196
-
197
-
198
- ### Features
199
-
200
- * **eslint:** Add no-inferrable-types, use simple array style ([107387f](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/107387f))
201
-
202
-
203
-
204
-
205
-
206
- ## [0.4.1](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.4.0...@ffflorian/eslint-config@0.4.1) (2020-05-14)
207
-
208
-
209
- ### Bug Fixes
210
-
211
- * **eslint-config:** Allow template literals for quotes ([e919bc4](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/e919bc4))
212
-
213
-
214
-
215
-
216
-
217
- # [0.4.0](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.3.3...@ffflorian/eslint-config@0.4.0) (2020-05-13)
218
-
219
-
220
- ### Features
221
-
222
- * **eslint-config:** Add quotes rule ([0090f70](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/0090f70))
223
-
224
-
225
-
226
-
227
-
228
- ## [0.3.3](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.3.2...@ffflorian/eslint-config@0.3.3) (2020-05-10)
229
-
230
-
231
- ### Bug Fixes
232
-
233
- * **eslint-config:** Add _ as valid parameter name ([fd67d5e](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/fd67d5e))
234
-
235
-
236
-
237
-
238
-
239
- ## [0.3.2](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.3.1...@ffflorian/eslint-config@0.3.2) (2020-05-10)
240
-
241
-
242
- ### Bug Fixes
243
-
244
- * **eslint-config:** Remove no-dupe-class-members ([029ad1c](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/029ad1c))
245
-
246
-
247
-
248
-
249
-
250
- ## [0.3.1](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.3.0...@ffflorian/eslint-config@0.3.1) (2020-05-10)
251
-
252
-
253
- ### Bug Fixes
254
-
255
- * **eslint-config:** Add missing peerDependencies ([146b966](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/146b966))
256
-
257
-
258
-
259
-
260
-
261
- # [0.3.0](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.2.1...@ffflorian/eslint-config@0.3.0) (2020-05-10)
262
-
263
-
264
- ### Features
265
-
266
- * **eslint-config:** Add TypeScript config ([#107](https://github.com/ffflorian/config/tree/main/packages/eslint-config/issues/107)) ([c039f31](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/c039f31))
267
-
268
-
269
-
270
-
271
-
272
- ## [0.2.1](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.2.0...@ffflorian/eslint-config@0.2.1) (2020-01-03)
273
-
274
- **Note:** Version bump only for package @ffflorian/eslint-config
275
-
276
-
277
-
278
-
279
-
280
- # [0.2.0](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.1.2...@ffflorian/eslint-config@0.2.0) (2019-06-21)
281
-
282
-
283
- ### Features
284
-
285
- * **eslint-config,tslint-config:** Disallow trailing whitespace ([#23](https://github.com/ffflorian/config/tree/main/packages/eslint-config/issues/23)) ([b816fe1](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/b816fe1))
286
-
287
-
288
-
289
-
290
-
291
- ## [0.1.2](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.1.1...@ffflorian/eslint-config@0.1.2) (2019-05-23)
292
-
293
- **Note:** Version bump only for package @ffflorian/eslint-config
294
-
295
-
296
-
297
-
298
-
299
- ## [0.1.1](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.1.0...@ffflorian/eslint-config@0.1.1) (2019-05-15)
300
-
301
- **Note:** Version bump only for package @ffflorian/eslint-config
302
-
303
-
304
-
305
-
306
-
307
- # [0.1.0](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.0.7...@ffflorian/eslint-config@0.1.0) (2019-05-01)
308
-
309
-
310
- ### Features
311
-
312
- * Move dependencies to peerDependencies ([c60357e](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/c60357e))
313
-
314
-
315
-
316
-
317
-
318
- ## [0.0.7](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.0.6...@ffflorian/eslint-config@0.0.7) (2019-04-26)
319
-
320
- **Note:** Version bump only for package @ffflorian/eslint-config
321
-
322
-
323
-
324
-
325
-
326
- ## [0.0.6](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.0.5...@ffflorian/eslint-config@0.0.6) (2019-04-15)
327
-
328
-
329
- ### Bug Fixes
330
-
331
- * **eslint-config:** No space before function parens ([69e6aaf](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/69e6aaf))
332
-
333
-
334
-
335
-
336
-
337
- ## [0.0.5](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.0.4...@ffflorian/eslint-config@0.0.5) (2019-04-15)
338
-
339
-
340
- ### Bug Fixes
341
-
342
- * **eslint-config:** Extend from prettier ([#3](https://github.com/ffflorian/config/tree/main/packages/eslint-config/issues/3)) ([a74a37a](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/a74a37a))
343
-
344
-
345
-
346
-
347
-
348
- ## [0.0.4](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.0.3...@ffflorian/eslint-config@0.0.4) (2019-04-15)
349
-
350
-
351
- ### Bug Fixes
352
-
353
- * **eslint-config:** Rename json file ([7806298](https://github.com/ffflorian/config/tree/main/packages/eslint-config/commit/7806298))
354
-
355
-
356
-
357
-
358
-
359
- ## [0.0.3](https://github.com/ffflorian/config/tree/main/packages/eslint-config/compare/@ffflorian/eslint-config@0.0.2...@ffflorian/eslint-config@0.0.3) (2019-04-15)
360
-
361
- **Note:** Version bump only for package @ffflorian/eslint-config
362
-
363
-
364
-
365
-
366
-
367
- ## 0.0.2 (2019-04-15)
368
-
369
- **Note:** Version bump only for package @ffflorian/eslint-config
package/index.json DELETED
@@ -1,119 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es6": true,
5
- "node": true
6
- },
7
- "extends": ["prettier", "plugin:no-unsanitized/recommended-legacy"],
8
- "overrides": [
9
- {
10
- "files": "*.ts",
11
- "parser": "@typescript-eslint/parser",
12
- "rules": {
13
- "@typescript-eslint/array-type": ["error", {"default": "array-simple"}],
14
- "@typescript-eslint/consistent-type-assertions": "error",
15
- "@typescript-eslint/no-floating-promises": "error",
16
- "@typescript-eslint/no-inferrable-types": ["error", {"ignoreParameters": true}],
17
- "@typescript-eslint/no-this-alias": "error",
18
- "@typescript-eslint/no-unused-vars": "error",
19
- "@typescript-eslint/prefer-readonly": "error",
20
- "@typescript-eslint/typedef": "error",
21
- "unused-imports/no-unused-imports": "error",
22
- "unused-imports/no-unused-vars": ["warn", {"vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_"}]
23
- }
24
- }
25
- ],
26
- "parser": "@babel/eslint-parser",
27
- "parserOptions": {
28
- "ecmaVersion": 11,
29
- "project": "tsconfig.json",
30
- "sourceType": "module"
31
- },
32
- "plugins": ["@typescript-eslint", "jsdoc", "no-unsanitized", "prettier", "sort-keys-fix", "typescript-sort-keys", "unused-imports"],
33
- "rules": {
34
- "constructor-super": "error",
35
- "curly": "error",
36
- "id-length": [
37
- "error",
38
- {
39
- "exceptions": ["_"]
40
- }
41
- ],
42
- "no-console": [
43
- "error",
44
- {
45
- "allow": ["error", "info", "warn"]
46
- }
47
- ],
48
- "no-const-assign": "error",
49
- "no-duplicate-case": "error",
50
- "no-else-return": "error",
51
- "no-inner-declarations": "error",
52
- "no-lonely-if": "error",
53
- "no-magic-numbers": [
54
- "error",
55
- {
56
- "ignore": [-1, 0, 1, 2]
57
- }
58
- ],
59
- "no-return-await": "error",
60
- "no-sequences": "error",
61
- "no-sparse-arrays": "error",
62
- "no-trailing-spaces": "error",
63
- "no-undef": "error",
64
- "no-unneeded-ternary": "error",
65
- "no-unused-expressions": "error",
66
- "no-useless-return": "error",
67
- "no-var": "error",
68
- "one-var": ["error", "never"],
69
- "prefer-arrow-callback": "error",
70
- "prefer-const": "error",
71
- "prefer-object-spread": "error",
72
- "prefer-promise-reject-errors": "error",
73
- "prefer-spread": "error",
74
- "prefer-template": "error",
75
- "prettier/prettier": "error",
76
- "quotes": [
77
- "error",
78
- "single",
79
- {
80
- "allowTemplateLiterals": true,
81
- "avoidEscape": true
82
- }
83
- ],
84
- "sort-keys-fix/sort-keys-fix": "error",
85
- "sort-vars": "error",
86
- "strict": ["error", "global"],
87
- "typescript-sort-keys/interface": [
88
- "warn",
89
- "asc",
90
- {
91
- "caseSensitive": false
92
- }
93
- ],
94
- "typescript-sort-keys/string-enum": [
95
- "warn",
96
- "asc",
97
- {
98
- "caseSensitive": false
99
- }
100
- ],
101
- "valid-jsdoc": [
102
- "error",
103
- {
104
- "prefer": {
105
- "class": "class",
106
- "return": "returns"
107
- },
108
- "preferType": {
109
- "Boolean": "boolean",
110
- "Number": "number",
111
- "String": "string",
112
- "object": "Object"
113
- },
114
- "requireParamDescription": true,
115
- "requireReturnDescription": true
116
- }
117
- ]
118
- }
119
- }