@origin-1/eslint-config 1.1.2 → 1.2.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 -16
- package/package.json +5 -5
package/lib/rules.js
CHANGED
|
@@ -66,7 +66,8 @@ exports.RULES = {
|
|
|
66
66
|
'no-inner-declarations': beforeJSOrElse(2015, ['error'], 'off'),
|
|
67
67
|
'no-invalid-regexp': ['error'],
|
|
68
68
|
'no-irregular-whitespace': ['error'],
|
|
69
|
-
'no-
|
|
69
|
+
'no-loss-of-precision': ['error'],
|
|
70
|
+
'no-misleading-character-class': ['error', { allowEscape: true }],
|
|
70
71
|
'no-new-native-nonconstructor': ['error'],
|
|
71
72
|
'no-obj-calls': ['error'],
|
|
72
73
|
'no-promise-executor-return': ['error'],
|
|
@@ -117,7 +118,6 @@ exports.RULES = {
|
|
|
117
118
|
'max-lines-per-function': 'off',
|
|
118
119
|
'max-nested-callbacks': 'off',
|
|
119
120
|
'max-statements': 'off',
|
|
120
|
-
'multiline-comment-style': 'off',
|
|
121
121
|
'new-cap': ['error', { capIsNew: false }],
|
|
122
122
|
'no-alert': ['error'],
|
|
123
123
|
'no-bitwise': 'off',
|
|
@@ -134,7 +134,7 @@ exports.RULES = {
|
|
|
134
134
|
'no-eval': 'off',
|
|
135
135
|
'no-extend-native': ['error'],
|
|
136
136
|
'no-extra-bind': ['error'],
|
|
137
|
-
'no-extra-boolean-cast': ['error'],
|
|
137
|
+
'no-extra-boolean-cast': ['error', { enforceForInnerExpressions: true }],
|
|
138
138
|
'no-extra-label': ['error'],
|
|
139
139
|
'no-global-assign': ['error'],
|
|
140
140
|
'no-implicit-coercion': 'off',
|
|
@@ -210,13 +210,11 @@ exports.RULES = {
|
|
|
210
210
|
'symbol-description': 'off',
|
|
211
211
|
'vars-on-top': 'off',
|
|
212
212
|
'yoda': ['error'],
|
|
213
|
-
'line-comment-position': 'off',
|
|
214
213
|
'unicode-bom': ['error'],
|
|
215
214
|
},
|
|
216
215
|
[exports.HYBRID]: {
|
|
217
216
|
'no-dupe-class-members': jsts(['error'], 'off'),
|
|
218
|
-
'no-
|
|
219
|
-
'no-unused-vars': beforeJSOrElse(2019, ['error', { ignoreRestSiblings: true, vars: 'local' }], ['error', { caughtErrors: 'all', ignoreRestSiblings: true, vars: 'local' }]),
|
|
217
|
+
'no-unused-vars': beforeJSOrElse(2018, ['error', { vars: 'local' }], 2019, ['error', { ignoreRestSiblings: true, vars: 'local' }], ['error', { caughtErrors: 'all', ignoreRestSiblings: true, vars: 'local' }]),
|
|
220
218
|
'no-use-before-define': 'off',
|
|
221
219
|
'class-methods-use-this': 'off',
|
|
222
220
|
'consistent-return': 'off',
|
|
@@ -296,7 +294,7 @@ exports.RULES = {
|
|
|
296
294
|
'no-base-to-string': ['error'],
|
|
297
295
|
'no-duplicate-type-constituents': ['error'],
|
|
298
296
|
'no-dynamic-delete': 'off',
|
|
299
|
-
'no-empty-
|
|
297
|
+
'no-empty-object-type': ['error'],
|
|
300
298
|
'no-explicit-any': 'off',
|
|
301
299
|
'no-extraneous-class': ['error', { allowConstructorOnly: true }],
|
|
302
300
|
'no-inferrable-types': ['error'],
|
|
@@ -360,6 +358,7 @@ exports.RULES = {
|
|
|
360
358
|
},
|
|
361
359
|
'@stylistic/eslint-plugin': {
|
|
362
360
|
'jsx-pascal-case': 'off',
|
|
361
|
+
'multiline-comment-style': 'off',
|
|
363
362
|
'array-bracket-newline': 'off',
|
|
364
363
|
'array-bracket-spacing': ['error'],
|
|
365
364
|
'array-element-newline': 'off',
|
|
@@ -367,15 +366,7 @@ exports.RULES = {
|
|
|
367
366
|
'arrow-spacing': ['error'],
|
|
368
367
|
'block-spacing': ['error'],
|
|
369
368
|
'brace-style': 'off',
|
|
370
|
-
'comma-dangle':
|
|
371
|
-
'error',
|
|
372
|
-
{
|
|
373
|
-
arrays: 'always-multiline',
|
|
374
|
-
objects: 'always-multiline',
|
|
375
|
-
imports: 'always-multiline',
|
|
376
|
-
exports: 'always-multiline',
|
|
377
|
-
},
|
|
378
|
-
], ['error', 'always-multiline']),
|
|
369
|
+
'comma-dangle': ['error', 'always-multiline'],
|
|
379
370
|
'comma-spacing': ['error'],
|
|
380
371
|
'comma-style': ['error', 'last', { exceptions: { ArrayExpression: true } }],
|
|
381
372
|
'computed-property-spacing': ['error'],
|
|
@@ -397,6 +388,7 @@ exports.RULES = {
|
|
|
397
388
|
'jsx-curly-spacing': 'off',
|
|
398
389
|
'jsx-equals-spacing': ['error'],
|
|
399
390
|
'jsx-first-prop-new-line': 'off',
|
|
391
|
+
'jsx-function-call-newline': 'off',
|
|
400
392
|
'jsx-indent': 'off',
|
|
401
393
|
'jsx-indent-props': 'off',
|
|
402
394
|
'jsx-max-props-per-line': 'off',
|
|
@@ -410,6 +402,7 @@ exports.RULES = {
|
|
|
410
402
|
'jsx-wrap-multilines': 'off',
|
|
411
403
|
'key-spacing': 'off',
|
|
412
404
|
'keyword-spacing': ['error'],
|
|
405
|
+
'line-comment-position': 'off',
|
|
413
406
|
'linebreak-style': ['error'],
|
|
414
407
|
'lines-around-comment': jsts([
|
|
415
408
|
'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origin-1/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@eslint-community/eslint-plugin-eslint-comments": ">=4.1",
|
|
18
18
|
"@origin-1/eslint-plugin": ">=0.14",
|
|
19
|
-
"@stylistic/eslint-plugin": "^1
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
21
|
-
"@typescript-eslint/parser": "^
|
|
22
|
-
"eslint": "^9.
|
|
19
|
+
"@stylistic/eslint-plugin": "^2.1",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0-alpha",
|
|
21
|
+
"@typescript-eslint/parser": "^8.0.0-alpha",
|
|
22
|
+
"eslint": "^9.3",
|
|
23
23
|
"eslint-plugin-n": "17"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|