eslint-config-badboyku 1.0.34 → 1.0.36
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/.eslintrc.js +22 -5
- package/.prettierrc.js +8 -0
- package/package.json +9 -14
package/.eslintrc.js
CHANGED
|
@@ -35,25 +35,29 @@ module.exports = {
|
|
|
35
35
|
'jsx-a11y/aria-proptypes': 'warn',
|
|
36
36
|
'jsx-a11y/aria-role': 'warn',
|
|
37
37
|
'jsx-a11y/aria-unsupported-elements': 'warn',
|
|
38
|
+
'jsx-a11y/autocomplete-valid': 'warn',
|
|
38
39
|
'jsx-a11y/click-events-have-key-events': 'warn',
|
|
39
40
|
'jsx-a11y/heading-has-content': 'warn',
|
|
41
|
+
'jsx-a11y/html-has-lang': 'warn',
|
|
40
42
|
'jsx-a11y/iframe-has-title': 'warn',
|
|
41
43
|
'jsx-a11y/img-redundant-alt': 'warn',
|
|
42
44
|
'jsx-a11y/interactive-supports-focus': 'warn',
|
|
45
|
+
'jsx-a11y/label-has-associated-control': 'warn',
|
|
43
46
|
'jsx-a11y/media-has-caption': 'warn',
|
|
44
47
|
'jsx-a11y/mouse-events-have-key-events': 'warn',
|
|
45
48
|
'jsx-a11y/no-access-key': 'warn',
|
|
49
|
+
'jsx-a11y/no-autofocus': ['warn', { ignoreNonDOM: true }],
|
|
46
50
|
'jsx-a11y/no-distracting-elements': 'warn',
|
|
47
51
|
'jsx-a11y/no-interactive-element-to-noninteractive-role': 'warn',
|
|
48
52
|
'jsx-a11y/no-noninteractive-element-interactions': 'warn',
|
|
49
53
|
'jsx-a11y/no-noninteractive-element-to-interactive-role': 'warn',
|
|
50
|
-
'jsx-a11y/no-noninteractive-tabindex': '
|
|
51
|
-
'jsx-a11y/no-onchange': 'warn',
|
|
54
|
+
'jsx-a11y/no-noninteractive-tabindex': 'warn',
|
|
52
55
|
'jsx-a11y/no-redundant-roles': 'warn',
|
|
53
56
|
'jsx-a11y/no-static-element-interactions': 'warn',
|
|
54
57
|
'jsx-a11y/role-has-required-aria-props': 'warn',
|
|
55
58
|
'jsx-a11y/role-supports-aria-props': 'warn',
|
|
56
59
|
'jsx-a11y/scope': 'warn',
|
|
60
|
+
'jsx-a11y/tabindex-no-positive': 'warn',
|
|
57
61
|
'react/display-name': 'off',
|
|
58
62
|
'react/forbid-prop-types': 'off',
|
|
59
63
|
'react/function-component-definition': [
|
|
@@ -103,7 +107,10 @@ module.exports = {
|
|
|
103
107
|
'import/extensions': 'off',
|
|
104
108
|
'import/order': [
|
|
105
109
|
'error',
|
|
106
|
-
{
|
|
110
|
+
{
|
|
111
|
+
alphabetize: { order: 'asc' },
|
|
112
|
+
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
|
|
113
|
+
},
|
|
107
114
|
],
|
|
108
115
|
'import/prefer-default-export': 'off',
|
|
109
116
|
'linebreak-style': ['error', 'unix'],
|
|
@@ -119,8 +126,18 @@ module.exports = {
|
|
|
119
126
|
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
|
120
127
|
'no-use-before-define': 'off',
|
|
121
128
|
'padding-line-between-statements': ['warn', { blankLine: 'always', prev: '*', next: 'return' }],
|
|
122
|
-
'prettier/prettier': [
|
|
123
|
-
|
|
129
|
+
'prettier/prettier': [
|
|
130
|
+
'error',
|
|
131
|
+
{
|
|
132
|
+
printWidth: 120,
|
|
133
|
+
semi: true,
|
|
134
|
+
singleQuote: true,
|
|
135
|
+
trailingComma: 'all',
|
|
136
|
+
bracketSameLine: false,
|
|
137
|
+
arrowParens: 'always',
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
|
|
124
141
|
radix: 'off',
|
|
125
142
|
},
|
|
126
143
|
};
|
package/.prettierrc.js
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-badboyku",
|
|
3
3
|
"description": "Shared eslint+prettier configuration with react/jest/typescript support.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.36",
|
|
5
5
|
"author": "badboyku",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -15,26 +15,21 @@
|
|
|
15
15
|
"prettier": "prettier --check \"**/*.{css,scss,json}\"",
|
|
16
16
|
"prettier:fix": "prettier --write \"**/*.{css,scss,json}\""
|
|
17
17
|
},
|
|
18
|
-
"prettier": {
|
|
19
|
-
"printWidth": 120,
|
|
20
|
-
"singleQuote": true,
|
|
21
|
-
"trailingComma": "all"
|
|
22
|
-
},
|
|
23
18
|
"dependencies": {
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
25
|
-
"@typescript-eslint/parser": "^7.
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "^7.16.1",
|
|
20
|
+
"@typescript-eslint/parser": "^7.16.1",
|
|
26
21
|
"eslint": "^8.57.0",
|
|
27
22
|
"eslint-config-airbnb": "^19.0.4",
|
|
28
23
|
"eslint-config-prettier": "^9.1.0",
|
|
29
24
|
"eslint-plugin-import": "^2.29.1",
|
|
30
|
-
"eslint-plugin-jest": "^28.
|
|
25
|
+
"eslint-plugin-jest": "^28.6.0",
|
|
31
26
|
"eslint-plugin-jest-dom": "^5.4.0",
|
|
32
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
33
|
-
"eslint-plugin-prettier": "^5.1
|
|
34
|
-
"eslint-plugin-react": "^7.
|
|
27
|
+
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
28
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
29
|
+
"eslint-plugin-react": "^7.35.0",
|
|
35
30
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
36
31
|
"eslint-plugin-testing-library": "^6.2.2",
|
|
37
|
-
"prettier": "^3.
|
|
38
|
-
"typescript": "^5.
|
|
32
|
+
"prettier": "^3.3.3",
|
|
33
|
+
"typescript": "^5.5.3"
|
|
39
34
|
}
|
|
40
35
|
}
|