@fullstacksjs/eslint-config 10.3.3 → 10.4.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/init.js +1 -1
- package/jest.js +2 -1
- package/next.js +20 -0
- package/package.json +19 -19
- package/typecheck.js +5 -0
- package/typescript.js +0 -5
package/init.js
CHANGED
|
@@ -43,13 +43,13 @@ function init(opts = {}) {
|
|
|
43
43
|
);
|
|
44
44
|
|
|
45
45
|
if (opts.typescript?.parserProject) {
|
|
46
|
+
config.extends.push(require.resolve('./typecheck.js'));
|
|
46
47
|
config.parserOptions = merge(config.parserOptions, {
|
|
47
48
|
project: opts.typescript.parserProject,
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
if (opts.typescript?.resolverProject) {
|
|
52
|
-
config.extends.push(require.resolve('./typecheck.js'));
|
|
53
53
|
config.settings = merge(config.settings, {
|
|
54
54
|
'import/resolver': {
|
|
55
55
|
typescript: {
|
package/jest.js
CHANGED
|
@@ -23,6 +23,7 @@ module.exports = {
|
|
|
23
23
|
'jest/no-commented-out-tests': 'warn',
|
|
24
24
|
'jest/no-conditional-expect': 'error',
|
|
25
25
|
'jest/no-conditional-in-test': 'error',
|
|
26
|
+
'jest/no-confusing-set-timeout': 'warn',
|
|
26
27
|
'jest/no-done-callback': 'warn',
|
|
27
28
|
'jest/no-expect-resolves': 'off',
|
|
28
29
|
'jest/no-export': 'error',
|
|
@@ -44,8 +45,8 @@ module.exports = {
|
|
|
44
45
|
'jest/prefer-expect-resolves': 'warn',
|
|
45
46
|
'jest/prefer-hooks-on-top': 'error',
|
|
46
47
|
'jest/prefer-inline-snapshots': 'off',
|
|
47
|
-
'jest/prefer-mock-promise-shorthand': 'warn',
|
|
48
48
|
'jest/prefer-lowercase-title': 'off',
|
|
49
|
+
'jest/prefer-mock-promise-shorthand': 'warn',
|
|
49
50
|
'jest/prefer-snapshot-hint': 'warn',
|
|
50
51
|
'jest/prefer-spy-on': 'off',
|
|
51
52
|
'jest/prefer-strict-equal': 'off',
|
package/next.js
CHANGED
|
@@ -3,5 +3,25 @@ module.exports = {
|
|
|
3
3
|
extends: ['plugin:@next/next/core-web-vitals'],
|
|
4
4
|
rules: {
|
|
5
5
|
'react/function-component-definition': 'off',
|
|
6
|
+
'@next/next/google-font-display': 'warn',
|
|
7
|
+
'@next/next/google-font-preconnect': 'warn',
|
|
8
|
+
'@next/next/inline-script-id': 'warn',
|
|
9
|
+
'@next/next/next-script-for-ga': 'warn',
|
|
10
|
+
'@next/next/no-assign-module-variable': 'warn',
|
|
11
|
+
'@next/next/no-async-client-component': 'warn',
|
|
12
|
+
'@next/next/no-before-interactive-script-outside-document': 'warn',
|
|
13
|
+
'@next/next/no-css-tags': 'warn',
|
|
14
|
+
'@next/next/no-document-import-in-page': 'warn',
|
|
15
|
+
'@next/next/no-duplicate-head': 'warn',
|
|
16
|
+
'@next/next/no-head-element': 'warn',
|
|
17
|
+
'@next/next/no-head-import-in-document': 'warn',
|
|
18
|
+
'@next/next/no-html-link-for-pages': 'warn',
|
|
19
|
+
'@next/next/no-img-element': 'warn',
|
|
20
|
+
'@next/next/no-page-custom-font': 'warn',
|
|
21
|
+
'@next/next/no-script-component-in-head': 'warn',
|
|
22
|
+
'@next/next/no-styled-jsx-in-document': 'warn',
|
|
23
|
+
'@next/next/no-sync-scripts': 'warn',
|
|
24
|
+
'@next/next/no-title-in-document-head': 'warn',
|
|
25
|
+
'@next/next/no-unwanted-polyfillio': 'warn',
|
|
6
26
|
},
|
|
7
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "fullstacks <fullstacksjs@gmail.com>",
|
|
6
6
|
"description": "fullstacks eslint config",
|
|
@@ -49,44 +49,44 @@
|
|
|
49
49
|
},
|
|
50
50
|
"main": "index.js",
|
|
51
51
|
"dependencies": {
|
|
52
|
+
"@cspell/eslint-plugin": "7.3.8",
|
|
52
53
|
"@graphql-eslint/eslint-plugin": "3.20.1",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
54
|
-
"@typescript-eslint/parser": "6.
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "6.9.0",
|
|
55
|
+
"@typescript-eslint/parser": "6.9.0",
|
|
55
56
|
"deepmerge": "4.3.1",
|
|
56
|
-
"eslint-config-next": "
|
|
57
|
+
"eslint-config-next": "14.0.0",
|
|
57
58
|
"eslint-config-prettier": "9.0.0",
|
|
58
|
-
"eslint-import-resolver-typescript": "3.6.
|
|
59
|
-
"eslint-plugin-cypress": "2.
|
|
59
|
+
"eslint-import-resolver-typescript": "3.6.1",
|
|
60
|
+
"eslint-plugin-cypress": "2.15.1",
|
|
60
61
|
"eslint-plugin-fp": "2.3.0",
|
|
61
|
-
"eslint-plugin-import": "2.
|
|
62
|
-
"eslint-plugin-jest": "27.2.3",
|
|
62
|
+
"eslint-plugin-import": "2.29.0",
|
|
63
63
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
64
|
+
"eslint-plugin-jest": "27.6.0",
|
|
64
65
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
65
66
|
"eslint-plugin-node": "11.1.0",
|
|
66
|
-
"eslint-plugin-prettier": "5.0.
|
|
67
|
+
"eslint-plugin-prettier": "5.0.1",
|
|
67
68
|
"eslint-plugin-promise": "6.1.1",
|
|
68
|
-
"eslint-plugin-react": "7.33.2",
|
|
69
69
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
70
|
+
"eslint-plugin-react": "7.33.2",
|
|
70
71
|
"eslint-plugin-simple-import-sort": "10.0.0",
|
|
71
|
-
"eslint-plugin-storybook": "0.6.
|
|
72
|
+
"eslint-plugin-storybook": "0.6.15",
|
|
72
73
|
"eslint-plugin-tailwindcss": "3.13.0",
|
|
73
74
|
"read-pkg-up": "7.0.1"
|
|
74
75
|
},
|
|
75
76
|
"devDependencies": {
|
|
76
|
-
"@
|
|
77
|
-
"@semantic-release/
|
|
78
|
-
"@semantic-release/
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"eslint": "8.48.0",
|
|
77
|
+
"@semantic-release/github": "9.2.1",
|
|
78
|
+
"@semantic-release/npm": "11.0.0",
|
|
79
|
+
"@semantic-release/release-notes-generator": "12.0.0",
|
|
80
|
+
"cspell": "7.3.8",
|
|
81
|
+
"eslint": "8.52.0",
|
|
82
82
|
"eslint-find-rules": "4.1.0",
|
|
83
83
|
"husky": "8.0.3",
|
|
84
|
-
"lint-staged": "
|
|
84
|
+
"lint-staged": "15.0.2",
|
|
85
85
|
"np": "8.0.4",
|
|
86
86
|
"npm-run-all": "4.1.5",
|
|
87
87
|
"pinst": "3.0.0",
|
|
88
88
|
"prettier": "3.0.3",
|
|
89
|
-
"semantic-release": "
|
|
89
|
+
"semantic-release": "22.0.5",
|
|
90
90
|
"typescript": "5.2.2"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
package/typecheck.js
CHANGED
|
@@ -38,6 +38,7 @@ module.exports = {
|
|
|
38
38
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
39
39
|
'@typescript-eslint/non-nullable-type-assertion-style': 'warn',
|
|
40
40
|
'@typescript-eslint/prefer-includes': 'warn',
|
|
41
|
+
'@typescript-eslint/prefer-optional-chain': 'warn',
|
|
41
42
|
'@typescript-eslint/prefer-reduce-type-parameter': 'warn',
|
|
42
43
|
'@typescript-eslint/prefer-nullish-coalescing': [
|
|
43
44
|
'warn',
|
|
@@ -51,6 +52,10 @@ module.exports = {
|
|
|
51
52
|
'@typescript-eslint/prefer-regexp-exec': 'warn',
|
|
52
53
|
'@typescript-eslint/prefer-return-this-type': 'warn',
|
|
53
54
|
'@typescript-eslint/prefer-string-starts-ends-with': 'warn',
|
|
55
|
+
'@typescript-eslint/restrict-template-expressions': [
|
|
56
|
+
'warn',
|
|
57
|
+
{ allowNumber: true, allowBoolean: false, allowAny: false, allowNullish: false, allowRegExp: false, allowNever: false },
|
|
58
|
+
],
|
|
54
59
|
'@typescript-eslint/require-array-sort-compare': ['error', { ignoreStringArrays: true }],
|
|
55
60
|
'@typescript-eslint/require-await': 'error',
|
|
56
61
|
'@typescript-eslint/return-await': 'error',
|
package/typescript.js
CHANGED
|
@@ -120,7 +120,6 @@ module.exports = {
|
|
|
120
120
|
'@typescript-eslint/prefer-function-type': 'warn',
|
|
121
121
|
'@typescript-eslint/prefer-literal-enum-member': ['error', { allowBitwiseExpressions: true }],
|
|
122
122
|
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
123
|
-
'@typescript-eslint/prefer-optional-chain': 'warn',
|
|
124
123
|
'@typescript-eslint/prefer-readonly-parameter-types': [
|
|
125
124
|
'off',
|
|
126
125
|
{ checkParameterProperties: true, ignoreInferredTypes: false, treatMethodsAsReadonly: true },
|
|
@@ -130,10 +129,6 @@ module.exports = {
|
|
|
130
129
|
'@typescript-eslint/prefer-ts-expect-error': 'off',
|
|
131
130
|
'@typescript-eslint/promise-function-async': 'off',
|
|
132
131
|
'@typescript-eslint/restrict-plus-operands': 'off',
|
|
133
|
-
'@typescript-eslint/restrict-template-expressions': [
|
|
134
|
-
'warn',
|
|
135
|
-
{ allowNumber: true, allowBoolean: false, allowAny: false, allowNullish: false, allowRegExp: false, allowNever: false },
|
|
136
|
-
],
|
|
137
132
|
'@typescript-eslint/sort-type-constituents': [
|
|
138
133
|
'warn',
|
|
139
134
|
{
|