eslint-config-uphold 2.1.0 → 3.0.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/package.json +3 -3
- package/src/index.js +14 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-uphold",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Uphold-flavored ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"eslint-plugin-mocha": "^5.3.0",
|
|
36
36
|
"eslint-plugin-prettier": "^3.3.1",
|
|
37
37
|
"eslint-plugin-rulesdir": "^0.1.0",
|
|
38
|
-
"eslint-plugin-sort-imports-
|
|
38
|
+
"eslint-plugin-sort-imports-requires": "^1.0.2",
|
|
39
39
|
"eslint-plugin-sql-template": "^2.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"lint"
|
|
55
55
|
],
|
|
56
56
|
"engines": {
|
|
57
|
-
"node": ">=
|
|
57
|
+
"node": ">=14"
|
|
58
58
|
},
|
|
59
59
|
"options": {
|
|
60
60
|
"mocha": "-t 10000 --require should test"
|
package/src/index.js
CHANGED
|
@@ -27,10 +27,11 @@ module.exports = {
|
|
|
27
27
|
parserOptions: {
|
|
28
28
|
requireConfigFile: false
|
|
29
29
|
},
|
|
30
|
-
plugins: ['mocha', 'rulesdir', 'sort-imports-
|
|
30
|
+
plugins: ['mocha', 'rulesdir', 'sort-imports-requires', 'sql-template'],
|
|
31
31
|
root: true,
|
|
32
32
|
rules: {
|
|
33
33
|
'accessor-pairs': 'error',
|
|
34
|
+
'array-callback-return': 'error',
|
|
34
35
|
'block-scoped-var': 'error',
|
|
35
36
|
'consistent-this': ['error', 'self'],
|
|
36
37
|
curly: 'error',
|
|
@@ -65,6 +66,7 @@ module.exports = {
|
|
|
65
66
|
'no-extra-bind': 'error',
|
|
66
67
|
'no-implied-eval': 'error',
|
|
67
68
|
'no-inline-comments': 'error',
|
|
69
|
+
'no-irregular-whitespace': ['error', { skipComments: false, skipStrings: false, skipTemplates: false }],
|
|
68
70
|
'no-iterator': 'error',
|
|
69
71
|
'no-labels': 'error',
|
|
70
72
|
'no-lone-blocks': 'error',
|
|
@@ -126,12 +128,19 @@ module.exports = {
|
|
|
126
128
|
'require-atomic-updates': 'off',
|
|
127
129
|
'require-await': 'error',
|
|
128
130
|
'rulesdir/explicit-sinon-use-fake-timers': 'error',
|
|
129
|
-
'sort-imports-
|
|
131
|
+
'sort-imports-requires/sort-imports': [
|
|
130
132
|
'error',
|
|
131
133
|
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
unsafeAutofix: true,
|
|
135
|
+
useOldSingleMemberSyntax: true
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
'sort-imports-requires/sort-requires': [
|
|
139
|
+
'error',
|
|
140
|
+
{
|
|
141
|
+
unsafeAutofix: true,
|
|
142
|
+
useAliases: false,
|
|
143
|
+
useOldSingleMemberSyntax: true
|
|
135
144
|
}
|
|
136
145
|
],
|
|
137
146
|
'sort-keys': ['error', 'asc', { natural: true }],
|