@niondigital/eslint-config-base 1.5.1 → 1.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/index.js +14 -3
- package/package.json +7 -3
- package/test.test.js +5 -0
package/index.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/* eslint-env node */
|
|
2
2
|
module.exports = {
|
|
3
|
-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'eslint-config-airbnb'],
|
|
4
3
|
parser: '@typescript-eslint/parser',
|
|
4
|
+
extends: [
|
|
5
|
+
'eslint:recommended',
|
|
6
|
+
'plugin:@typescript-eslint/recommended',
|
|
7
|
+
'eslint-config-airbnb',
|
|
8
|
+
'plugin:jest/recommended'
|
|
9
|
+
],
|
|
5
10
|
plugins: ['@typescript-eslint', 'eslint-plugin-unused-imports'],
|
|
6
11
|
rules: {
|
|
7
12
|
'comma-dangle': 'off',
|
|
@@ -103,9 +108,15 @@ module.exports = {
|
|
|
103
108
|
},
|
|
104
109
|
overrides: [
|
|
105
110
|
{
|
|
106
|
-
files: ['
|
|
111
|
+
files: ['**/*.test.{j,t}s?(x)'],
|
|
112
|
+
plugins: ['jest'],
|
|
107
113
|
env: {
|
|
108
|
-
jest: true
|
|
114
|
+
'jest/globals': true
|
|
115
|
+
},
|
|
116
|
+
rules: {
|
|
117
|
+
'jest/no-disabled-tests': 'warn',
|
|
118
|
+
'jest/no-identical-title': 'error',
|
|
119
|
+
'jest/valid-expect': 'error'
|
|
109
120
|
}
|
|
110
121
|
},
|
|
111
122
|
// .js files (including config files in the package root directory) are likely to not be included
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@niondigital/eslint-config-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "niondigital base eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -43,8 +43,10 @@
|
|
|
43
43
|
"eslint-find-rules": "^4.1.0",
|
|
44
44
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
45
45
|
"eslint-plugin-import": "^2.29.1",
|
|
46
|
+
"eslint-plugin-jest": "^28.8.0",
|
|
46
47
|
"eslint-plugin-unused-imports": "^4.1.3",
|
|
47
48
|
"in-publish": "^2.0.1",
|
|
49
|
+
"jest": "^29.7.0",
|
|
48
50
|
"safe-publish-latest": "^2.0.0",
|
|
49
51
|
"typescript": "^5.4.5",
|
|
50
52
|
"typescript-eslint": "^7.11.0"
|
|
@@ -55,10 +57,12 @@
|
|
|
55
57
|
"eslint-config-airbnb": "^19.0.4",
|
|
56
58
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
57
59
|
"eslint-plugin-import": "^2.29.1",
|
|
58
|
-
"eslint-plugin-
|
|
60
|
+
"eslint-plugin-jest": "^28.8.0",
|
|
61
|
+
"eslint-plugin-unused-imports": "^4.1.3",
|
|
62
|
+
"jest": "*"
|
|
59
63
|
},
|
|
60
64
|
"engines": {
|
|
61
65
|
"node": ">=18.0.0"
|
|
62
66
|
},
|
|
63
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "0bed73a3665fad079059bfd176f6e679ebd8f4a4"
|
|
64
68
|
}
|