eslint-config-airbnb-extended 0.1.0 → 0.1.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.
Files changed (60) hide show
  1. package/dist/base/index.d.ts +841 -0
  2. package/dist/base/index.js +23 -0
  3. package/dist/base/recommended.d.ts +2 -0
  4. package/dist/base/recommended.js +19 -0
  5. package/dist/index.d.ts +2654 -0
  6. package/dist/index.js +29 -0
  7. package/dist/react/index.d.ts +1798 -0
  8. package/dist/react/index.js +13 -0
  9. package/dist/react/recommended.d.ts +2 -0
  10. package/dist/react/recommended.js +8 -0
  11. package/dist/rules/best-practices.d.ts +177 -0
  12. package/dist/rules/best-practices.js +379 -0
  13. package/dist/rules/errors.d.ts +69 -0
  14. package/dist/rules/errors.js +151 -0
  15. package/dist/rules/es6.d.ts +146 -0
  16. package/dist/rules/es6.js +192 -0
  17. package/dist/rules/imports.d.ts +157 -0
  18. package/dist/rules/imports.js +256 -0
  19. package/dist/rules/node.d.ts +90 -0
  20. package/dist/rules/node.js +39 -0
  21. package/dist/rules/react-a11y.d.ts +117 -0
  22. package/dist/rules/react-a11y.js +255 -0
  23. package/dist/rules/react-hooks.d.ts +19 -0
  24. package/dist/rules/react-hooks.js +57 -0
  25. package/dist/rules/react.d.ts +1664 -0
  26. package/dist/rules/react.js +583 -0
  27. package/dist/rules/strict.d.ts +7 -0
  28. package/dist/rules/strict.js +9 -0
  29. package/dist/rules/style.d.ts +320 -0
  30. package/dist/rules/style.js +530 -0
  31. package/dist/rules/typescript.d.ts +4 -0
  32. package/dist/rules/typescript.js +264 -0
  33. package/dist/rules/variables.d.ts +35 -0
  34. package/dist/rules/variables.js +65 -0
  35. package/dist/typescript/index.d.ts +5 -0
  36. package/dist/typescript/index.js +9 -0
  37. package/dist/typescript/recommended.d.ts +6 -0
  38. package/dist/typescript/recommended.js +62 -0
  39. package/package.json +6 -7
  40. package/CHANGELOG.md +0 -7
  41. package/base/index.ts +0 -21
  42. package/base/recommended.ts +0 -17
  43. package/index.ts +0 -25
  44. package/react/index.ts +0 -11
  45. package/react/recommended.ts +0 -6
  46. package/rules/best-practices.ts +0 -462
  47. package/rules/errors.ts +0 -199
  48. package/rules/es6.ts +0 -224
  49. package/rules/imports.ts +0 -308
  50. package/rules/node.ts +0 -49
  51. package/rules/react-a11y.ts +0 -295
  52. package/rules/react-hooks.ts +0 -26
  53. package/rules/react.ts +0 -692
  54. package/rules/strict.ts +0 -9
  55. package/rules/style.ts +0 -632
  56. package/rules/typescript.ts +0 -312
  57. package/rules/variables.ts +0 -76
  58. package/tsconfig.json +0 -22
  59. package/typescript/index.ts +0 -7
  60. package/typescript/recommended.ts +0 -30
@@ -0,0 +1,256 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.importConfig = void 0;
7
+ const globals_1 = __importDefault(require("globals"));
8
+ // @ts-expect-error eslint-plugin-import not working in import
9
+ // eslint-disable-next-line @typescript-eslint/no-require-imports,unicorn/prefer-module
10
+ const EsLintPluginImport = require('eslint-plugin-import');
11
+ exports.importConfig = {
12
+ name: 'airbnb/config/imports',
13
+ languageOptions: {
14
+ globals: Object.assign({}, globals_1.default.es2015),
15
+ parserOptions: {
16
+ ecmaVersion: 6,
17
+ sourceType: 'module',
18
+ },
19
+ },
20
+ settings: {
21
+ 'import/resolver': {
22
+ node: {
23
+ extensions: ['.js', '.cjs', '.mjs', '.json'],
24
+ },
25
+ },
26
+ 'import/extensions': ['.js', '.cjs', '.mjs', '.jsx'],
27
+ 'import/core-modules': [],
28
+ 'import/ignore': ['node_modules', String.raw `\.(coffee|scss|css|less|hbs|svg|json)$`],
29
+ },
30
+ rules: {
31
+ // Static analysis:
32
+ // ensure imports point to files/modules that can be resolved
33
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
34
+ 'import/no-unresolved': ['error', { commonjs: true, caseSensitive: true }],
35
+ // ensure named imports coupled with named exports
36
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
37
+ 'import/named': 'error',
38
+ // ensure default import coupled with default export
39
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it
40
+ 'import/default': 'off',
41
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/namespace.md
42
+ 'import/namespace': 'off',
43
+ // Helpful warnings:
44
+ // disallow invalid exports, e.g. multiple defaults
45
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/export.md
46
+ 'import/export': 'error',
47
+ // do not allow a default import name to match a named export
48
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md
49
+ 'import/no-named-as-default': 'error',
50
+ // warn on accessing default export property names that are also named exports
51
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
52
+ 'import/no-named-as-default-member': 'error',
53
+ // disallow use of jsdoc-marked-deprecated imports
54
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md
55
+ 'import/no-deprecated': 'off',
56
+ // Forbid the use of extraneous packages
57
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
58
+ // paths are treated both as absolute paths, and relative to process.cwd()
59
+ 'import/no-extraneous-dependencies': [
60
+ 'error',
61
+ {
62
+ devDependencies: [
63
+ 'test/**', // tape, common npm pattern
64
+ 'tests/**', // also common npm pattern
65
+ 'spec/**', // mocha, rspec-like pattern
66
+ '**/__tests__/**', // jest pattern
67
+ '**/__mocks__/**', // jest pattern
68
+ 'test.{js,jsx}', // repos with a single test file
69
+ 'test-*.{js,jsx}', // repos with multiple top-level test files
70
+ '**/*{.,_}{test,spec}.{js,jsx}', // tests where the extension or filename suffix denotes that it is a test
71
+ '**/jest.config.js', // jest config
72
+ '**/jest.setup.js', // jest setup
73
+ '**/vue.config.js', // vue-cli config
74
+ '**/webpack.config.js', // webpack config
75
+ '**/webpack.config.*.js', // webpack config
76
+ '**/rollup.config.js', // rollup config
77
+ '**/rollup.config.*.js', // rollup config
78
+ '**/gulpfile.js', // gulp config
79
+ '**/gulpfile.*.js', // gulp config
80
+ '**/Gruntfile{,.js}', // grunt config
81
+ '**/protractor.conf.js', // protractor config
82
+ '**/protractor.conf.*.js', // protractor config
83
+ '**/karma.conf.js', // karma config
84
+ '**/.eslintrc.js', // eslint config
85
+ ],
86
+ optionalDependencies: false,
87
+ },
88
+ ],
89
+ // Forbid mutable exports
90
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md
91
+ 'import/no-mutable-exports': 'error',
92
+ // Module systems:
93
+ // disallow require()
94
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
95
+ 'import/no-commonjs': 'off',
96
+ // disallow AMD require/define
97
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-amd.md
98
+ 'import/no-amd': 'error',
99
+ // No Node.js builtin modules
100
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md
101
+ // TODO: enable?
102
+ 'import/no-nodejs-modules': 'off',
103
+ // Style guide:
104
+ // disallow non-import statements appearing before import statements
105
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/first.md
106
+ 'import/first': 'error',
107
+ // disallow non-import statements appearing before import statements
108
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/imports-first.md
109
+ // deprecated: use `import/first`
110
+ 'import/imports-first': 'off',
111
+ // disallow duplicate imports
112
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
113
+ 'import/no-duplicates': 'error',
114
+ // disallow namespace imports
115
+ // TODO: enable?
116
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-namespace.md
117
+ 'import/no-namespace': 'off',
118
+ // Ensure consistent use of file extension within the import path
119
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/extensions.md
120
+ 'import/extensions': [
121
+ 'error',
122
+ 'ignorePackages',
123
+ {
124
+ js: 'never',
125
+ mjs: 'never',
126
+ jsx: 'never',
127
+ },
128
+ ],
129
+ // ensure absolute imports are above relative imports and that unassigned imports are ignored
130
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/order.md
131
+ // TODO: enforce a stricter convention in module import order?
132
+ 'import/order': ['error', { groups: [['builtin', 'external', 'internal']] }],
133
+ // Require a newline after the last import/require in a group
134
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
135
+ 'import/newline-after-import': 'error',
136
+ // Require modules with a single export to use a default export
137
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
138
+ 'import/prefer-default-export': 'error',
139
+ // Restrict which files can be imported in a given folder
140
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
141
+ 'import/no-restricted-paths': 'off',
142
+ // Forbid modules to have too many dependencies
143
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
144
+ 'import/max-dependencies': ['off', { max: 10 }],
145
+ // Forbid import of modules using absolute paths
146
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md
147
+ 'import/no-absolute-path': 'error',
148
+ // Forbid require() calls with expressions
149
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
150
+ 'import/no-dynamic-require': 'error',
151
+ // prevent importing the submodules of other modules
152
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md
153
+ 'import/no-internal-modules': [
154
+ 'off',
155
+ {
156
+ allow: [],
157
+ },
158
+ ],
159
+ // Warn if a module could be mistakenly parsed as a script by a consumer
160
+ // leveraging Unambiguous JavaScript Grammar
161
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/unambiguous.md
162
+ // this should not be enabled until this proposal has at least been *presented* to TC39.
163
+ // At the moment, it's not a thing.
164
+ 'import/unambiguous': 'off',
165
+ // Forbid Webpack loader syntax in imports
166
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md
167
+ 'import/no-webpack-loader-syntax': 'error',
168
+ // Prevent unassigned imports
169
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
170
+ // importing for side effects is perfectly acceptable, if you need side effects.
171
+ 'import/no-unassigned-import': 'off',
172
+ // Prevent importing the default as if it were named
173
+ // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-default.md
174
+ 'import/no-named-default': 'error',
175
+ // Reports if a module's default export is unnamed
176
+ // https://github.com/import-js/eslint-plugin-import/blob/d9b712ac7fd1fddc391f7b234827925c160d956f/docs/rules/no-anonymous-default-export.md
177
+ 'import/no-anonymous-default-export': [
178
+ 'off',
179
+ {
180
+ allowArray: false,
181
+ allowArrowFunction: false,
182
+ allowAnonymousClass: false,
183
+ allowAnonymousFunction: false,
184
+ allowLiteral: false,
185
+ allowObject: false,
186
+ },
187
+ ],
188
+ // This rule enforces that all exports are declared at the bottom of the file.
189
+ // https://github.com/import-js/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md
190
+ // TODO: enable?
191
+ 'import/exports-last': 'off',
192
+ // Reports when named exports are not grouped together in a single export declaration
193
+ // or when multiple assignments to CommonJS module.exports or exports object are present
194
+ // in a single file.
195
+ // https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md
196
+ 'import/group-exports': 'off',
197
+ // forbid default exports. this is a terrible rule, do not use it.
198
+ // https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-default-export.md
199
+ 'import/no-default-export': 'off',
200
+ // Prohibit named exports. this is a terrible rule, do not use it.
201
+ // https://github.com/import-js/eslint-plugin-import/blob/1ec80fa35fa1819e2d35a70e68fb6a149fb57c5e/docs/rules/no-named-export.md
202
+ 'import/no-named-export': 'off',
203
+ // Forbid a module from importing itself
204
+ // https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-self-import.md
205
+ 'import/no-self-import': 'error',
206
+ // Forbid cyclical dependencies between modules
207
+ // https://github.com/import-js/eslint-plugin-import/blob/d81f48a2506182738409805f5272eff4d77c9348/docs/rules/no-cycle.md
208
+ 'import/no-cycle': ['error', { maxDepth: '∞' }],
209
+ // Ensures that there are no useless path segments
210
+ // https://github.com/import-js/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/no-useless-path-segments.md
211
+ 'import/no-useless-path-segments': ['error', { commonjs: true }],
212
+ // dynamic imports require a leading comment with a webpackChunkName
213
+ // https://github.com/import-js/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/dynamic-import-chunkname.md
214
+ 'import/dynamic-import-chunkname': [
215
+ 'off',
216
+ {
217
+ importFunctions: [],
218
+ webpackChunknameFormat: '[0-9a-zA-Z-_/.]+',
219
+ },
220
+ ],
221
+ // Use this rule to prevent imports to folders in relative parent paths.
222
+ // https://github.com/import-js/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
223
+ 'import/no-relative-parent-imports': 'off',
224
+ // Reports modules without any exports, or with unused exports
225
+ // https://github.com/import-js/eslint-plugin-import/blob/f63dd261809de6883b13b6b5b960e6d7f42a7813/docs/rules/no-unused-modules.md
226
+ // TODO: enable once it supports CJS
227
+ 'import/no-unused-modules': [
228
+ 'off',
229
+ {
230
+ ignoreExports: [],
231
+ missingExports: true,
232
+ unusedExports: true,
233
+ },
234
+ ],
235
+ // Reports the use of import declarations with CommonJS exports in any module except for the main module.
236
+ // https://github.com/import-js/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-import-module-exports.md
237
+ 'import/no-import-module-exports': [
238
+ 'error',
239
+ {
240
+ exceptions: [],
241
+ },
242
+ ],
243
+ // Use this rule to prevent importing packages through relative paths.
244
+ // https://github.com/import-js/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-relative-packages.md
245
+ 'import/no-relative-packages': 'error',
246
+ // enforce a consistent style for type specifiers (inline or top-level)
247
+ // https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/consistent-type-specifier-style.md
248
+ // TODO, semver-major: enable (just in case)
249
+ 'import/consistent-type-specifier-style': ['off', 'prefer-inline'],
250
+ // Reports the use of empty named import blocks.
251
+ // https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/no-empty-named-blocks.md
252
+ // TODO, semver-minor: enable
253
+ 'import/no-empty-named-blocks': 'off',
254
+ },
255
+ };
256
+ exports.default = Object.assign(Object.assign({}, EsLintPluginImport.flatConfigs.recommended), exports.importConfig);
@@ -0,0 +1,90 @@
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;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const globals_1 = __importDefault(require("globals"));
7
+ exports.default = {
8
+ name: 'airbnb/config/node',
9
+ languageOptions: {
10
+ globals: Object.assign({}, globals_1.default.nodeBuiltin),
11
+ },
12
+ rules: {
13
+ // enforce return after a callback
14
+ 'callback-return': 'off',
15
+ // require all requires be top-level
16
+ // https://eslint.org/docs/rules/global-require
17
+ 'global-require': 'error',
18
+ // enforces error handling in callbacks (node environment)
19
+ 'handle-callback-err': 'off',
20
+ // disallow use of the Buffer() constructor
21
+ // https://eslint.org/docs/rules/no-buffer-constructor
22
+ 'no-buffer-constructor': 'error',
23
+ // disallow mixing regular variable and require declarations
24
+ 'no-mixed-requires': ['off', false],
25
+ // disallow use of new operator with the require function
26
+ 'no-new-require': 'error',
27
+ // disallow string concatenation with __dirname and __filename
28
+ // https://eslint.org/docs/rules/no-path-concat
29
+ 'no-path-concat': 'error',
30
+ // disallow use of process.env
31
+ 'no-process-env': 'off',
32
+ // disallow process.exit()
33
+ 'no-process-exit': 'off',
34
+ // restrict usage of specified node modules
35
+ 'no-restricted-modules': 'off',
36
+ // disallow use of synchronous methods (off by default)
37
+ 'no-sync': 'off',
38
+ },
39
+ };
@@ -0,0 +1,117 @@
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;