eslint-config-badboyku 1.0.34 → 1.0.35

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 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': 'off',
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
- { groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'] },
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': ['error', { printWidth: 120, singleQuote: true, trailingComma: 'all' }],
123
- quotes: ['error', 'single', { avoidEscape: true }],
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
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ printWidth: 120,
3
+ semi: true,
4
+ singleQuote: true,
5
+ trailingComma: 'all',
6
+ bracketSameLine: false,
7
+ arrowParens: 'always',
8
+ }
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.34",
4
+ "version": "1.0.35",
5
5
  "author": "badboyku",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -15,11 +15,6 @@
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
19
  "@typescript-eslint/eslint-plugin": "^7.9.0",
25
20
  "@typescript-eslint/parser": "^7.9.0",