@fullstacksjs/eslint-config 8.11.1 → 8.13.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/package.json +15 -15
- package/rules/graphql.js +4 -0
- package/rules/import.js +2 -0
- package/rules/jsx-a11y.js +5 -2
- package/rules/react.js +2 -0
- package/rules/typescript.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "fullstacks <fullstacksjs@gmail.com>",
|
|
6
6
|
"description": "fullstacks eslint config",
|
|
@@ -46,32 +46,32 @@
|
|
|
46
46
|
"main": "index.js",
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@fullstacksjs/toolbox": "3.0.2",
|
|
49
|
-
"@graphql-eslint/eslint-plugin": "3.
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
51
|
-
"@typescript-eslint/parser": "5.
|
|
52
|
-
"eslint-config-prettier": "8.
|
|
49
|
+
"@graphql-eslint/eslint-plugin": "3.15.0",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "5.50.0",
|
|
51
|
+
"@typescript-eslint/parser": "5.50.0",
|
|
52
|
+
"eslint-config-prettier": "8.6.0",
|
|
53
53
|
"eslint-import-resolver-typescript": "3.5.3",
|
|
54
54
|
"eslint-plugin-cypress": "2.12.1",
|
|
55
55
|
"eslint-plugin-fp": "2.3.0",
|
|
56
|
-
"eslint-plugin-import": "2.
|
|
57
|
-
"eslint-plugin-jest": "27.1
|
|
56
|
+
"eslint-plugin-import": "2.27.5",
|
|
57
|
+
"eslint-plugin-jest": "27.2.1",
|
|
58
58
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
59
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
59
|
+
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
60
60
|
"eslint-plugin-node": "11.1.0",
|
|
61
61
|
"eslint-plugin-prettier": "4.2.1",
|
|
62
62
|
"eslint-plugin-promise": "6.1.1",
|
|
63
|
-
"eslint-plugin-react": "7.
|
|
63
|
+
"eslint-plugin-react": "7.32.2",
|
|
64
64
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
65
|
-
"eslint-plugin-simple-import-sort": "
|
|
66
|
-
"eslint-plugin-storybook": "0.6.
|
|
65
|
+
"eslint-plugin-simple-import-sort": "10.0.0",
|
|
66
|
+
"eslint-plugin-storybook": "0.6.10",
|
|
67
67
|
"read-pkg-up": "7.0.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@semantic-release/github": "8.0.7",
|
|
71
|
-
"@semantic-release/npm": "9.0.
|
|
71
|
+
"@semantic-release/npm": "9.0.2",
|
|
72
72
|
"@semantic-release/release-notes-generator": "10.0.3",
|
|
73
|
-
"cspell": "6.
|
|
74
|
-
"eslint": "8.
|
|
73
|
+
"cspell": "6.21.0",
|
|
74
|
+
"eslint": "8.33.0",
|
|
75
75
|
"eslint-find-rules": "4.1.0",
|
|
76
76
|
"husky": "8.0.3",
|
|
77
77
|
"lint-staged": "13.1.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"npm-run-all": "4.1.5",
|
|
80
80
|
"pinst": "3.0.0",
|
|
81
81
|
"prettier": "2.8.3",
|
|
82
|
-
"semantic-release": "
|
|
82
|
+
"semantic-release": "20.1.0",
|
|
83
83
|
"typescript": "4.9.5"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
package/rules/graphql.js
CHANGED
|
@@ -12,6 +12,7 @@ module.exports = {
|
|
|
12
12
|
'@graphql-eslint/known-fragment-names': 'warn',
|
|
13
13
|
'@graphql-eslint/known-type-names': 'warn',
|
|
14
14
|
'@graphql-eslint/lone-anonymous-operation': 'warn',
|
|
15
|
+
'@graphql-eslint/lone-executable-definition': 'off',
|
|
15
16
|
'@graphql-eslint/lone-schema-definition': 'warn',
|
|
16
17
|
'@graphql-eslint/match-document-filename': ['warn', { query: 'camelCase', mutation: 'camelCase', subscription: 'camelCase' }],
|
|
17
18
|
'@graphql-eslint/naming-convention': 'warn',
|
|
@@ -21,6 +22,7 @@ module.exports = {
|
|
|
21
22
|
'@graphql-eslint/no-duplicate-fields': 'warn',
|
|
22
23
|
'@graphql-eslint/no-fragment-cycles': 'warn',
|
|
23
24
|
'@graphql-eslint/no-hashtag-description': 'warn',
|
|
25
|
+
'@graphql-eslint/no-one-place-fragments': 'off',
|
|
24
26
|
'@graphql-eslint/no-root-type': 'off',
|
|
25
27
|
'@graphql-eslint/no-scalar-result-type-on-mutation': 'warn',
|
|
26
28
|
'@graphql-eslint/no-typename-prefix': 'warn',
|
|
@@ -43,6 +45,8 @@ module.exports = {
|
|
|
43
45
|
'@graphql-eslint/require-description': 'off',
|
|
44
46
|
'@graphql-eslint/require-field-of-type-query-in-mutation-result': 'warn',
|
|
45
47
|
'@graphql-eslint/require-id-when-available': 'warn',
|
|
48
|
+
'@graphql-eslint/require-nullable-fields-with-oneof': 'warn',
|
|
49
|
+
'@graphql-eslint/require-type-pattern-with-oneof': 'warn',
|
|
46
50
|
'@graphql-eslint/scalar-leafs': 'warn',
|
|
47
51
|
'@graphql-eslint/selection-set-depth': 'off',
|
|
48
52
|
'@graphql-eslint/strict-id-in-types': 'warn',
|
package/rules/import.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
rules: {
|
|
3
|
+
'import/consistent-type-specifier-style': ['warn', 'prefer-inline'],
|
|
3
4
|
'import/default': 'error',
|
|
4
5
|
'import/dynamic-import-chunkname': 'off',
|
|
5
6
|
'import/export': 'error',
|
|
@@ -20,6 +21,7 @@ module.exports = {
|
|
|
20
21
|
'import/no-deprecated': 'warn',
|
|
21
22
|
'import/no-duplicates': 'error',
|
|
22
23
|
'import/no-dynamic-require': 'off',
|
|
24
|
+
'import/no-empty-named-blocks': 'error',
|
|
23
25
|
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
|
|
24
26
|
'import/no-import-module-exports': 'off',
|
|
25
27
|
'import/no-internal-modules': 'off',
|
package/rules/jsx-a11y.js
CHANGED
|
@@ -10,15 +10,18 @@ module.exports = {
|
|
|
10
10
|
'jsx-a11y/aria-unsupported-elements': 'error',
|
|
11
11
|
'jsx-a11y/autocomplete-valid': 'off',
|
|
12
12
|
'jsx-a11y/click-events-have-key-events': 'error',
|
|
13
|
+
'jsx-a11y/control-has-associated-label': 'off',
|
|
13
14
|
'jsx-a11y/heading-has-content': 'error',
|
|
14
15
|
'jsx-a11y/html-has-lang': 'error',
|
|
15
16
|
'jsx-a11y/iframe-has-title': 'error',
|
|
16
17
|
'jsx-a11y/img-redundant-alt': 'error',
|
|
17
18
|
'jsx-a11y/interactive-supports-focus': 'warn',
|
|
19
|
+
'jsx-a11y/label-has-associated-control': 'error',
|
|
18
20
|
'jsx-a11y/lang': 'error',
|
|
19
21
|
'jsx-a11y/media-has-caption': 'warn',
|
|
20
22
|
'jsx-a11y/mouse-events-have-key-events': 'error',
|
|
21
23
|
'jsx-a11y/no-access-key': 'error',
|
|
24
|
+
'jsx-a11y/no-aria-hidden-on-focusable': 'warn',
|
|
22
25
|
'jsx-a11y/no-autofocus': 'off',
|
|
23
26
|
'jsx-a11y/no-distracting-elements': 'error',
|
|
24
27
|
'jsx-a11y/no-interactive-element-to-noninteractive-role': 'warn',
|
|
@@ -31,7 +34,7 @@ module.exports = {
|
|
|
31
34
|
'jsx-a11y/role-supports-aria-props': 'error',
|
|
32
35
|
'jsx-a11y/scope': 'error',
|
|
33
36
|
'jsx-a11y/tabindex-no-positive': 'warn',
|
|
34
|
-
'jsx-a11y/
|
|
35
|
-
'jsx-a11y/
|
|
37
|
+
'jsx-a11y/anchor-ambiguous-text': 'off',
|
|
38
|
+
'jsx-a11y/prefer-tag-over-role': 'off',
|
|
36
39
|
},
|
|
37
40
|
};
|
package/rules/react.js
CHANGED
|
@@ -56,6 +56,7 @@ module.exports = {
|
|
|
56
56
|
'react/no-is-mounted': 'error',
|
|
57
57
|
'react/no-multi-comp': 'off',
|
|
58
58
|
'react/no-namespace': 'error',
|
|
59
|
+
'react/no-object-type-as-default-prop': 'warn',
|
|
59
60
|
'react/no-redundant-should-component-update': 'error',
|
|
60
61
|
'react/no-render-return-value': 'error',
|
|
61
62
|
'react/no-set-state': 'off',
|
|
@@ -81,6 +82,7 @@ module.exports = {
|
|
|
81
82
|
'react/require-render-return': 'error',
|
|
82
83
|
'react/self-closing-comp': 'error',
|
|
83
84
|
'react/sort-comp': 'off',
|
|
85
|
+
'react/sort-default-props': 'warn',
|
|
84
86
|
'react/sort-prop-types': 'off',
|
|
85
87
|
'react/state-in-constructor': 'off',
|
|
86
88
|
'react/static-property-placement': 'off',
|
package/rules/typescript.js
CHANGED
|
@@ -135,8 +135,10 @@ module.exports = {
|
|
|
135
135
|
'@typescript-eslint/triple-slash-reference': 'error',
|
|
136
136
|
'@typescript-eslint/typedef': ['error', { parameter: false, arrowParameter: false, variableDeclaration: false }],
|
|
137
137
|
'@typescript-eslint/unified-signatures': 'error',
|
|
138
|
+
'@typescript-eslint/key-spacing': 'off',
|
|
138
139
|
|
|
139
140
|
// collisions
|
|
141
|
+
'key-spacing': 'off',
|
|
140
142
|
'camelcase': 'off',
|
|
141
143
|
'default-param-last': 'off',
|
|
142
144
|
'init-declarations': 'off',
|