@fullstacksjs/eslint-config 10.10.0 → 10.11.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/README.md +2 -2
- package/init.js +3 -3
- package/package.json +16 -19
- package/typecheck.js +2 -0
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ interface Modules {
|
|
|
56
56
|
auto?: boolean; // Auto module detection
|
|
57
57
|
react?: boolean; // controls react, react-hooks, jsx/a11y plugins
|
|
58
58
|
typescript?: { // controls typescript plugin
|
|
59
|
-
parserProject?: string[] | string; // controls parserOptions.project
|
|
59
|
+
parserProject?: boolean | string[] | string; // controls parserOptions.project
|
|
60
60
|
resolverProject?: string[] | string // controls settings['import/resolver'].typescript.project
|
|
61
61
|
};
|
|
62
62
|
node?: boolean; // controls node plugin
|
|
@@ -82,7 +82,7 @@ If you need more advanced typescript-eslint rule you need to specify `modules.ty
|
|
|
82
82
|
module.exports = init({
|
|
83
83
|
modules: {
|
|
84
84
|
typescript: {
|
|
85
|
-
parserProject:
|
|
85
|
+
parserProject: true, // parserOptions.project
|
|
86
86
|
resolverProject: "<PATH_TO_TSCONFIG>", // settings['import/resolver']
|
|
87
87
|
},
|
|
88
88
|
},
|
package/init.js
CHANGED
|
@@ -32,6 +32,7 @@ function init(opts = {}) {
|
|
|
32
32
|
opts.esm && require.resolve('./esm'),
|
|
33
33
|
opts.strict && require.resolve('./strict'),
|
|
34
34
|
opts.prettier && require.resolve('./prettier'),
|
|
35
|
+
opts.typescript && require.resolve('./typecheck.js'),
|
|
35
36
|
]
|
|
36
37
|
.concat(extraExtends)
|
|
37
38
|
.filter(Boolean),
|
|
@@ -41,10 +42,9 @@ function init(opts = {}) {
|
|
|
41
42
|
eslintConfig,
|
|
42
43
|
);
|
|
43
44
|
|
|
44
|
-
if (opts.typescript
|
|
45
|
-
config.extends.push(require.resolve('./typecheck.js'));
|
|
45
|
+
if (opts.typescript) {
|
|
46
46
|
config.parserOptions = merge(config.parserOptions, {
|
|
47
|
-
project: opts.typescript.parserProject,
|
|
47
|
+
project: opts.typescript.parserProject ?? true,
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.11.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "fullstacks <fullstacksjs@gmail.com>",
|
|
6
6
|
"description": "fullstacks eslint config",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"main": "index.js",
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@graphql-eslint/eslint-plugin": "3.20.1",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "
|
|
54
|
-
"@typescript-eslint/parser": "
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "7.1.0",
|
|
54
|
+
"@typescript-eslint/parser": "7.1.0",
|
|
55
55
|
"deepmerge": "4.3.1",
|
|
56
|
-
"eslint-config-next": "14.
|
|
56
|
+
"eslint-config-next": "14.1.1",
|
|
57
57
|
"eslint-config-prettier": "9.1.0",
|
|
58
58
|
"eslint-import-resolver-typescript": "3.6.1",
|
|
59
59
|
"eslint-plugin-cypress": "2.15.1",
|
|
60
60
|
"eslint-plugin-fp": "2.3.0",
|
|
61
61
|
"eslint-plugin-import": "2.29.1",
|
|
62
|
-
"eslint-plugin-jest": "27.
|
|
62
|
+
"eslint-plugin-jest": "27.9.0",
|
|
63
63
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
64
64
|
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
65
65
|
"eslint-plugin-node": "11.1.0",
|
|
@@ -67,25 +67,25 @@
|
|
|
67
67
|
"eslint-plugin-promise": "6.1.1",
|
|
68
68
|
"eslint-plugin-react": "7.33.2",
|
|
69
69
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
70
|
-
"eslint-plugin-simple-import-sort": "
|
|
71
|
-
"eslint-plugin-storybook": "0.
|
|
72
|
-
"eslint-plugin-tailwindcss": "3.14.
|
|
70
|
+
"eslint-plugin-simple-import-sort": "12.0.0",
|
|
71
|
+
"eslint-plugin-storybook": "0.8.0",
|
|
72
|
+
"eslint-plugin-tailwindcss": "3.14.3",
|
|
73
73
|
"read-pkg-up": "7.0.1"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@semantic-release/github": "9.2.6",
|
|
77
|
-
"@semantic-release/npm": "11.0.
|
|
77
|
+
"@semantic-release/npm": "11.0.3",
|
|
78
78
|
"@semantic-release/release-notes-generator": "12.1.0",
|
|
79
|
-
"cspell": "8.
|
|
80
|
-
"eslint": "8.
|
|
79
|
+
"cspell": "8.5.0",
|
|
80
|
+
"eslint": "8.57.0",
|
|
81
81
|
"eslint-find-rules": "4.1.0",
|
|
82
|
-
"husky": "
|
|
83
|
-
"lint-staged": "15.2.
|
|
84
|
-
"np": "
|
|
82
|
+
"husky": "9.0.11",
|
|
83
|
+
"lint-staged": "15.2.2",
|
|
84
|
+
"np": "10.0.0",
|
|
85
85
|
"npm-run-all": "4.1.5",
|
|
86
86
|
"pinst": "3.0.0",
|
|
87
|
-
"prettier": "3.2.
|
|
88
|
-
"semantic-release": "23.0.
|
|
87
|
+
"prettier": "3.2.5",
|
|
88
|
+
"semantic-release": "23.0.2",
|
|
89
89
|
"typescript": "5.3.3"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
@@ -96,9 +96,6 @@
|
|
|
96
96
|
"react": ">=16",
|
|
97
97
|
"typescript": ">=4"
|
|
98
98
|
},
|
|
99
|
-
"engines": {
|
|
100
|
-
"node": ">=16"
|
|
101
|
-
},
|
|
102
99
|
"peerDependenciesMeta": {
|
|
103
100
|
"typescript": {
|
|
104
101
|
"optional": true
|
package/typecheck.js
CHANGED
|
@@ -7,6 +7,7 @@ module.exports = {
|
|
|
7
7
|
files: ['*.ts', '*.tsx'],
|
|
8
8
|
rules: {
|
|
9
9
|
'@typescript-eslint/await-thenable': 'error',
|
|
10
|
+
'@typescript-eslint/consistent-return': 'off',
|
|
10
11
|
'@typescript-eslint/consistent-type-exports': 'warn',
|
|
11
12
|
'@typescript-eslint/dot-notation': [
|
|
12
13
|
'warn',
|
|
@@ -81,6 +82,7 @@ module.exports = {
|
|
|
81
82
|
// collisions
|
|
82
83
|
'dot-notation': 'off',
|
|
83
84
|
'prefer-promise-reject-errors': 'off',
|
|
85
|
+
'consistent-return': 'off',
|
|
84
86
|
},
|
|
85
87
|
},
|
|
86
88
|
],
|