@origin-1/eslint-config 0.5.2 → 0.6.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.
- package/lib/rules.js +6 -1
- package/package.json +2 -2
package/lib/rules.js
CHANGED
|
@@ -102,6 +102,7 @@ exports.RULES = {
|
|
|
102
102
|
'id-denylist': 'off',
|
|
103
103
|
'id-length': 'off',
|
|
104
104
|
'id-match': 'off',
|
|
105
|
+
'logical-assignment-operators': beforeJSOrElse(2021, 'off', ['error', 'always', { enforceForIfStatements: true }]),
|
|
105
106
|
'max-classes-per-file': 'off',
|
|
106
107
|
'max-depth': 'off',
|
|
107
108
|
'max-lines': 'off',
|
|
@@ -204,7 +205,11 @@ exports.RULES = {
|
|
|
204
205
|
'sort-imports': ['error', { ignoreDeclarationSort: true }],
|
|
205
206
|
'sort-keys': 'off',
|
|
206
207
|
'sort-vars': 'off',
|
|
207
|
-
'spaced-comment': [
|
|
208
|
+
'spaced-comment': [
|
|
209
|
+
'error',
|
|
210
|
+
'always',
|
|
211
|
+
{ block: { exceptions: ['*'] }, line: { exceptions: ['/'], markers: ['/'] } },
|
|
212
|
+
],
|
|
208
213
|
'strict': jsts(['error', 'global'], 'off'),
|
|
209
214
|
'symbol-description': 'off',
|
|
210
215
|
'vars-on-top': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origin-1/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "ESLint configuration generator with Origin₁ presets",
|
|
5
5
|
"homepage": "https://github.com/origin-1/eslint-config#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@origin-1/eslint-plugin": "0.7",
|
|
15
15
|
"@typescript-eslint/eslint-plugin": "5",
|
|
16
16
|
"@typescript-eslint/parser": "5",
|
|
17
|
-
"eslint": "^8.
|
|
17
|
+
"eslint": "^8.24.0",
|
|
18
18
|
"eslint-plugin-n": "15"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|