eslint-config-gristow 2.0.16 → 2.0.18
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/.eslintrc.cjs +7 -4
- package/package.json +2 -2
- package/rules/shared-rules.cjs +1 -1
package/.eslintrc.cjs
CHANGED
|
@@ -16,6 +16,7 @@ module.exports = {
|
|
|
16
16
|
parserOptions: {
|
|
17
17
|
sourceType: 'module',
|
|
18
18
|
ecmaVersion: 2020,
|
|
19
|
+
project: './tsconfig.json',
|
|
19
20
|
},
|
|
20
21
|
settings: {
|
|
21
22
|
'import/parsers': {
|
|
@@ -34,8 +35,10 @@ module.exports = {
|
|
|
34
35
|
es2017: true,
|
|
35
36
|
node: true,
|
|
36
37
|
},
|
|
37
|
-
overrides:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
overrides: [
|
|
39
|
+
{
|
|
40
|
+
files: ['*.ts'],
|
|
41
|
+
rules: typescriptOnlyRules,
|
|
42
|
+
},
|
|
43
|
+
],
|
|
41
44
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-gristow",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.18",
|
|
4
4
|
"description": "Eslint settings for Greg Ristow",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
34
34
|
"@typescript-eslint/parser": "^5.59.5",
|
|
35
|
-
"eslint": "
|
|
35
|
+
"eslint": ">=8.40.0",
|
|
36
36
|
"eslint-config-airbnb": "^18.2.1",
|
|
37
37
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
38
38
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
package/rules/shared-rules.cjs
CHANGED
|
@@ -84,7 +84,7 @@ module.exports = {
|
|
|
84
84
|
'@typescript-eslint/no-redeclare': 'error',
|
|
85
85
|
// Enabled by airbnb -- but we use literal throws extensively, and intentionally, in /backend
|
|
86
86
|
// so we override this there.
|
|
87
|
-
'no-throw-literal': '
|
|
87
|
+
'no-throw-literal': 'error',
|
|
88
88
|
'@typescript-eslint/no-throw-literal': 'off',
|
|
89
89
|
'no-useless-constructor': 'off',
|
|
90
90
|
'@typescript-eslint/no-useless-constructor': 'error',
|