eslint-config-uphold 6.4.1 → 6.5.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 +14 -14
- package/src/index.js +22 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-uphold",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "Uphold-flavored ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -31,32 +31,32 @@
|
|
|
31
31
|
"test": "node --test 'test/index.test.js'"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@babel/core": "^7.
|
|
35
|
-
"@babel/eslint-parser": "^7.
|
|
36
|
-
"@eslint/js": "^9.
|
|
37
|
-
"@stylistic/eslint-plugin
|
|
38
|
-
"eslint-config-prettier": "^10.1.
|
|
39
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
40
|
-
"eslint-plugin-mocha": "^
|
|
41
|
-
"eslint-plugin-n": "^17.
|
|
42
|
-
"eslint-plugin-prettier": "^5.
|
|
34
|
+
"@babel/core": "^7.27.1",
|
|
35
|
+
"@babel/eslint-parser": "^7.27.1",
|
|
36
|
+
"@eslint/js": "^9.26.0",
|
|
37
|
+
"@stylistic/eslint-plugin": "^4.2.0",
|
|
38
|
+
"eslint-config-prettier": "^10.1.5",
|
|
39
|
+
"eslint-plugin-jsdoc": "^50.6.14",
|
|
40
|
+
"eslint-plugin-mocha": "^11.0.0",
|
|
41
|
+
"eslint-plugin-n": "^17.18.0",
|
|
42
|
+
"eslint-plugin-prettier": "^5.4.0",
|
|
43
43
|
"eslint-plugin-promise": "^7.2.1",
|
|
44
44
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
45
45
|
"eslint-plugin-sort-imports-requires": "^2.0.0",
|
|
46
46
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
47
47
|
"eslint-plugin-sql-template": "^3.1.0",
|
|
48
|
-
"globals": "^16.
|
|
48
|
+
"globals": "^16.1.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@fastify/pre-commit": "^2.2.0",
|
|
52
52
|
"@types/eslint": "^9.6.1",
|
|
53
53
|
"@uphold/github-changelog-generator": "^4.0.2",
|
|
54
|
-
"eslint": "^9.
|
|
54
|
+
"eslint": "^9.26.0",
|
|
55
55
|
"prettier": "^3.5.3",
|
|
56
|
-
"release-it": "^
|
|
56
|
+
"release-it": "^19.0.2"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"eslint": "~9.
|
|
59
|
+
"eslint": "~9.26.0",
|
|
60
60
|
"prettier": ">=3.0.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
package/src/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import sortDestructureKeys from 'eslint-plugin-sort-destructure-keys';
|
|
|
18
18
|
import sortImportsRequires from 'eslint-plugin-sort-imports-requires';
|
|
19
19
|
import sortKeysFix from 'eslint-plugin-sort-keys-fix';
|
|
20
20
|
import sqlTemplate from 'eslint-plugin-sql-template';
|
|
21
|
-
import stylistic from '@stylistic/eslint-plugin
|
|
21
|
+
import stylistic from '@stylistic/eslint-plugin';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Language options.
|
|
@@ -57,6 +57,7 @@ const upholdBaseConfig = defineConfig([
|
|
|
57
57
|
languageOptions,
|
|
58
58
|
name: 'uphold/base',
|
|
59
59
|
plugins: {
|
|
60
|
+
'@stylistic': stylistic,
|
|
60
61
|
jsdoc,
|
|
61
62
|
mocha,
|
|
62
63
|
'node-plugin': nodePlugin,
|
|
@@ -65,10 +66,29 @@ const upholdBaseConfig = defineConfig([
|
|
|
65
66
|
'sort-imports-requires': sortImportsRequires,
|
|
66
67
|
'sort-keys-fix': sortKeysFix,
|
|
67
68
|
'sql-template': sqlTemplate,
|
|
68
|
-
stylistic,
|
|
69
69
|
'uphold-plugin': { rules }
|
|
70
70
|
},
|
|
71
71
|
rules: {
|
|
72
|
+
'@stylistic/no-tabs': ['error', { allowIndentationTabs: true }],
|
|
73
|
+
'@stylistic/padding-line-between-statements': [
|
|
74
|
+
'error',
|
|
75
|
+
{
|
|
76
|
+
blankLine: 'always',
|
|
77
|
+
next: 'return',
|
|
78
|
+
prev: '*'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
blankLine: 'always',
|
|
82
|
+
next: '*',
|
|
83
|
+
prev: ['const', 'let', 'var']
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
blankLine: 'any',
|
|
87
|
+
next: ['const', 'let', 'var'],
|
|
88
|
+
prev: ['const', 'let', 'var']
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
'@stylistic/spaced-comment': 'error',
|
|
72
92
|
'accessor-pairs': 'error',
|
|
73
93
|
'array-callback-return': 'error',
|
|
74
94
|
'block-scoped-var': 'error',
|
|
@@ -203,26 +223,6 @@ const upholdBaseConfig = defineConfig([
|
|
|
203
223
|
],
|
|
204
224
|
'sort-keys-fix/sort-keys-fix': ['error', 'asc', { natural: true }],
|
|
205
225
|
'sql-template/no-unsafe-query': 'error',
|
|
206
|
-
'stylistic/no-tabs': ['error', { allowIndentationTabs: true }],
|
|
207
|
-
'stylistic/padding-line-between-statements': [
|
|
208
|
-
'error',
|
|
209
|
-
{
|
|
210
|
-
blankLine: 'always',
|
|
211
|
-
next: 'return',
|
|
212
|
-
prev: '*'
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
blankLine: 'always',
|
|
216
|
-
next: '*',
|
|
217
|
-
prev: ['const', 'let', 'var']
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
blankLine: 'any',
|
|
221
|
-
next: ['const', 'let', 'var'],
|
|
222
|
-
prev: ['const', 'let', 'var']
|
|
223
|
-
}
|
|
224
|
-
],
|
|
225
|
-
'stylistic/spaced-comment': 'error',
|
|
226
226
|
'uphold-plugin/explicit-sinon-use-fake-timers': 'error',
|
|
227
227
|
'vars-on-top': 'error',
|
|
228
228
|
yoda: 'error'
|