eslint-config-airbnb-extended 0.0.8 → 0.1.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/base/index.ts +21 -0
  3. package/base/recommended.ts +17 -0
  4. package/index.ts +25 -0
  5. package/package.json +33 -45
  6. package/react/index.ts +11 -0
  7. package/react/recommended.ts +6 -0
  8. package/rules/best-practices.ts +462 -0
  9. package/rules/errors.ts +199 -0
  10. package/rules/es6.ts +224 -0
  11. package/rules/imports.ts +308 -0
  12. package/rules/node.ts +49 -0
  13. package/rules/react-a11y.ts +295 -0
  14. package/rules/react-hooks.ts +26 -0
  15. package/rules/react.ts +692 -0
  16. package/rules/strict.ts +9 -0
  17. package/rules/style.ts +632 -0
  18. package/rules/typescript.ts +312 -0
  19. package/rules/variables.ts +76 -0
  20. package/tsconfig.json +22 -0
  21. package/typescript/index.ts +7 -0
  22. package/typescript/recommended.ts +30 -0
  23. package/README.md +0 -1
  24. package/dist/base/index.d.ts +0 -842
  25. package/dist/base/index.js +0 -25
  26. package/dist/base/recommended.d.ts +0 -2
  27. package/dist/base/recommended.js +0 -33
  28. package/dist/index.d.ts +0 -2639
  29. package/dist/index.js +0 -20
  30. package/dist/react/index.d.ts +0 -1799
  31. package/dist/react/index.js +0 -15
  32. package/dist/react/recommended.d.ts +0 -2
  33. package/dist/react/recommended.js +0 -19
  34. package/dist/rules/best-practices.d.ts +0 -177
  35. package/dist/rules/best-practices.js +0 -379
  36. package/dist/rules/errors.d.ts +0 -69
  37. package/dist/rules/errors.js +0 -151
  38. package/dist/rules/es6.d.ts +0 -146
  39. package/dist/rules/es6.js +0 -203
  40. package/dist/rules/imports.d.ts +0 -2
  41. package/dist/rules/imports.js +0 -265
  42. package/dist/rules/node.d.ts +0 -90
  43. package/dist/rules/node.js +0 -50
  44. package/dist/rules/react-a11y.d.ts +0 -117
  45. package/dist/rules/react-a11y.js +0 -255
  46. package/dist/rules/react-hooks.d.ts +0 -19
  47. package/dist/rules/react-hooks.js +0 -57
  48. package/dist/rules/react.d.ts +0 -1664
  49. package/dist/rules/react.js +0 -606
  50. package/dist/rules/strict.d.ts +0 -7
  51. package/dist/rules/strict.js +0 -9
  52. package/dist/rules/style.d.ts +0 -320
  53. package/dist/rules/style.js +0 -530
  54. package/dist/rules/variables.d.ts +0 -35
  55. package/dist/rules/variables.js +0 -73
  56. package/dist/utils/index.d.ts +0 -1
  57. package/dist/utils/index.js +0 -4
@@ -1,265 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __importDefault = (this && this.__importDefault) || function (mod) {
18
- return (mod && mod.__esModule) ? mod : { "default": mod };
19
- };
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- var globals_1 = __importDefault(require("globals"));
22
- // @ts-expect-error eslint-plugin-import not working in import
23
- // eslint-disable-next-line @typescript-eslint/no-require-imports,unicorn/prefer-module
24
- var EsLintPluginImport = require('eslint-plugin-import');
25
- exports.default = __assign(__assign({}, EsLintPluginImport.flatConfigs.recommended), { name: 'airbnb/config/imports', languageOptions: {
26
- globals: __assign({}, globals_1.default.es2015),
27
- parserOptions: {
28
- ecmaVersion: 6,
29
- sourceType: 'module',
30
- },
31
- }, settings: {
32
- 'import/resolver': {
33
- node: {
34
- extensions: ['.js', '.cjs', '.mjs', '.json'],
35
- },
36
- },
37
- 'import/extensions': ['.js', '.cjs', '.mjs', '.jsx'],
38
- 'import/core-modules': [],
39
- 'import/ignore': ['node_modules', String.raw(templateObject_1 || (templateObject_1 = __makeTemplateObject([".(coffee|scss|css|less|hbs|svg|json)$"], ["\\.(coffee|scss|css|less|hbs|svg|json)$"])))],
40
- }, rules: {
41
- // Static analysis:
42
- // ensure imports point to files/modules that can be resolved
43
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
44
- 'import/no-unresolved': ['error', { commonjs: true, caseSensitive: true }],
45
- // ensure named imports coupled with named exports
46
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
47
- 'import/named': 'error',
48
- // ensure default import coupled with default export
49
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it
50
- 'import/default': 'off',
51
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/namespace.md
52
- 'import/namespace': 'off',
53
- // Helpful warnings:
54
- // disallow invalid exports, e.g. multiple defaults
55
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/export.md
56
- 'import/export': 'error',
57
- // do not allow a default import name to match a named export
58
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md
59
- 'import/no-named-as-default': 'error',
60
- // warn on accessing default export property names that are also named exports
61
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
62
- 'import/no-named-as-default-member': 'error',
63
- // disallow use of jsdoc-marked-deprecated imports
64
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md
65
- 'import/no-deprecated': 'off',
66
- // Forbid the use of extraneous packages
67
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
68
- // paths are treated both as absolute paths, and relative to process.cwd()
69
- 'import/no-extraneous-dependencies': [
70
- 'error',
71
- {
72
- devDependencies: [
73
- 'test/**', // tape, common npm pattern
74
- 'tests/**', // also common npm pattern
75
- 'spec/**', // mocha, rspec-like pattern
76
- '**/__tests__/**', // jest pattern
77
- '**/__mocks__/**', // jest pattern
78
- 'test.{js,jsx}', // repos with a single test file
79
- 'test-*.{js,jsx}', // repos with multiple top-level test files
80
- '**/*{.,_}{test,spec}.{js,jsx}', // tests where the extension or filename suffix denotes that it is a test
81
- '**/jest.config.js', // jest config
82
- '**/jest.setup.js', // jest setup
83
- '**/vue.config.js', // vue-cli config
84
- '**/webpack.config.js', // webpack config
85
- '**/webpack.config.*.js', // webpack config
86
- '**/rollup.config.js', // rollup config
87
- '**/rollup.config.*.js', // rollup config
88
- '**/gulpfile.js', // gulp config
89
- '**/gulpfile.*.js', // gulp config
90
- '**/Gruntfile{,.js}', // grunt config
91
- '**/protractor.conf.js', // protractor config
92
- '**/protractor.conf.*.js', // protractor config
93
- '**/karma.conf.js', // karma config
94
- '**/.eslintrc.js', // eslint config
95
- ],
96
- optionalDependencies: false,
97
- },
98
- ],
99
- // Forbid mutable exports
100
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md
101
- 'import/no-mutable-exports': 'error',
102
- // Module systems:
103
- // disallow require()
104
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
105
- 'import/no-commonjs': 'off',
106
- // disallow AMD require/define
107
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-amd.md
108
- 'import/no-amd': 'error',
109
- // No Node.js builtin modules
110
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md
111
- // TODO: enable?
112
- 'import/no-nodejs-modules': 'off',
113
- // Style guide:
114
- // disallow non-import statements appearing before import statements
115
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/first.md
116
- 'import/first': 'error',
117
- // disallow non-import statements appearing before import statements
118
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/imports-first.md
119
- // deprecated: use `import/first`
120
- 'import/imports-first': 'off',
121
- // disallow duplicate imports
122
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
123
- 'import/no-duplicates': 'error',
124
- // disallow namespace imports
125
- // TODO: enable?
126
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-namespace.md
127
- 'import/no-namespace': 'off',
128
- // Ensure consistent use of file extension within the import path
129
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/extensions.md
130
- 'import/extensions': [
131
- 'error',
132
- 'ignorePackages',
133
- {
134
- js: 'never',
135
- mjs: 'never',
136
- jsx: 'never',
137
- },
138
- ],
139
- // ensure absolute imports are above relative imports and that unassigned imports are ignored
140
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/order.md
141
- // TODO: enforce a stricter convention in module import order?
142
- 'import/order': ['error', { groups: [['builtin', 'external', 'internal']] }],
143
- // Require a newline after the last import/require in a group
144
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
145
- 'import/newline-after-import': 'error',
146
- // Require modules with a single export to use a default export
147
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
148
- 'import/prefer-default-export': 'error',
149
- // Restrict which files can be imported in a given folder
150
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
151
- 'import/no-restricted-paths': 'off',
152
- // Forbid modules to have too many dependencies
153
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
154
- 'import/max-dependencies': ['off', { max: 10 }],
155
- // Forbid import of modules using absolute paths
156
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md
157
- 'import/no-absolute-path': 'error',
158
- // Forbid require() calls with expressions
159
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
160
- 'import/no-dynamic-require': 'error',
161
- // prevent importing the submodules of other modules
162
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md
163
- 'import/no-internal-modules': [
164
- 'off',
165
- {
166
- allow: [],
167
- },
168
- ],
169
- // Warn if a module could be mistakenly parsed as a script by a consumer
170
- // leveraging Unambiguous JavaScript Grammar
171
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/unambiguous.md
172
- // this should not be enabled until this proposal has at least been *presented* to TC39.
173
- // At the moment, it's not a thing.
174
- 'import/unambiguous': 'off',
175
- // Forbid Webpack loader syntax in imports
176
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md
177
- 'import/no-webpack-loader-syntax': 'error',
178
- // Prevent unassigned imports
179
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
180
- // importing for side effects is perfectly acceptable, if you need side effects.
181
- 'import/no-unassigned-import': 'off',
182
- // Prevent importing the default as if it were named
183
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-default.md
184
- 'import/no-named-default': 'error',
185
- // Reports if a module's default export is unnamed
186
- // https://github.com/import-js/eslint-plugin-import/blob/d9b712ac7fd1fddc391f7b234827925c160d956f/docs/rules/no-anonymous-default-export.md
187
- 'import/no-anonymous-default-export': [
188
- 'off',
189
- {
190
- allowArray: false,
191
- allowArrowFunction: false,
192
- allowAnonymousClass: false,
193
- allowAnonymousFunction: false,
194
- allowLiteral: false,
195
- allowObject: false,
196
- },
197
- ],
198
- // This rule enforces that all exports are declared at the bottom of the file.
199
- // https://github.com/import-js/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md
200
- // TODO: enable?
201
- 'import/exports-last': 'off',
202
- // Reports when named exports are not grouped together in a single export declaration
203
- // or when multiple assignments to CommonJS module.exports or exports object are present
204
- // in a single file.
205
- // https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md
206
- 'import/group-exports': 'off',
207
- // forbid default exports. this is a terrible rule, do not use it.
208
- // https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-default-export.md
209
- 'import/no-default-export': 'off',
210
- // Prohibit named exports. this is a terrible rule, do not use it.
211
- // https://github.com/import-js/eslint-plugin-import/blob/1ec80fa35fa1819e2d35a70e68fb6a149fb57c5e/docs/rules/no-named-export.md
212
- 'import/no-named-export': 'off',
213
- // Forbid a module from importing itself
214
- // https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-self-import.md
215
- 'import/no-self-import': 'error',
216
- // Forbid cyclical dependencies between modules
217
- // https://github.com/import-js/eslint-plugin-import/blob/d81f48a2506182738409805f5272eff4d77c9348/docs/rules/no-cycle.md
218
- 'import/no-cycle': ['error', { maxDepth: '∞' }],
219
- // Ensures that there are no useless path segments
220
- // https://github.com/import-js/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/no-useless-path-segments.md
221
- 'import/no-useless-path-segments': ['error', { commonjs: true }],
222
- // dynamic imports require a leading comment with a webpackChunkName
223
- // https://github.com/import-js/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/dynamic-import-chunkname.md
224
- 'import/dynamic-import-chunkname': [
225
- 'off',
226
- {
227
- importFunctions: [],
228
- webpackChunknameFormat: '[0-9a-zA-Z-_/.]+',
229
- },
230
- ],
231
- // Use this rule to prevent imports to folders in relative parent paths.
232
- // https://github.com/import-js/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
233
- 'import/no-relative-parent-imports': 'off',
234
- // Reports modules without any exports, or with unused exports
235
- // https://github.com/import-js/eslint-plugin-import/blob/f63dd261809de6883b13b6b5b960e6d7f42a7813/docs/rules/no-unused-modules.md
236
- // TODO: enable once it supports CJS
237
- 'import/no-unused-modules': [
238
- 'off',
239
- {
240
- ignoreExports: [],
241
- missingExports: true,
242
- unusedExports: true,
243
- },
244
- ],
245
- // Reports the use of import declarations with CommonJS exports in any module except for the main module.
246
- // https://github.com/import-js/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-import-module-exports.md
247
- 'import/no-import-module-exports': [
248
- 'error',
249
- {
250
- exceptions: [],
251
- },
252
- ],
253
- // Use this rule to prevent importing packages through relative paths.
254
- // https://github.com/import-js/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-relative-packages.md
255
- 'import/no-relative-packages': 'error',
256
- // enforce a consistent style for type specifiers (inline or top-level)
257
- // https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/consistent-type-specifier-style.md
258
- // TODO, semver-major: enable (just in case)
259
- 'import/consistent-type-specifier-style': ['off', 'prefer-inline'],
260
- // Reports the use of empty named import blocks.
261
- // https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/no-empty-named-blocks.md
262
- // TODO, semver-minor: enable
263
- 'import/no-empty-named-blocks': 'off',
264
- } });
265
- var templateObject_1;
@@ -1,90 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- languageOptions: {
4
- globals: {
5
- AbortController: false;
6
- AbortSignal: false;
7
- atob: false;
8
- Blob: false;
9
- BroadcastChannel: false;
10
- btoa: false;
11
- Buffer: false;
12
- ByteLengthQueuingStrategy: false;
13
- clearImmediate: false;
14
- clearInterval: false;
15
- clearTimeout: false;
16
- CloseEvent: false;
17
- CompressionStream: false;
18
- console: false;
19
- CountQueuingStrategy: false;
20
- crypto: false;
21
- Crypto: false;
22
- CryptoKey: false;
23
- CustomEvent: false;
24
- DecompressionStream: false;
25
- DOMException: false;
26
- Event: false;
27
- EventTarget: false;
28
- fetch: false;
29
- File: false;
30
- FormData: false;
31
- global: false;
32
- Headers: false;
33
- MessageChannel: false;
34
- MessageEvent: false;
35
- MessagePort: false;
36
- navigator: false;
37
- Navigator: false;
38
- performance: false;
39
- Performance: false;
40
- PerformanceEntry: false;
41
- PerformanceMark: false;
42
- PerformanceMeasure: false;
43
- PerformanceObserver: false;
44
- PerformanceObserverEntryList: false;
45
- PerformanceResourceTiming: false;
46
- process: false;
47
- queueMicrotask: false;
48
- ReadableByteStreamController: false;
49
- ReadableStream: false;
50
- ReadableStreamBYOBReader: false;
51
- ReadableStreamBYOBRequest: false;
52
- ReadableStreamDefaultController: false;
53
- ReadableStreamDefaultReader: false;
54
- Request: false;
55
- Response: false;
56
- setImmediate: false;
57
- setInterval: false;
58
- setTimeout: false;
59
- structuredClone: false;
60
- SubtleCrypto: false;
61
- TextDecoder: false;
62
- TextDecoderStream: false;
63
- TextEncoder: false;
64
- TextEncoderStream: false;
65
- TransformStream: false;
66
- TransformStreamDefaultController: false;
67
- URL: false;
68
- URLSearchParams: false;
69
- WebAssembly: false;
70
- WebSocket: false;
71
- WritableStream: false;
72
- WritableStreamDefaultController: false;
73
- WritableStreamDefaultWriter: false;
74
- };
75
- };
76
- rules: {
77
- 'callback-return': "off";
78
- 'global-require': "error";
79
- 'handle-callback-err': "off";
80
- 'no-buffer-constructor': "error";
81
- 'no-mixed-requires': ["off", boolean];
82
- 'no-new-require': "error";
83
- 'no-path-concat': "error";
84
- 'no-process-env': "off";
85
- 'no-process-exit': "off";
86
- 'no-restricted-modules': "off";
87
- 'no-sync': "off";
88
- };
89
- };
90
- export default _default;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- var globals_1 = __importDefault(require("globals"));
18
- exports.default = {
19
- name: 'airbnb/config/node',
20
- languageOptions: {
21
- globals: __assign({}, globals_1.default.nodeBuiltin),
22
- },
23
- rules: {
24
- // enforce return after a callback
25
- 'callback-return': 'off',
26
- // require all requires be top-level
27
- // https://eslint.org/docs/rules/global-require
28
- 'global-require': 'error',
29
- // enforces error handling in callbacks (node environment)
30
- 'handle-callback-err': 'off',
31
- // disallow use of the Buffer() constructor
32
- // https://eslint.org/docs/rules/no-buffer-constructor
33
- 'no-buffer-constructor': 'error',
34
- // disallow mixing regular variable and require declarations
35
- 'no-mixed-requires': ['off', false],
36
- // disallow use of new operator with the require function
37
- 'no-new-require': 'error',
38
- // disallow string concatenation with __dirname and __filename
39
- // https://eslint.org/docs/rules/no-path-concat
40
- 'no-path-concat': 'error',
41
- // disallow use of process.env
42
- 'no-process-env': 'off',
43
- // disallow process.exit()
44
- 'no-process-exit': 'off',
45
- // restrict usage of specified node modules
46
- 'no-restricted-modules': 'off',
47
- // disallow use of synchronous methods (off by default)
48
- 'no-sync': 'off',
49
- },
50
- };
@@ -1,117 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- plugins: {
4
- 'jsx-a11y': any;
5
- };
6
- languageOptions: {
7
- parserOptions: {
8
- ecmaFeatures: {
9
- jsx: true;
10
- };
11
- };
12
- };
13
- rules: {
14
- 'jsx-a11y/accessible-emoji': "off";
15
- 'jsx-a11y/alt-text': ["error", {
16
- elements: string[];
17
- img: never[];
18
- object: never[];
19
- area: never[];
20
- 'input[type="image"]': never[];
21
- }];
22
- 'jsx-a11y/anchor-has-content': ["error", {
23
- components: never[];
24
- }];
25
- 'jsx-a11y/anchor-is-valid': ["error", {
26
- components: string[];
27
- specialLink: string[];
28
- aspects: string[];
29
- }];
30
- 'jsx-a11y/aria-activedescendant-has-tabindex': "error";
31
- 'jsx-a11y/aria-props': "error";
32
- 'jsx-a11y/aria-proptypes': "error";
33
- 'jsx-a11y/aria-role': ["error", {
34
- ignoreNonDOM: boolean;
35
- }];
36
- 'jsx-a11y/aria-unsupported-elements': "error";
37
- 'jsx-a11y/autocomplete-valid': ["off", {
38
- inputComponents: never[];
39
- }];
40
- 'jsx-a11y/click-events-have-key-events': "error";
41
- 'jsx-a11y/control-has-associated-label': ["error", {
42
- labelAttributes: string[];
43
- controlComponents: never[];
44
- ignoreElements: string[];
45
- ignoreRoles: string[];
46
- depth: number;
47
- }];
48
- 'jsx-a11y/heading-has-content': ["error", {
49
- components: string[];
50
- }];
51
- 'jsx-a11y/html-has-lang': "error";
52
- 'jsx-a11y/iframe-has-title': "error";
53
- 'jsx-a11y/img-redundant-alt': "error";
54
- 'jsx-a11y/interactive-supports-focus': "error";
55
- 'jsx-a11y/label-has-associated-control': ["error", {
56
- labelComponents: never[];
57
- labelAttributes: never[];
58
- controlComponents: never[];
59
- assert: string;
60
- depth: number;
61
- }];
62
- 'jsx-a11y/lang': "error";
63
- 'jsx-a11y/media-has-caption': ["error", {
64
- audio: never[];
65
- video: never[];
66
- track: never[];
67
- }];
68
- 'jsx-a11y/mouse-events-have-key-events': "error";
69
- 'jsx-a11y/no-access-key': "error";
70
- 'jsx-a11y/no-autofocus': ["error", {
71
- ignoreNonDOM: boolean;
72
- }];
73
- 'jsx-a11y/no-distracting-elements': ["error", {
74
- elements: string[];
75
- }];
76
- 'jsx-a11y/no-interactive-element-to-noninteractive-role': ["error", {
77
- tr: string[];
78
- }];
79
- 'jsx-a11y/no-noninteractive-element-interactions': ["error", {
80
- handlers: string[];
81
- }];
82
- 'jsx-a11y/no-noninteractive-element-to-interactive-role': ["error", {
83
- ul: string[];
84
- ol: string[];
85
- li: string[];
86
- table: string[];
87
- td: string[];
88
- }];
89
- 'jsx-a11y/no-noninteractive-tabindex': ["error", {
90
- tags: never[];
91
- roles: string[];
92
- allowExpressionValues: boolean;
93
- }];
94
- 'jsx-a11y/no-onchange': "off";
95
- 'jsx-a11y/no-redundant-roles': ["error", {
96
- nav: string[];
97
- }];
98
- 'jsx-a11y/no-static-element-interactions': ["error", {
99
- handlers: string[];
100
- }];
101
- 'jsx-a11y/role-has-required-aria-props': "error";
102
- 'jsx-a11y/role-supports-aria-props': "error";
103
- 'jsx-a11y/scope': "error";
104
- 'jsx-a11y/tabindex-no-positive': "error";
105
- 'jsx-a11y/label-has-for': ["off", {
106
- components: never[];
107
- required: {
108
- every: string[];
109
- };
110
- allowChildren: boolean;
111
- }];
112
- 'jsx-a11y/anchor-ambiguous-text': "off";
113
- 'jsx-a11y/no-aria-hidden-on-focusable': "off";
114
- 'jsx-a11y/prefer-tag-over-role': "off";
115
- };
116
- };
117
- export default _default;