@innovixx/eslint-config 1.1.0 → 1.2.2
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.
|
@@ -108,11 +108,16 @@ module.exports = {
|
|
|
108
108
|
|
|
109
109
|
// Ensure consistent use of file extension within the import path
|
|
110
110
|
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
|
|
111
|
-
'import/extensions': [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
'import/extensions': [
|
|
112
|
+
'error',
|
|
113
|
+
'ignorePackages',
|
|
114
|
+
{
|
|
115
|
+
js: 'never',
|
|
116
|
+
jsx: 'never',
|
|
117
|
+
ts: 'never',
|
|
118
|
+
tsx: 'never',
|
|
119
|
+
},
|
|
120
|
+
],
|
|
116
121
|
|
|
117
122
|
// ensure absolute imports are above relative imports and that unassigned imports are ignored
|
|
118
123
|
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
|
|
@@ -125,7 +130,7 @@ module.exports = {
|
|
|
125
130
|
|
|
126
131
|
// Require modules with a single export to use a default export
|
|
127
132
|
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
|
|
128
|
-
'import/prefer-default-export': '
|
|
133
|
+
'import/prefer-default-export': 'off',
|
|
129
134
|
|
|
130
135
|
// Restrict which files can be imported in a given folder
|
|
131
136
|
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
|
|
@@ -362,12 +362,7 @@ module.exports = {
|
|
|
362
362
|
|
|
363
363
|
// disallow dangling underscores in identifiers
|
|
364
364
|
// https://eslint.org/docs/rules/no-underscore-dangle
|
|
365
|
-
'no-underscore-dangle':
|
|
366
|
-
allow: [],
|
|
367
|
-
allowAfterThis: false,
|
|
368
|
-
allowAfterSuper: false,
|
|
369
|
-
enforceInMethodNames: true,
|
|
370
|
-
}],
|
|
365
|
+
'no-underscore-dangle': 'off',
|
|
371
366
|
|
|
372
367
|
// disallow the use of Boolean literals in conditional expressions
|
|
373
368
|
// also, prefer `a || b` over `a ? a : b`
|
|
@@ -36,7 +36,7 @@ module.exports = {
|
|
|
36
36
|
'no-undefined': 'off',
|
|
37
37
|
|
|
38
38
|
// disallow declaration of variables that are not used in the code
|
|
39
|
-
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }],
|
|
39
|
+
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true, argsIgnorePattern: '^_' }],
|
|
40
40
|
|
|
41
41
|
// disallow use of variables before they are defined
|
|
42
42
|
'no-use-before-define': ['error', { functions: true, classes: true, variables: true }],
|
package/configs/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovixx/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"main": "configs/index.js",
|
|
5
5
|
"repository": "git@github.com:Innovixx-Development/eslint-config.git",
|
|
6
6
|
"description": "Opinionated ESLint config for JavaScript developers",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"demo": "eslint demo/"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
21
22
|
"eslint": ">= 7.0.0",
|
|
22
23
|
"eslint-plugin-import": "^2.20.0",
|
|
23
24
|
"eslint-plugin-jest": "^24.0.0",
|
|
@@ -28,6 +29,9 @@
|
|
|
28
29
|
"eslint-plugin-react-hooks": "^4.0.0"
|
|
29
30
|
},
|
|
30
31
|
"peerDependenciesMeta": {
|
|
32
|
+
"@typescript-eslint/eslint-plugin": {
|
|
33
|
+
"optional": true
|
|
34
|
+
},
|
|
31
35
|
"eslint-plugin-jest": {
|
|
32
36
|
"optional": true
|
|
33
37
|
},
|
|
@@ -50,6 +54,7 @@
|
|
|
50
54
|
"object.entries": "^1.1.1"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
53
58
|
"eslint": "^7.16.0",
|
|
54
59
|
"eslint-plugin-import": "^2.20.0",
|
|
55
60
|
"eslint-plugin-jest": "^24.1.3",
|