@dmitryrechkin/eslint-standard 1.3.0 → 1.3.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/eslint.config.mjs +15 -1
- package/package.json +3 -1
package/eslint.config.mjs
CHANGED
|
@@ -59,6 +59,17 @@ export default function ({
|
|
|
59
59
|
'functional': functionalPlugin,
|
|
60
60
|
...plugins,
|
|
61
61
|
},
|
|
62
|
+
settings: {
|
|
63
|
+
'import/resolver': {
|
|
64
|
+
node: {
|
|
65
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
'import/parsers': {
|
|
69
|
+
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
|
70
|
+
},
|
|
71
|
+
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
|
|
72
|
+
},
|
|
62
73
|
rules: {
|
|
63
74
|
// Original @dmitryrechkin/eslint-standard rules
|
|
64
75
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
|
@@ -502,7 +513,10 @@ export default function ({
|
|
|
502
513
|
'promise/prefer-await-to-callbacks': 'warn',
|
|
503
514
|
|
|
504
515
|
// Import plugin rules
|
|
505
|
-
'import/no-unresolved': 'error',
|
|
516
|
+
'import/no-unresolved': ['error', {
|
|
517
|
+
ignore: ['\\.ts$', '\\.tsx$'],
|
|
518
|
+
caseSensitive: false
|
|
519
|
+
}],
|
|
506
520
|
'import/named': 'error',
|
|
507
521
|
'import/default': 'error',
|
|
508
522
|
'import/namespace': 'error',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dmitryrechkin/eslint-standard",
|
|
3
3
|
"description": "This package provides a shared ESLint configuration which includes TypeScript support and a set of specific linting rules designed to ensure high-quality and consistent code style across projects.",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"main": "eslint.config.mjs",
|
|
6
6
|
"bin": {
|
|
7
7
|
"eslint-standard": "./src/cli/index.mjs"
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"eslint": "^9.0.0",
|
|
38
38
|
"eslint-plugin-functional": "^7.0.0",
|
|
39
39
|
"eslint-plugin-import": "^2.0.0",
|
|
40
|
+
"eslint-import-resolver-typescript": "^3.0.0",
|
|
40
41
|
"eslint-plugin-jsdoc": "^50.0.0",
|
|
41
42
|
"eslint-plugin-jsx-a11y": "^6.0.0",
|
|
42
43
|
"eslint-plugin-no-secrets": "^1.0.0",
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
"eslint": "^9.32.0",
|
|
57
58
|
"eslint-plugin-functional": "^7.3.0",
|
|
58
59
|
"eslint-plugin-import": "^2.32.0",
|
|
60
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
|
59
61
|
"eslint-plugin-jsdoc": "^50.8.0",
|
|
60
62
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
61
63
|
"eslint-plugin-no-secrets": "^1.1.2",
|