@origin-1/eslint-config 0.6.0 → 0.7.0
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/lib/rules.js +9 -4
- package/package.json +3 -3
package/lib/rules.js
CHANGED
|
@@ -205,7 +205,11 @@ exports.RULES = {
|
|
|
205
205
|
'sort-imports': ['error', { ignoreDeclarationSort: true }],
|
|
206
206
|
'sort-keys': 'off',
|
|
207
207
|
'sort-vars': 'off',
|
|
208
|
-
'spaced-comment': [
|
|
208
|
+
'spaced-comment': [
|
|
209
|
+
'error',
|
|
210
|
+
'always',
|
|
211
|
+
{ block: { exceptions: ['*'] }, line: { exceptions: ['/'], markers: ['/'] } },
|
|
212
|
+
],
|
|
209
213
|
'strict': jsts(['error', 'global'], 'off'),
|
|
210
214
|
'symbol-description': 'off',
|
|
211
215
|
'vars-on-top': 'off',
|
|
@@ -225,7 +229,7 @@ exports.RULES = {
|
|
|
225
229
|
'generator-star-spacing': ['error', 'both'],
|
|
226
230
|
'implicit-arrow-linebreak': 'off',
|
|
227
231
|
'jsx-quotes': 'error',
|
|
228
|
-
'key-spacing': ['error', { mode: 'minimum' }],
|
|
232
|
+
'key-spacing': ['error', { multiLine: { align: 'value', mode: 'minimum' } }],
|
|
229
233
|
'line-comment-position': 'off',
|
|
230
234
|
'linebreak-style': 'error',
|
|
231
235
|
'lines-around-comment': jsts(['error', { allowBlockStart: true, allowObjectStart: true }], 'off'),
|
|
@@ -350,6 +354,7 @@ exports.RULES = {
|
|
|
350
354
|
'no-unsafe-argument': 'error',
|
|
351
355
|
'no-unsafe-assignment': 'error',
|
|
352
356
|
'no-unsafe-call': 'off',
|
|
357
|
+
'no-unsafe-declaration-merging': 'error',
|
|
353
358
|
'no-unsafe-member-access': 'error',
|
|
354
359
|
'no-unsafe-return': 'error',
|
|
355
360
|
'no-var-requires': 'error',
|
|
@@ -371,7 +376,6 @@ exports.RULES = {
|
|
|
371
376
|
'consistent-type-definitions': ['error', 'interface'],
|
|
372
377
|
'consistent-type-exports': 'error',
|
|
373
378
|
'consistent-type-imports': beforeOrElse('3.8.0', ['error', { prefer: 'no-type-imports' }], 'error'),
|
|
374
|
-
'member-delimiter-style': ['error', { singleline: { requireLast: true } }],
|
|
375
379
|
'member-ordering': 'error',
|
|
376
380
|
'method-signature-style': 'off',
|
|
377
381
|
'naming-convention': 'off',
|
|
@@ -409,12 +413,13 @@ exports.RULES = {
|
|
|
409
413
|
'prefer-return-this-type': 'error',
|
|
410
414
|
'prefer-string-starts-ends-with': 'error',
|
|
411
415
|
'promise-function-async': ['error', { allowAny: true }],
|
|
412
|
-
'sort-type-
|
|
416
|
+
'sort-type-constituents': 'off',
|
|
413
417
|
'strict-boolean-expressions': 'off',
|
|
414
418
|
'switch-exhaustiveness-check': 'error',
|
|
415
419
|
'triple-slash-reference': ['error', { lib: 'never' }],
|
|
416
420
|
'typedef': 'error',
|
|
417
421
|
'unified-signatures': 'error',
|
|
422
|
+
'member-delimiter-style': ['error', { singleline: { requireLast: true } }],
|
|
418
423
|
'type-annotation-spacing': 'error',
|
|
419
424
|
},
|
|
420
425
|
'@origin-1/eslint-plugin': {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origin-1/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "ESLint configuration generator with Origin₁ presets",
|
|
5
5
|
"homepage": "https://github.com/origin-1/eslint-config#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@origin-1/eslint-plugin": "0.7",
|
|
15
|
-
"@typescript-eslint/eslint-plugin": "5",
|
|
16
|
-
"@typescript-eslint/parser": "5",
|
|
15
|
+
"@typescript-eslint/eslint-plugin": "^5.42",
|
|
16
|
+
"@typescript-eslint/parser": "^5.42",
|
|
17
17
|
"eslint": "^8.24.0",
|
|
18
18
|
"eslint-plugin-n": "15"
|
|
19
19
|
},
|