@niondigital/eslint-config-base 1.7.1 → 1.8.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 +9 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -36,6 +36,10 @@ module.exports = {
|
|
|
36
36
|
'no-redeclare': 'off',
|
|
37
37
|
'@typescript-eslint/no-redeclare': 'error',
|
|
38
38
|
|
|
39
|
+
// shadowing
|
|
40
|
+
'no-shadow': 'off', // replaced by ts-eslint rule below
|
|
41
|
+
'@typescript-eslint/no-shadow': 'error',
|
|
42
|
+
|
|
39
43
|
// naming conventions
|
|
40
44
|
camelcase: 'off',
|
|
41
45
|
'no-underscore-dangle': 'off',
|
|
@@ -106,7 +110,11 @@ module.exports = {
|
|
|
106
110
|
|
|
107
111
|
// use of semicolons
|
|
108
112
|
semi: 'off',
|
|
109
|
-
'@typescript-eslint/semi': ['error']
|
|
113
|
+
'@typescript-eslint/semi': ['error'],
|
|
114
|
+
|
|
115
|
+
// this usage in classes
|
|
116
|
+
'class-methods-use-this': 'off',
|
|
117
|
+
'@typescript-eslint/class-methods-use-this': 'error'
|
|
110
118
|
},
|
|
111
119
|
overrides: [
|
|
112
120
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@niondigital/eslint-config-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "niondigital base eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=18.0.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "1d36af03148509e90ba8d7acaa1a923cc7c05200"
|
|
68
68
|
}
|