@egy186/eslint-config 0.108.0 → 0.109.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 -1
- package/dist/rules/n-rules.d.ts +3 -1
- package/dist/rules/n-rules.js +1 -1
- package/dist/typescript.d.ts +2 -0
- package/dist/typescript.js +2 -0
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -168,7 +168,9 @@ declare const config: {
|
|
|
168
168
|
'n/no-restricted-require': "off";
|
|
169
169
|
'n/no-sync': "error";
|
|
170
170
|
'n/no-unpublished-bin': "error";
|
|
171
|
-
'n/no-unpublished-import': "error"
|
|
171
|
+
'n/no-unpublished-import': ["error", {
|
|
172
|
+
ignoreTypeImport: boolean;
|
|
173
|
+
}];
|
|
172
174
|
'n/no-unpublished-require': "error";
|
|
173
175
|
'n/no-unsupported-features/es-builtins': "error";
|
|
174
176
|
'n/no-unsupported-features/es-syntax': "error";
|
package/dist/rules/n-rules.d.ts
CHANGED
|
@@ -20,7 +20,9 @@ declare const rules: {
|
|
|
20
20
|
'n/no-restricted-require': "off";
|
|
21
21
|
'n/no-sync': "error";
|
|
22
22
|
'n/no-unpublished-bin': "error";
|
|
23
|
-
'n/no-unpublished-import': "error"
|
|
23
|
+
'n/no-unpublished-import': ["error", {
|
|
24
|
+
ignoreTypeImport: boolean;
|
|
25
|
+
}];
|
|
24
26
|
'n/no-unpublished-require': "error";
|
|
25
27
|
'n/no-unsupported-features/es-builtins': "error";
|
|
26
28
|
'n/no-unsupported-features/es-syntax': "error";
|
package/dist/rules/n-rules.js
CHANGED
|
@@ -22,7 +22,7 @@ const rules = {
|
|
|
22
22
|
'n/no-restricted-require': 'off',
|
|
23
23
|
'n/no-sync': 'error',
|
|
24
24
|
'n/no-unpublished-bin': 'error',
|
|
25
|
-
'n/no-unpublished-import': 'error',
|
|
25
|
+
'n/no-unpublished-import': ['error', { ignoreTypeImport: true }],
|
|
26
26
|
'n/no-unpublished-require': 'error',
|
|
27
27
|
'n/no-unsupported-features/es-builtins': 'error',
|
|
28
28
|
'n/no-unsupported-features/es-syntax': 'error',
|
package/dist/typescript.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare const config: {
|
|
|
16
16
|
'@typescript-eslint/class-methods-use-this': "error";
|
|
17
17
|
'@typescript-eslint/consistent-generic-constructors': "error";
|
|
18
18
|
'@typescript-eslint/consistent-indexed-object-style': ["error", string];
|
|
19
|
+
'@typescript-eslint/consistent-return': "error";
|
|
19
20
|
'@typescript-eslint/consistent-type-assertions': "error";
|
|
20
21
|
'@typescript-eslint/consistent-type-definitions': "error";
|
|
21
22
|
'@typescript-eslint/consistent-type-exports': "error";
|
|
@@ -157,6 +158,7 @@ declare const config: {
|
|
|
157
158
|
'@typescript-eslint/unified-signatures': "error";
|
|
158
159
|
camelcase: "off";
|
|
159
160
|
'class-methods-use-this': "off";
|
|
161
|
+
'consistent-return': "off";
|
|
160
162
|
'dot-notation': "off";
|
|
161
163
|
'init-declarations': "off";
|
|
162
164
|
'max-params': "off";
|
package/dist/typescript.js
CHANGED
|
@@ -18,6 +18,7 @@ const config = {
|
|
|
18
18
|
'@typescript-eslint/class-methods-use-this': 'error',
|
|
19
19
|
'@typescript-eslint/consistent-generic-constructors': 'error',
|
|
20
20
|
'@typescript-eslint/consistent-indexed-object-style': ['error', 'index-signature'],
|
|
21
|
+
'@typescript-eslint/consistent-return': 'error',
|
|
21
22
|
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
22
23
|
'@typescript-eslint/consistent-type-definitions': 'error',
|
|
23
24
|
'@typescript-eslint/consistent-type-exports': 'error',
|
|
@@ -162,6 +163,7 @@ const config = {
|
|
|
162
163
|
'@typescript-eslint/unified-signatures': 'error',
|
|
163
164
|
camelcase: 'off',
|
|
164
165
|
'class-methods-use-this': 'off',
|
|
166
|
+
'consistent-return': 'off',
|
|
165
167
|
'dot-notation': 'off',
|
|
166
168
|
'init-declarations': 'off',
|
|
167
169
|
'max-params': 'off',
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.109.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.6.
|
|
10
|
+
"@stylistic/eslint-plugin": "~1.6.2",
|
|
11
11
|
"eslint-plugin-import": "~2.29.1",
|
|
12
|
-
"eslint-plugin-jsdoc": "~48.
|
|
12
|
+
"eslint-plugin-jsdoc": "~48.2.0",
|
|
13
13
|
"eslint-plugin-n": "~16.6.2"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@eslint-stylistic/metadata": "~1.6.
|
|
17
|
-
"@types/eslint": "^8.56.
|
|
18
|
-
"@types/node": "^20.11.
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "~7.0
|
|
20
|
-
"@typescript-eslint/parser": "~7.0
|
|
21
|
-
"eslint": "~8.
|
|
16
|
+
"@eslint-stylistic/metadata": "~1.6.2",
|
|
17
|
+
"@types/eslint": "^8.56.5",
|
|
18
|
+
"@types/node": "^20.11.22",
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "~7.1.0",
|
|
20
|
+
"@typescript-eslint/parser": "~7.1.0",
|
|
21
|
+
"eslint": "~8.57.0",
|
|
22
22
|
"eslint-import-resolver-typescript": "~3.6.1",
|
|
23
|
-
"eslint-plugin-jest": "~27.
|
|
23
|
+
"eslint-plugin-jest": "~27.9.0",
|
|
24
24
|
"eslint-plugin-react": "~7.33.2",
|
|
25
25
|
"eslint-plugin-react-hooks": "~4.6.0",
|
|
26
|
-
"husky": "^9.0.
|
|
26
|
+
"husky": "^9.0.11",
|
|
27
27
|
"jiti": "^1.21.0",
|
|
28
28
|
"typescript": "~5.3.3"
|
|
29
29
|
},
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"main": "index.js",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^7.0
|
|
51
|
-
"@typescript-eslint/parser": "^7.0
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
|
51
|
+
"@typescript-eslint/parser": "^7.1.0",
|
|
52
52
|
"eslint": "^8.50.0",
|
|
53
53
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
54
54
|
"eslint-plugin-jest": "^27.7.0",
|