@niondigital/eslint-config-base 1.5.1 → 1.6.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/index.js +15 -2
- package/package.json +4 -2
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'eslint-config-airbnb'],
|
|
5
5
|
plugins: ['@typescript-eslint', 'eslint-plugin-unused-imports'],
|
|
6
6
|
rules: {
|
|
7
7
|
'comma-dangle': 'off',
|
|
@@ -103,9 +103,22 @@ module.exports = {
|
|
|
103
103
|
},
|
|
104
104
|
overrides: [
|
|
105
105
|
{
|
|
106
|
-
files: ['
|
|
106
|
+
files: ['**/*.test.{j,t}s?(x)'],
|
|
107
|
+
extends: [
|
|
108
|
+
'eslint:recommended',
|
|
109
|
+
'plugin:@typescript-eslint/recommended',
|
|
110
|
+
'eslint-config-airbnb',
|
|
111
|
+
'plugin:jest/recommended'
|
|
112
|
+
],
|
|
113
|
+
plugins: ['@typescript-eslint', 'eslint-plugin-unused-imports', 'jest'],
|
|
107
114
|
env: {
|
|
115
|
+
'jest/globals': true,
|
|
108
116
|
jest: true
|
|
117
|
+
},
|
|
118
|
+
rules: {
|
|
119
|
+
'jest/no-disabled-tests': 'warn',
|
|
120
|
+
'jest/no-identical-title': 'error',
|
|
121
|
+
'jest/valid-expect': 'error'
|
|
109
122
|
}
|
|
110
123
|
},
|
|
111
124
|
// .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.0",
|
|
4
4
|
"description": "niondigital base eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -43,6 +43,7 @@
|
|
|
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",
|
|
48
49
|
"safe-publish-latest": "^2.0.0",
|
|
@@ -55,10 +56,11 @@
|
|
|
55
56
|
"eslint-config-airbnb": "^19.0.4",
|
|
56
57
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
57
58
|
"eslint-plugin-import": "^2.29.1",
|
|
59
|
+
"eslint-plugin-jest": "^28.8.0",
|
|
58
60
|
"eslint-plugin-unused-imports": "^4.1.3"
|
|
59
61
|
},
|
|
60
62
|
"engines": {
|
|
61
63
|
"node": ">=18.0.0"
|
|
62
64
|
},
|
|
63
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "eae84527664a7010b9f227a0a4be145c10af7821"
|
|
64
66
|
}
|