@fullstacksjs/eslint-config 9.1.1 → 9.2.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/graphql.js +2 -1
- package/import.js +1 -1
- package/package.json +15 -15
- package/typecheck.js +1 -0
- package/typescript.js +6 -2
package/graphql.js
CHANGED
|
@@ -50,14 +50,15 @@ module.exports = {
|
|
|
50
50
|
'@graphql-eslint/require-description': 'off',
|
|
51
51
|
'@graphql-eslint/require-field-of-type-query-in-mutation-result': 'warn',
|
|
52
52
|
'@graphql-eslint/require-id-when-available': 'warn',
|
|
53
|
+
'@graphql-eslint/require-import-fragment': 'off',
|
|
53
54
|
'@graphql-eslint/require-nullable-fields-with-oneof': 'warn',
|
|
54
55
|
'@graphql-eslint/require-type-pattern-with-oneof': 'warn',
|
|
55
56
|
'@graphql-eslint/scalar-leafs': 'warn',
|
|
56
57
|
'@graphql-eslint/selection-set-depth': 'off',
|
|
57
58
|
'@graphql-eslint/strict-id-in-types': 'warn',
|
|
58
59
|
'@graphql-eslint/unique-argument-names': 'warn',
|
|
59
|
-
'@graphql-eslint/unique-directive-names': 'warn',
|
|
60
60
|
'@graphql-eslint/unique-directive-names-per-location': 'warn',
|
|
61
|
+
'@graphql-eslint/unique-directive-names': 'warn',
|
|
61
62
|
'@graphql-eslint/unique-enum-value-names': 'warn',
|
|
62
63
|
'@graphql-eslint/unique-field-definition-names': 'warn',
|
|
63
64
|
'@graphql-eslint/unique-fragment-name': 'warn',
|
package/import.js
CHANGED
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
'import/ignore': ['node_modules', '\\.(coffee|scss|css|less|hbs|svg|json)$'],
|
|
12
12
|
},
|
|
13
13
|
rules: {
|
|
14
|
-
'import/consistent-type-specifier-style': ['warn', 'prefer-
|
|
14
|
+
'import/consistent-type-specifier-style': ['warn', 'prefer-top-level'],
|
|
15
15
|
'import/default': 'error',
|
|
16
16
|
'import/dynamic-import-chunkname': 'off',
|
|
17
17
|
'import/export': 'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "fullstacks <fullstacksjs@gmail.com>",
|
|
6
6
|
"description": "fullstacks eslint config",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"main": "index.js",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@fullstacksjs/toolbox": "3.0.2",
|
|
50
|
-
"@graphql-eslint/eslint-plugin": "3.
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
52
|
-
"@typescript-eslint/parser": "5.
|
|
53
|
-
"deepmerge": "4.3.
|
|
54
|
-
"eslint-config-prettier": "8.
|
|
50
|
+
"@graphql-eslint/eslint-plugin": "3.16.2",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "5.56.0",
|
|
52
|
+
"@typescript-eslint/parser": "5.56.0",
|
|
53
|
+
"deepmerge": "4.3.1",
|
|
54
|
+
"eslint-config-prettier": "8.8.0",
|
|
55
55
|
"eslint-import-resolver-typescript": "3.5.3",
|
|
56
56
|
"eslint-plugin-cypress": "2.12.1",
|
|
57
57
|
"eslint-plugin-fp": "2.3.0",
|
|
@@ -65,24 +65,24 @@
|
|
|
65
65
|
"eslint-plugin-react": "7.32.2",
|
|
66
66
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
67
67
|
"eslint-plugin-simple-import-sort": "10.0.0",
|
|
68
|
-
"eslint-plugin-storybook": "0.6.
|
|
68
|
+
"eslint-plugin-storybook": "0.6.11",
|
|
69
69
|
"read-pkg-up": "7.0.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@semantic-release/github": "8.0.7",
|
|
73
|
-
"@semantic-release/npm": "
|
|
73
|
+
"@semantic-release/npm": "10.0.2",
|
|
74
74
|
"@semantic-release/release-notes-generator": "10.0.3",
|
|
75
|
-
"cspell": "6.
|
|
76
|
-
"eslint": "8.
|
|
75
|
+
"cspell": "6.31.1",
|
|
76
|
+
"eslint": "8.36.0",
|
|
77
77
|
"eslint-find-rules": "4.1.0",
|
|
78
78
|
"husky": "8.0.3",
|
|
79
|
-
"lint-staged": "13.
|
|
80
|
-
"np": "7.6.
|
|
79
|
+
"lint-staged": "13.2.0",
|
|
80
|
+
"np": "7.6.4",
|
|
81
81
|
"npm-run-all": "4.1.5",
|
|
82
82
|
"pinst": "3.0.0",
|
|
83
|
-
"prettier": "2.8.
|
|
84
|
-
"semantic-release": "
|
|
85
|
-
"typescript": "
|
|
83
|
+
"prettier": "2.8.7",
|
|
84
|
+
"semantic-release": "21.0.0",
|
|
85
|
+
"typescript": "5.0.2"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"cypress": ">=8",
|
package/typecheck.js
CHANGED
|
@@ -20,6 +20,7 @@ module.exports = {
|
|
|
20
20
|
'@typescript-eslint/no-implied-eval': 'error',
|
|
21
21
|
'@typescript-eslint/no-meaningless-void-operator': ['warn', { checkNever: false }],
|
|
22
22
|
'@typescript-eslint/no-misused-promises': ['warn', { checksVoidReturn: { attributes: false } }],
|
|
23
|
+
'@typescript-eslint/no-mixed-enums': 'error',
|
|
23
24
|
'@typescript-eslint/no-redundant-type-constituents': 'warn',
|
|
24
25
|
'@typescript-eslint/no-throw-literal': ['warn', { allowThrowingUnknown: false }],
|
|
25
26
|
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
package/typescript.js
CHANGED
|
@@ -37,7 +37,10 @@ module.exports = {
|
|
|
37
37
|
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
|
38
38
|
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
39
39
|
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
|
|
40
|
-
'@typescript-eslint/consistent-type-imports': [
|
|
40
|
+
'@typescript-eslint/consistent-type-imports': [
|
|
41
|
+
'warn',
|
|
42
|
+
{ prefer: 'type-imports', disallowTypeAnnotations: false, fixStyle: 'separate-type-imports' },
|
|
43
|
+
],
|
|
41
44
|
'@typescript-eslint/default-param-last': 'warn',
|
|
42
45
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
43
46
|
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
@@ -60,6 +63,7 @@ module.exports = {
|
|
|
60
63
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
61
64
|
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
62
65
|
'@typescript-eslint/no-extraneous-class': ['warn', { allowWithDecorator: true }],
|
|
66
|
+
'@typescript-eslint/no-import-type-side-effects': 'warn',
|
|
63
67
|
'@typescript-eslint/no-inferrable-types': 'off',
|
|
64
68
|
'@typescript-eslint/no-invalid-this': ['error', { capIsConstructor: false }],
|
|
65
69
|
'@typescript-eslint/no-invalid-void-type': 'error',
|
|
@@ -127,7 +131,7 @@ module.exports = {
|
|
|
127
131
|
'@typescript-eslint/restrict-plus-operands': 'off',
|
|
128
132
|
'@typescript-eslint/restrict-template-expressions': [
|
|
129
133
|
'warn',
|
|
130
|
-
{ allowNumber: true, allowBoolean: false, allowAny: false, allowNullish: false, allowRegExp: false },
|
|
134
|
+
{ allowNumber: true, allowBoolean: false, allowAny: false, allowNullish: false, allowRegExp: false, allowNever: false },
|
|
131
135
|
],
|
|
132
136
|
'@typescript-eslint/sort-type-constituents': [
|
|
133
137
|
'warn',
|