@egy186/eslint-config 0.105.4 → 0.106.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/dist/index.d.ts +3 -3
- package/dist/rules/import-rules.d.ts +3 -3
- package/dist/rules/import-rules.js +3 -2
- package/dist/typescript.d.ts +4 -0
- package/dist/typescript.js +7 -1
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -247,10 +247,10 @@ declare const config: {
|
|
|
247
247
|
'import/dynamic-import-chunkname': "error";
|
|
248
248
|
'import/export': "error";
|
|
249
249
|
'import/exports-last': "error";
|
|
250
|
-
'import/extensions': ["error", {
|
|
251
|
-
|
|
252
|
-
js: string;
|
|
250
|
+
'import/extensions': ["error", string, {
|
|
251
|
+
cts: string;
|
|
253
252
|
jsx: string;
|
|
253
|
+
mts: string;
|
|
254
254
|
ts: string;
|
|
255
255
|
tsx: string;
|
|
256
256
|
}];
|
|
@@ -4,10 +4,10 @@ declare const rules: {
|
|
|
4
4
|
'import/dynamic-import-chunkname': "error";
|
|
5
5
|
'import/export': "error";
|
|
6
6
|
'import/exports-last': "error";
|
|
7
|
-
'import/extensions': ["error", {
|
|
8
|
-
|
|
9
|
-
js: string;
|
|
7
|
+
'import/extensions': ["error", string, {
|
|
8
|
+
cts: string;
|
|
10
9
|
jsx: string;
|
|
10
|
+
mts: string;
|
|
11
11
|
ts: string;
|
|
12
12
|
tsx: string;
|
|
13
13
|
}];
|
package/dist/typescript.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const config: {
|
|
2
2
|
parser: string;
|
|
3
3
|
parserOptions: {
|
|
4
|
+
project: boolean;
|
|
4
5
|
sourceType: "module";
|
|
5
6
|
};
|
|
6
7
|
plugins: string[];
|
|
@@ -55,6 +56,7 @@ declare const config: {
|
|
|
55
56
|
selector: string;
|
|
56
57
|
}];
|
|
57
58
|
'@typescript-eslint/no-array-constructor': "error";
|
|
59
|
+
'@typescript-eslint/no-array-delete': "error";
|
|
58
60
|
'@typescript-eslint/no-base-to-string': "error";
|
|
59
61
|
'@typescript-eslint/no-confusing-non-null-assertion': "error";
|
|
60
62
|
'@typescript-eslint/no-confusing-void-expression': ["error", {
|
|
@@ -131,6 +133,7 @@ declare const config: {
|
|
|
131
133
|
'@typescript-eslint/prefer-namespace-keyword': "error";
|
|
132
134
|
'@typescript-eslint/prefer-nullish-coalescing': "error";
|
|
133
135
|
'@typescript-eslint/prefer-optional-chain': "error";
|
|
136
|
+
'@typescript-eslint/prefer-promise-reject-errors': "error";
|
|
134
137
|
'@typescript-eslint/prefer-readonly': "error";
|
|
135
138
|
'@typescript-eslint/prefer-readonly-parameter-types': "error";
|
|
136
139
|
'@typescript-eslint/prefer-reduce-type-parameter': "error";
|
|
@@ -166,6 +169,7 @@ declare const config: {
|
|
|
166
169
|
'no-unused-expressions': "off";
|
|
167
170
|
'no-use-before-define': "off";
|
|
168
171
|
'prefer-destructuring': "off";
|
|
172
|
+
'prefer-promise-reject-errors': "off";
|
|
169
173
|
'require-await': "off";
|
|
170
174
|
};
|
|
171
175
|
settings: {
|
package/dist/typescript.js
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const config = {
|
|
4
4
|
parser: '@typescript-eslint/parser',
|
|
5
|
-
parserOptions: {
|
|
5
|
+
parserOptions: {
|
|
6
|
+
project: true,
|
|
7
|
+
sourceType: 'module'
|
|
8
|
+
},
|
|
6
9
|
plugins: ['@typescript-eslint'],
|
|
7
10
|
rules: {
|
|
8
11
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
@@ -64,6 +67,7 @@ const config = {
|
|
|
64
67
|
}
|
|
65
68
|
],
|
|
66
69
|
'@typescript-eslint/no-array-constructor': 'error',
|
|
70
|
+
'@typescript-eslint/no-array-delete': 'error',
|
|
67
71
|
'@typescript-eslint/no-base-to-string': 'error',
|
|
68
72
|
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
|
69
73
|
'@typescript-eslint/no-confusing-void-expression': ['error', { ignoreVoidOperator: true }],
|
|
@@ -134,6 +138,7 @@ const config = {
|
|
|
134
138
|
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
135
139
|
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
136
140
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
141
|
+
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
|
137
142
|
'@typescript-eslint/prefer-readonly': 'error',
|
|
138
143
|
'@typescript-eslint/prefer-readonly-parameter-types': 'error',
|
|
139
144
|
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
|
@@ -169,6 +174,7 @@ const config = {
|
|
|
169
174
|
'no-unused-expressions': 'off',
|
|
170
175
|
'no-use-before-define': 'off',
|
|
171
176
|
'prefer-destructuring': 'off',
|
|
177
|
+
'prefer-promise-reject-errors': 'off',
|
|
172
178
|
'require-await': 'off'
|
|
173
179
|
},
|
|
174
180
|
settings: { 'import/resolver': { typescript: true } }
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.106.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@stylistic/eslint-plugin": "~1.5.
|
|
10
|
+
"@stylistic/eslint-plugin": "~1.5.4",
|
|
11
11
|
"eslint-plugin-import": "~2.29.1",
|
|
12
12
|
"eslint-plugin-jsdoc": "~48.0.2",
|
|
13
|
-
"eslint-plugin-n": "~16.6.
|
|
13
|
+
"eslint-plugin-n": "~16.6.2"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@eslint-stylistic/metadata": "~1.5.
|
|
17
|
-
"@types/eslint": "^8.56.
|
|
18
|
-
"@types/node": "^20.
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "~6.
|
|
20
|
-
"@typescript-eslint/parser": "~6.
|
|
16
|
+
"@eslint-stylistic/metadata": "~1.5.4",
|
|
17
|
+
"@types/eslint": "^8.56.2",
|
|
18
|
+
"@types/node": "^20.11.5",
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "~6.19.0",
|
|
20
|
+
"@typescript-eslint/parser": "~6.19.0",
|
|
21
21
|
"eslint": "~8.56.0",
|
|
22
22
|
"eslint-import-resolver-typescript": "~3.6.1",
|
|
23
|
-
"eslint-plugin-jest": "~27.6.
|
|
23
|
+
"eslint-plugin-jest": "~27.6.3",
|
|
24
24
|
"eslint-plugin-react": "~7.33.2",
|
|
25
25
|
"eslint-plugin-react-hooks": "~4.6.0",
|
|
26
26
|
"husky": "^8.0.1",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"main": "index.js",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
51
|
-
"@typescript-eslint/parser": "^6.
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
51
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
52
52
|
"eslint": "^8.50.0",
|
|
53
53
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
54
54
|
"eslint-plugin-jest": "^27.3.0",
|