@origin-1/eslint-config 1.13.1 → 1.15.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 +4 -2
- package/package.json +9 -9
package/lib/rules.js
CHANGED
|
@@ -201,7 +201,7 @@ exports.RULES = {
|
|
|
201
201
|
'no-void': 'off',
|
|
202
202
|
'no-warning-comments': 'off',
|
|
203
203
|
'no-with': 'error',
|
|
204
|
-
'object-shorthand': beforeJSOrElse(2015, 'off', 'error'),
|
|
204
|
+
'object-shorthand': beforeJSOrElse(2015, 'off', ['error', 'methods']),
|
|
205
205
|
'one-var': ['error', 'never'],
|
|
206
206
|
'operator-assignment': 'error',
|
|
207
207
|
'prefer-arrow-callback': beforeJSOrElse(2015, 'off', 'error'),
|
|
@@ -356,6 +356,7 @@ exports.RULES = {
|
|
|
356
356
|
},
|
|
357
357
|
'@origin-1/eslint-plugin': {
|
|
358
358
|
'no-extra-new': 'error',
|
|
359
|
+
'property-shorthand': beforeJSOrElse(2015, 'off', 'error'),
|
|
359
360
|
'bracket-layout': 'error',
|
|
360
361
|
'indent': 'error',
|
|
361
362
|
'nice-space-before-function-paren': 'error',
|
|
@@ -366,7 +367,6 @@ exports.RULES = {
|
|
|
366
367
|
},
|
|
367
368
|
'@eslint-community/eslint-plugin-eslint-comments': {
|
|
368
369
|
'no-duplicate-disable': 'error',
|
|
369
|
-
'no-unused-disable': 'error',
|
|
370
370
|
'no-unused-enable': 'error',
|
|
371
371
|
'disable-enable-pair': 'error',
|
|
372
372
|
'no-aggregating-enable': 'error',
|
|
@@ -537,9 +537,11 @@ exports.RULES = {
|
|
|
537
537
|
'no-sync': 'off',
|
|
538
538
|
'prefer-global/buffer': 'error',
|
|
539
539
|
'prefer-global/console': 'error',
|
|
540
|
+
'prefer-global/crypto': 'error',
|
|
540
541
|
'prefer-global/process': 'error',
|
|
541
542
|
'prefer-global/text-decoder': 'error',
|
|
542
543
|
'prefer-global/text-encoder': 'error',
|
|
544
|
+
'prefer-global/timers': 'error',
|
|
543
545
|
'prefer-global/url': 'error',
|
|
544
546
|
'prefer-global/url-search-params': 'error',
|
|
545
547
|
'prefer-node-protocol': jsts(beforeOrElse(2021, 'off', 'error'), beforeOrElse('3.9.0', 'off', 'error')),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origin-1/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.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",
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"url": "git+https://github.com/origin-1/eslint-config.git"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"semver": "^7.7.
|
|
13
|
+
"semver": "^7.7.4"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@eslint-community/eslint-plugin-eslint-comments": "
|
|
17
|
-
"@eslint/json": "
|
|
18
|
-
"@origin-1/eslint-plugin": ">=0.
|
|
16
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.3",
|
|
17
|
+
"@eslint/json": "^1.0",
|
|
18
|
+
"@origin-1/eslint-plugin": ">=0.18",
|
|
19
19
|
"@stylistic/eslint-plugin": "^5.5",
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
21
|
-
"@typescript-eslint/parser": "^8.
|
|
22
|
-
"eslint": "^
|
|
23
|
-
"eslint-plugin-n": "^17.
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^8.56",
|
|
21
|
+
"@typescript-eslint/parser": "^8.56",
|
|
22
|
+
"eslint": "^10.0",
|
|
23
|
+
"eslint-plugin-n": "^17.24"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=20.9"
|