eslint-config-airbnb-extended 2.3.3 → 3.0.0-beta-3
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/README.md +3 -3
- package/dist/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/_virtual/rolldown_runtime.js +1 -0
- package/dist/configs/base/config.cjs +1 -0
- package/dist/configs/base/config.js +1 -26
- package/dist/configs/base/configExtended.cjs +1 -0
- package/dist/configs/base/configExtended.js +1 -9
- package/dist/configs/base/index.cjs +1 -0
- package/dist/configs/base/index.js +1 -18
- package/dist/configs/base/recommended.cjs +1 -0
- package/dist/configs/base/recommended.js +1 -12
- package/dist/configs/base/typescript.cjs +1 -0
- package/dist/configs/base/typescript.js +1 -12
- package/dist/configs/index.cjs +1 -0
- package/dist/configs/index.js +1 -21
- package/dist/configs/next/config.cjs +1 -0
- package/dist/configs/next/config.js +1 -12
- package/dist/configs/next/index.cjs +1 -0
- package/dist/configs/next/index.js +1 -18
- package/dist/configs/next/recommended.cjs +1 -0
- package/dist/configs/next/recommended.js +1 -14
- package/dist/configs/next/typescript.cjs +1 -0
- package/dist/configs/next/typescript.js +1 -8
- package/dist/configs/node/config.cjs +1 -0
- package/dist/configs/node/config.js +1 -16
- package/dist/configs/node/index.cjs +1 -0
- package/dist/configs/node/index.js +1 -12
- package/dist/configs/node/recommended.cjs +1 -0
- package/dist/configs/node/recommended.js +1 -12
- package/dist/configs/react/config.cjs +1 -0
- package/dist/configs/react/config.js +1 -16
- package/dist/configs/react/configExtended.cjs +1 -0
- package/dist/configs/react/configExtended.js +1 -9
- package/dist/configs/react/index.cjs +1 -0
- package/dist/configs/react/index.js +1 -18
- package/dist/configs/react/recommended.cjs +1 -0
- package/dist/configs/react/recommended.js +1 -12
- package/dist/configs/react/typescript.cjs +1 -0
- package/dist/configs/react/typescript.js +1 -8
- package/dist/configs/typescript/config.cjs +1 -0
- package/dist/configs/typescript/config.js +1 -18
- package/dist/configs/typescript/configExtended.cjs +1 -0
- package/dist/configs/typescript/configExtended.js +1 -9
- package/dist/extensions/base/index.cjs +1 -0
- package/dist/extensions/base/index.js +1 -15
- package/dist/extensions/base/recommended.cjs +1 -0
- package/dist/extensions/base/recommended.js +1 -31
- package/dist/extensions/base/typescript.cjs +1 -0
- package/dist/extensions/base/typescript.js +1 -19
- package/dist/extensions/index.cjs +1 -0
- package/dist/extensions/index.js +1 -21
- package/dist/extensions/next/index.cjs +1 -0
- package/dist/extensions/next/index.js +1 -12
- package/dist/extensions/next/recommended.cjs +1 -0
- package/dist/extensions/next/recommended.js +1 -21
- package/dist/extensions/node/index.cjs +1 -0
- package/dist/extensions/node/index.js +1 -12
- package/dist/extensions/node/recommended.cjs +1 -0
- package/dist/extensions/node/recommended.js +1 -39
- package/dist/extensions/react/index.cjs +1 -0
- package/dist/extensions/react/index.js +1 -15
- package/dist/extensions/react/recommended.cjs +1 -0
- package/dist/extensions/react/recommended.js +1 -72
- package/dist/extensions/react/typescript.cjs +1 -0
- package/dist/extensions/react/typescript.js +1 -29
- package/dist/helpers/getDevDepsList.cjs +1 -0
- package/dist/helpers/getDevDepsList.js +1 -32
- package/dist/helpers/getImportSettings.cjs +1 -0
- package/dist/helpers/getImportSettings.js +1 -42
- package/dist/helpers/getStylisticLegacyConfig.cjs +1 -0
- package/dist/helpers/getStylisticLegacyConfig.js +1 -29
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +37 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +1 -18
- package/dist/legacy/configs/base/config.cjs +1 -0
- package/dist/legacy/configs/base/config.js +1 -24
- package/dist/legacy/configs/base/index.cjs +1 -0
- package/dist/legacy/configs/base/index.js +1 -18
- package/dist/legacy/configs/base/legacy.cjs +1 -0
- package/dist/legacy/configs/base/legacy.js +1 -46
- package/dist/legacy/configs/base/recommended.cjs +1 -0
- package/dist/legacy/configs/base/recommended.js +1 -21
- package/dist/legacy/configs/base/typescript.cjs +1 -0
- package/dist/legacy/configs/base/typescript.js +1 -8
- package/dist/legacy/configs/index.cjs +1 -0
- package/dist/legacy/configs/index.js +1 -15
- package/dist/legacy/configs/react/base.cjs +1 -0
- package/dist/legacy/configs/react/base.js +1 -8
- package/dist/legacy/configs/react/config.cjs +1 -0
- package/dist/legacy/configs/react/config.js +1 -14
- package/dist/legacy/configs/react/hooks.cjs +1 -0
- package/dist/legacy/configs/react/hooks.js +1 -8
- package/dist/legacy/configs/react/index.cjs +1 -0
- package/dist/legacy/configs/react/index.js +1 -24
- package/dist/legacy/configs/react/legacy.cjs +1 -0
- package/dist/legacy/configs/react/legacy.js +1 -8
- package/dist/legacy/configs/react/recommended.cjs +1 -0
- package/dist/legacy/configs/react/recommended.js +1 -13
- package/dist/legacy/configs/react/typescript.cjs +1 -0
- package/dist/legacy/configs/react/typescript.js +1 -47
- package/dist/legacy/configs/typescript/config.cjs +1 -0
- package/dist/legacy/configs/typescript/config.js +1 -14
- package/dist/legacy/rules/best-practices.cjs +1 -0
- package/dist/legacy/rules/best-practices.js +1 -433
- package/dist/legacy/rules/errors.cjs +1 -0
- package/dist/legacy/rules/errors.js +1 -167
- package/dist/legacy/rules/es6.cjs +1 -0
- package/dist/legacy/rules/es6.js +1 -206
- package/dist/legacy/rules/imports.cjs +1 -0
- package/dist/legacy/rules/imports.js +1 -258
- package/dist/legacy/rules/index.cjs +1 -0
- package/dist/legacy/rules/index.js +1 -18
- package/dist/legacy/rules/node.cjs +1 -0
- package/dist/legacy/rules/node.js +1 -35
- package/dist/legacy/rules/react/react.cjs +1 -0
- package/dist/legacy/rules/react/react.js +1 -663
- package/dist/legacy/rules/react/reactHooks.cjs +1 -0
- package/dist/legacy/rules/react/reactHooks.js +1 -30
- package/dist/legacy/rules/react/reactJsxA11y.cjs +1 -0
- package/dist/legacy/rules/react/reactJsxA11y.js +1 -276
- package/dist/legacy/rules/strict.cjs +1 -0
- package/dist/legacy/rules/strict.js +1 -12
- package/dist/legacy/rules/style.cjs +1 -0
- package/dist/legacy/rules/style.js +1 -655
- package/dist/legacy/rules/typescript/typescript.cjs +1 -0
- package/dist/legacy/rules/typescript/typescript.js +1 -231
- package/dist/legacy/rules/typescript/typescriptOverrides.cjs +1 -0
- package/dist/legacy/rules/typescript/typescriptOverrides.js +1 -36
- package/dist/legacy/rules/typescript/typescriptSettings.cjs +1 -0
- package/dist/legacy/rules/typescript/typescriptSettings.js +1 -27
- package/dist/legacy/rules/variables.cjs +1 -0
- package/dist/legacy/rules/variables.js +1 -68
- package/dist/legacy.cjs +1 -0
- package/dist/legacy.d.cts +17 -0
- package/dist/legacy.d.ts +17 -0
- package/dist/legacy.js +1 -14
- package/dist/plugins/importXPlugin.cjs +1 -0
- package/dist/plugins/importXPlugin.js +1 -15
- package/dist/plugins/index.cjs +1 -0
- package/dist/plugins/index.js +1 -33
- package/dist/plugins/nextPlugin.cjs +1 -0
- package/dist/plugins/nextPlugin.js +1 -13
- package/dist/plugins/nodePlugin.cjs +1 -0
- package/dist/plugins/nodePlugin.js +1 -15
- package/dist/plugins/reactA11yPlugin.cjs +1 -0
- package/dist/plugins/reactA11yPlugin.js +1 -15
- package/dist/plugins/reactHooksPlugin.cjs +1 -0
- package/dist/plugins/reactHooksPlugin.js +1 -15
- package/dist/plugins/reactPlugin.cjs +1 -0
- package/dist/plugins/reactPlugin.js +1 -15
- package/dist/plugins/stylisticPlugin.cjs +1 -0
- package/dist/plugins/stylisticPlugin.js +1 -15
- package/dist/plugins/typescriptEslintPlugin.cjs +1 -0
- package/dist/plugins/typescriptEslintPlugin.js +1 -15
- package/dist/rules/best-practices.cjs +1 -0
- package/dist/rules/best-practices.js +1 -396
- package/dist/rules/errors.cjs +1 -0
- package/dist/rules/errors.js +1 -145
- package/dist/rules/es6.cjs +1 -0
- package/dist/rules/es6.js +1 -157
- package/dist/rules/imports.cjs +1 -0
- package/dist/rules/imports.js +1 -202
- package/dist/rules/importsStrict.cjs +1 -0
- package/dist/rules/importsStrict.js +1 -66
- package/dist/rules/index.cjs +1 -0
- package/dist/rules/index.js +1 -24
- package/dist/rules/next/nextBase.cjs +1 -0
- package/dist/rules/next/nextBase.js +1 -73
- package/dist/rules/next/nextCoreWebVitals.cjs +1 -0
- package/dist/rules/next/nextCoreWebVitals.js +1 -16
- package/dist/rules/node/nodeBase.cjs +1 -0
- package/dist/rules/node/nodeBase.js +1 -127
- package/dist/rules/node/nodeGlobals.cjs +1 -0
- package/dist/rules/node/nodeGlobals.js +1 -31
- package/dist/rules/node/nodeNoUnsupportedFeatures.cjs +1 -0
- package/dist/rules/node/nodeNoUnsupportedFeatures.js +1 -19
- package/dist/rules/node/nodePromises.cjs +1 -0
- package/dist/rules/node/nodePromises.js +1 -16
- package/dist/rules/react/react.cjs +1 -0
- package/dist/rules/react/react.js +1 -590
- package/dist/rules/react/reactHooks.cjs +1 -0
- package/dist/rules/react/reactHooks.js +1 -23
- package/dist/rules/react/reactJsxA11y.cjs +1 -0
- package/dist/rules/react/reactJsxA11y.js +1 -262
- package/dist/rules/react/reactStrict.cjs +1 -0
- package/dist/rules/react/reactStrict.js +1 -80
- package/dist/rules/react/reactStylistic.cjs +1 -0
- package/dist/rules/react/reactStylistic.js +1 -96
- package/dist/rules/strict.cjs +1 -0
- package/dist/rules/strict.js +1 -12
- package/dist/rules/style.cjs +1 -0
- package/dist/rules/style.js +1 -205
- package/dist/rules/stylistic.cjs +1 -0
- package/dist/rules/stylistic.js +1 -524
- package/dist/rules/typescript/typescriptBase.cjs +1 -0
- package/dist/rules/typescript/typescriptBase.js +1 -32
- package/dist/rules/typescript/typescriptEslint.cjs +1 -0
- package/dist/rules/typescript/typescriptEslint.js +1 -507
- package/dist/rules/typescript/typescriptEslintStrict.cjs +1 -0
- package/dist/rules/typescript/typescriptEslintStrict.js +1 -193
- package/dist/rules/typescript/typescriptImports.cjs +1 -0
- package/dist/rules/typescript/typescriptImports.js +1 -40
- package/dist/rules/typescript/typescriptStylistic.cjs +1 -0
- package/dist/rules/typescript/typescriptStylistic.js +1 -150
- package/dist/rules/variables.cjs +1 -0
- package/dist/rules/variables.js +1 -67
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.js +1 -18
- package/package.json +17 -17
- package/dist/@types/index.d.ts +0 -32
- package/dist/@types/legacy.d.ts +0 -12
- package/dist/rules/stylisticPlus.js +0 -16
- package/dist/rules/typescript/typescriptStylisticPlus.js +0 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../_virtual/rolldown_runtime.cjs`),t=require(`../../../utils/index.cjs`);let n=require(`eslint-plugin-react-hooks`);n=e.__toESM(n);var r,i,a=e.__esmMin((()=>{t.init_utils(),r={name:`airbnb/config/react-hooks/legacy`,files:t.allFiles,plugins:{"react-hooks":n.default},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},rules:{"react-hooks/rules-of-hooks":`error`,"react-hooks/exhaustive-deps":`error`}},i=r}));a(),exports.default=i,Object.defineProperty(exports,`init_reactHooks`,{enumerable:!0,get:function(){return a}});
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
"
|
|
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 eslint_plugin_react_hooks_1 = __importDefault(require("eslint-plugin-react-hooks"));
|
|
7
|
-
const utils_1 = require("../../../utils");
|
|
8
|
-
const legacyReactHooksRules = {
|
|
9
|
-
name: 'airbnb/config/react-hooks/legacy',
|
|
10
|
-
files: utils_1.allFiles,
|
|
11
|
-
plugins: {
|
|
12
|
-
'react-hooks': eslint_plugin_react_hooks_1.default,
|
|
13
|
-
},
|
|
14
|
-
languageOptions: {
|
|
15
|
-
parserOptions: {
|
|
16
|
-
ecmaFeatures: {
|
|
17
|
-
jsx: true,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
rules: {
|
|
22
|
-
// Enforce Rules of Hooks
|
|
23
|
-
// https://github.com/facebook/react/blob/c11015ff4f610ac2924d1fc6d569a17657a404fd/packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
|
|
24
|
-
'react-hooks/rules-of-hooks': 'error',
|
|
25
|
-
// Verify the list of the dependencies for Hooks like useEffect and similar
|
|
26
|
-
// https://github.com/facebook/react/blob/1204c789776cb01fbaf3e9f032e7e2ba85a44137/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
|
|
27
|
-
'react-hooks/exhaustive-deps': 'error',
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
exports.default = legacyReactHooksRules;
|
|
1
|
+
import{__esmMin as e}from"../../../_virtual/rolldown_runtime.js";import{allFiles as t,init_utils as n}from"../../../utils/index.js";import r from"eslint-plugin-react-hooks";var i,a,o=e((()=>{n(),i={name:`airbnb/config/react-hooks/legacy`,files:t,plugins:{"react-hooks":r},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},rules:{"react-hooks/rules-of-hooks":`error`,"react-hooks/exhaustive-deps":`error`}},a=i}));o();export{a as default,o as init_reactHooks};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../_virtual/rolldown_runtime.cjs`),t=require(`../../../utils/index.cjs`);let n=require(`eslint-plugin-jsx-a11y`);n=e.__toESM(n);var r,i,a=e.__esmMin((()=>{t.init_utils(),r={name:`airbnb/config/react-jsx-a11y/legacy`,files:t.allFiles,plugins:{"jsx-a11y":n.default},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},rules:{"jsx-a11y/accessible-emoji":`off`,"jsx-a11y/alt-text":[`error`,{elements:[`img`,`object`,`area`,`input[type="image"]`],img:[],object:[],area:[],'input[type="image"]':[]}],"jsx-a11y/anchor-has-content":[`error`,{components:[]}],"jsx-a11y/anchor-is-valid":[`error`,{components:[`Link`],specialLink:[`to`],aspects:[`noHref`,`invalidHref`,`preferButton`]}],"jsx-a11y/aria-activedescendant-has-tabindex":`error`,"jsx-a11y/aria-props":`error`,"jsx-a11y/aria-proptypes":`error`,"jsx-a11y/aria-role":[`error`,{ignoreNonDOM:!1}],"jsx-a11y/aria-unsupported-elements":`error`,"jsx-a11y/autocomplete-valid":[`off`,{inputComponents:[]}],"jsx-a11y/click-events-have-key-events":`error`,"jsx-a11y/control-has-associated-label":[`error`,{labelAttributes:[`label`],controlComponents:[],ignoreElements:[`audio`,`canvas`,`embed`,`input`,`textarea`,`tr`,`video`],ignoreRoles:[`grid`,`listbox`,`menu`,`menubar`,`radiogroup`,`row`,`tablist`,`toolbar`,`tree`,`treegrid`],depth:5}],"jsx-a11y/heading-has-content":[`error`,{components:[``]}],"jsx-a11y/html-has-lang":`error`,"jsx-a11y/iframe-has-title":`error`,"jsx-a11y/img-redundant-alt":`error`,"jsx-a11y/interactive-supports-focus":`error`,"jsx-a11y/label-has-associated-control":[`error`,{labelComponents:[],labelAttributes:[],controlComponents:[],assert:`both`,depth:25}],"jsx-a11y/lang":`error`,"jsx-a11y/media-has-caption":[`error`,{audio:[],video:[],track:[]}],"jsx-a11y/mouse-events-have-key-events":`error`,"jsx-a11y/no-access-key":`error`,"jsx-a11y/no-autofocus":[`error`,{ignoreNonDOM:!0}],"jsx-a11y/no-distracting-elements":[`error`,{elements:[`marquee`,`blink`]}],"jsx-a11y/no-interactive-element-to-noninteractive-role":[`error`,{tr:[`none`,`presentation`]}],"jsx-a11y/no-noninteractive-element-interactions":[`error`,{handlers:[`onClick`,`onMouseDown`,`onMouseUp`,`onKeyPress`,`onKeyDown`,`onKeyUp`]}],"jsx-a11y/no-noninteractive-element-to-interactive-role":[`error`,{ul:[`listbox`,`menu`,`menubar`,`radiogroup`,`tablist`,`tree`,`treegrid`],ol:[`listbox`,`menu`,`menubar`,`radiogroup`,`tablist`,`tree`,`treegrid`],li:[`menuitem`,`option`,`row`,`tab`,`treeitem`],table:[`grid`],td:[`gridcell`]}],"jsx-a11y/no-noninteractive-tabindex":[`error`,{tags:[],roles:[`tabpanel`],allowExpressionValues:!0}],"jsx-a11y/no-onchange":`off`,"jsx-a11y/no-redundant-roles":[`error`,{nav:[`navigation`]}],"jsx-a11y/no-static-element-interactions":[`error`,{handlers:[`onClick`,`onMouseDown`,`onMouseUp`,`onKeyPress`,`onKeyDown`,`onKeyUp`]}],"jsx-a11y/role-has-required-aria-props":`error`,"jsx-a11y/role-supports-aria-props":`error`,"jsx-a11y/scope":`error`,"jsx-a11y/tabindex-no-positive":`error`,"jsx-a11y/label-has-for":[`off`,{components:[],required:{every:[`nesting`,`id`]},allowChildren:!1}],"jsx-a11y/anchor-ambiguous-text":`off`,"jsx-a11y/no-aria-hidden-on-focusable":`off`,"jsx-a11y/prefer-tag-over-role":`off`}},i=r}));a(),exports.default=i,Object.defineProperty(exports,`init_reactJsxA11y`,{enumerable:!0,get:function(){return a}});
|
|
@@ -1,276 +1 @@
|
|
|
1
|
-
"
|
|
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 eslint_plugin_jsx_a11y_1 = __importDefault(require("eslint-plugin-jsx-a11y"));
|
|
7
|
-
const utils_1 = require("../../../utils");
|
|
8
|
-
const legacyReactJsxA11yRules = {
|
|
9
|
-
name: 'airbnb/config/react-jsx-a11y/legacy',
|
|
10
|
-
files: utils_1.allFiles,
|
|
11
|
-
plugins: {
|
|
12
|
-
'jsx-a11y': eslint_plugin_jsx_a11y_1.default,
|
|
13
|
-
},
|
|
14
|
-
languageOptions: {
|
|
15
|
-
parserOptions: {
|
|
16
|
-
ecmaFeatures: {
|
|
17
|
-
jsx: true,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
rules: {
|
|
22
|
-
// ensure emoji are accessible
|
|
23
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/accessible-emoji.md
|
|
24
|
-
// disabled; rule is deprecated
|
|
25
|
-
'jsx-a11y/accessible-emoji': 'off',
|
|
26
|
-
// Enforce that all elements that require alternative text have meaningful information
|
|
27
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md
|
|
28
|
-
'jsx-a11y/alt-text': [
|
|
29
|
-
'error',
|
|
30
|
-
{
|
|
31
|
-
elements: ['img', 'object', 'area', 'input[type="image"]'],
|
|
32
|
-
img: [],
|
|
33
|
-
object: [],
|
|
34
|
-
area: [],
|
|
35
|
-
'input[type="image"]': [],
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
// Enforce that anchors have content
|
|
39
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md
|
|
40
|
-
'jsx-a11y/anchor-has-content': [
|
|
41
|
-
'error',
|
|
42
|
-
{
|
|
43
|
-
components: [],
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
// ensure <a> tags are valid
|
|
47
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/0745af376cdc8686d85a361ce36952b1fb1ccf6e/docs/rules/anchor-is-valid.md
|
|
48
|
-
'jsx-a11y/anchor-is-valid': [
|
|
49
|
-
'error',
|
|
50
|
-
{
|
|
51
|
-
components: ['Link'],
|
|
52
|
-
specialLink: ['to'],
|
|
53
|
-
aspects: ['noHref', 'invalidHref', 'preferButton'],
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
// elements with aria-activedescendant must be tabbable
|
|
57
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-activedescendant-has-tabindex.md
|
|
58
|
-
'jsx-a11y/aria-activedescendant-has-tabindex': 'error',
|
|
59
|
-
// Enforce all aria-* props are valid.
|
|
60
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-props.md
|
|
61
|
-
'jsx-a11y/aria-props': 'error',
|
|
62
|
-
// Enforce ARIA state and property values are valid.
|
|
63
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-proptypes.md
|
|
64
|
-
'jsx-a11y/aria-proptypes': 'error',
|
|
65
|
-
// Require ARIA roles to be valid and non-abstract
|
|
66
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md
|
|
67
|
-
'jsx-a11y/aria-role': [
|
|
68
|
-
'error',
|
|
69
|
-
{
|
|
70
|
-
ignoreNonDOM: false,
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
// Enforce that elements that do not support ARIA roles, states, and
|
|
74
|
-
// properties do not have those attributes.
|
|
75
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-unsupported-elements.md
|
|
76
|
-
'jsx-a11y/aria-unsupported-elements': 'error',
|
|
77
|
-
// Ensure the autocomplete attribute is correct and suitable for the form field it is used with
|
|
78
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/29c68596b15c4ff0a40daae6d4a2670e36e37d35/docs/rules/autocomplete-valid.md
|
|
79
|
-
'jsx-a11y/autocomplete-valid': [
|
|
80
|
-
'off',
|
|
81
|
-
{
|
|
82
|
-
inputComponents: [],
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
// require onClick be accompanied by onKeyUp/onKeyDown/onKeyPress
|
|
86
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md
|
|
87
|
-
'jsx-a11y/click-events-have-key-events': 'error',
|
|
88
|
-
// Enforce that a control (an interactive element) has a text label.
|
|
89
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/control-has-associated-label.md
|
|
90
|
-
'jsx-a11y/control-has-associated-label': [
|
|
91
|
-
'error',
|
|
92
|
-
{
|
|
93
|
-
labelAttributes: ['label'],
|
|
94
|
-
controlComponents: [],
|
|
95
|
-
ignoreElements: ['audio', 'canvas', 'embed', 'input', 'textarea', 'tr', 'video'],
|
|
96
|
-
ignoreRoles: [
|
|
97
|
-
'grid',
|
|
98
|
-
'listbox',
|
|
99
|
-
'menu',
|
|
100
|
-
'menubar',
|
|
101
|
-
'radiogroup',
|
|
102
|
-
'row',
|
|
103
|
-
'tablist',
|
|
104
|
-
'toolbar',
|
|
105
|
-
'tree',
|
|
106
|
-
'treegrid',
|
|
107
|
-
],
|
|
108
|
-
depth: 5,
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
// ensure <hX> tags have content and are not aria-hidden
|
|
112
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/heading-has-content.md
|
|
113
|
-
'jsx-a11y/heading-has-content': [
|
|
114
|
-
'error',
|
|
115
|
-
{
|
|
116
|
-
components: [''],
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
// require HTML elements to have a "lang" prop
|
|
120
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/html-has-lang.md
|
|
121
|
-
'jsx-a11y/html-has-lang': 'error',
|
|
122
|
-
// ensure iframe elements have a unique title
|
|
123
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/iframe-has-title.md
|
|
124
|
-
'jsx-a11y/iframe-has-title': 'error',
|
|
125
|
-
// Prevent img alt text from containing redundant words like "image", "picture", or "photo"
|
|
126
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-redundant-alt.md
|
|
127
|
-
'jsx-a11y/img-redundant-alt': 'error',
|
|
128
|
-
// Elements with an interactive role and interaction handlers must be focusable
|
|
129
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/interactive-supports-focus.md
|
|
130
|
-
'jsx-a11y/interactive-supports-focus': 'error',
|
|
131
|
-
// Enforce that a label tag has a text label and an associated control.
|
|
132
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/b800f40a2a69ad48015ae9226fbe879f946757ed/docs/rules/label-has-associated-control.md
|
|
133
|
-
'jsx-a11y/label-has-associated-control': [
|
|
134
|
-
'error',
|
|
135
|
-
{
|
|
136
|
-
labelComponents: [],
|
|
137
|
-
labelAttributes: [],
|
|
138
|
-
controlComponents: [],
|
|
139
|
-
assert: 'both',
|
|
140
|
-
depth: 25,
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
// require HTML element's lang prop to be valid
|
|
144
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/lang.md
|
|
145
|
-
'jsx-a11y/lang': 'error',
|
|
146
|
-
// media elements must have captions
|
|
147
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/media-has-caption.md
|
|
148
|
-
'jsx-a11y/media-has-caption': [
|
|
149
|
-
'error',
|
|
150
|
-
{
|
|
151
|
-
audio: [],
|
|
152
|
-
video: [],
|
|
153
|
-
track: [],
|
|
154
|
-
},
|
|
155
|
-
],
|
|
156
|
-
// require that mouseover/out come with focus/blur, for keyboard-only users
|
|
157
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md
|
|
158
|
-
'jsx-a11y/mouse-events-have-key-events': 'error',
|
|
159
|
-
// Prevent use of `accessKey`
|
|
160
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-access-key.md
|
|
161
|
-
'jsx-a11y/no-access-key': 'error',
|
|
162
|
-
// prohibit autoFocus prop
|
|
163
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-autofocus.md
|
|
164
|
-
'jsx-a11y/no-autofocus': [
|
|
165
|
-
'error',
|
|
166
|
-
{
|
|
167
|
-
ignoreNonDOM: true,
|
|
168
|
-
},
|
|
169
|
-
],
|
|
170
|
-
// prevent distracting elements, like <marquee> and <blink>
|
|
171
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-distracting-elements.md
|
|
172
|
-
'jsx-a11y/no-distracting-elements': [
|
|
173
|
-
'error',
|
|
174
|
-
{
|
|
175
|
-
elements: ['marquee', 'blink'],
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
// WAI-ARIA roles should not be used to convert an interactive element to non-interactive
|
|
179
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-interactive-element-to-noninteractive-role.md
|
|
180
|
-
'jsx-a11y/no-interactive-element-to-noninteractive-role': [
|
|
181
|
-
'error',
|
|
182
|
-
{
|
|
183
|
-
tr: ['none', 'presentation'],
|
|
184
|
-
},
|
|
185
|
-
],
|
|
186
|
-
// A non-interactive element does not support event handlers (mouse and key handlers)
|
|
187
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-interactions.md
|
|
188
|
-
'jsx-a11y/no-noninteractive-element-interactions': [
|
|
189
|
-
'error',
|
|
190
|
-
{
|
|
191
|
-
handlers: ['onClick', 'onMouseDown', 'onMouseUp', 'onKeyPress', 'onKeyDown', 'onKeyUp'],
|
|
192
|
-
},
|
|
193
|
-
],
|
|
194
|
-
// WAI-ARIA roles should not be used to convert a non-interactive element to interactive
|
|
195
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-to-interactive-role.md
|
|
196
|
-
'jsx-a11y/no-noninteractive-element-to-interactive-role': [
|
|
197
|
-
'error',
|
|
198
|
-
{
|
|
199
|
-
ul: ['listbox', 'menu', 'menubar', 'radiogroup', 'tablist', 'tree', 'treegrid'],
|
|
200
|
-
ol: ['listbox', 'menu', 'menubar', 'radiogroup', 'tablist', 'tree', 'treegrid'],
|
|
201
|
-
li: ['menuitem', 'option', 'row', 'tab', 'treeitem'],
|
|
202
|
-
table: ['grid'],
|
|
203
|
-
td: ['gridcell'],
|
|
204
|
-
},
|
|
205
|
-
],
|
|
206
|
-
// Tab key navigation should be limited to elements on the page that can be interacted with.
|
|
207
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-tabindex.md
|
|
208
|
-
'jsx-a11y/no-noninteractive-tabindex': [
|
|
209
|
-
'error',
|
|
210
|
-
{
|
|
211
|
-
tags: [],
|
|
212
|
-
roles: ['tabpanel'],
|
|
213
|
-
allowExpressionValues: true,
|
|
214
|
-
},
|
|
215
|
-
],
|
|
216
|
-
// require onBlur instead of onChange
|
|
217
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-onchange.md
|
|
218
|
-
'jsx-a11y/no-onchange': 'off',
|
|
219
|
-
// ensure HTML elements do not specify redundant ARIA roles
|
|
220
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-redundant-roles.md
|
|
221
|
-
'jsx-a11y/no-redundant-roles': [
|
|
222
|
-
'error',
|
|
223
|
-
{
|
|
224
|
-
nav: ['navigation'],
|
|
225
|
-
},
|
|
226
|
-
],
|
|
227
|
-
// Enforce that DOM elements without semantic behavior not have interaction handlers
|
|
228
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
|
|
229
|
-
'jsx-a11y/no-static-element-interactions': [
|
|
230
|
-
'error',
|
|
231
|
-
{
|
|
232
|
-
handlers: ['onClick', 'onMouseDown', 'onMouseUp', 'onKeyPress', 'onKeyDown', 'onKeyUp'],
|
|
233
|
-
},
|
|
234
|
-
],
|
|
235
|
-
// Enforce that elements with ARIA roles must have all required attributes
|
|
236
|
-
// for that role.
|
|
237
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-has-required-aria-props.md
|
|
238
|
-
'jsx-a11y/role-has-required-aria-props': 'error',
|
|
239
|
-
// Enforce that elements with explicit or implicit roles defined contain
|
|
240
|
-
// only aria-* properties supported by that role.
|
|
241
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-supports-aria-props.md
|
|
242
|
-
'jsx-a11y/role-supports-aria-props': 'error',
|
|
243
|
-
// only allow <th> to have the "scope" attr
|
|
244
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/scope.md
|
|
245
|
-
'jsx-a11y/scope': 'error',
|
|
246
|
-
// Enforce tabIndex value is not greater than zero.
|
|
247
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/tabindex-no-positive.md
|
|
248
|
-
'jsx-a11y/tabindex-no-positive': 'error',
|
|
249
|
-
// ----------------------------------------------------
|
|
250
|
-
// Rules that no longer exist in eslint-plugin-jsx-a11y
|
|
251
|
-
// ----------------------------------------------------
|
|
252
|
-
// require that JSX labels use "htmlFor"
|
|
253
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md
|
|
254
|
-
// deprecated: replaced by `label-has-associated-control` rule
|
|
255
|
-
'jsx-a11y/label-has-for': [
|
|
256
|
-
'off',
|
|
257
|
-
{
|
|
258
|
-
components: [],
|
|
259
|
-
required: {
|
|
260
|
-
every: ['nesting', 'id'],
|
|
261
|
-
},
|
|
262
|
-
allowChildren: false,
|
|
263
|
-
},
|
|
264
|
-
],
|
|
265
|
-
// Ensures anchor text is not ambiguous
|
|
266
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/93f78856655696a55309440593e0948c6fb96134/docs/rules/anchor-ambiguous-text.md
|
|
267
|
-
'jsx-a11y/anchor-ambiguous-text': 'off',
|
|
268
|
-
// Enforce that aria-hidden="true" is not set on focusable elements.
|
|
269
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/93f78856655696a55309440593e0948c6fb96134/docs/rules/no-aria-hidden-on-focusable.md
|
|
270
|
-
'jsx-a11y/no-aria-hidden-on-focusable': 'off',
|
|
271
|
-
// Enforces using semantic DOM elements over the ARIA role property.
|
|
272
|
-
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/93f78856655696a55309440593e0948c6fb96134/docs/rules/prefer-tag-over-role.md
|
|
273
|
-
'jsx-a11y/prefer-tag-over-role': 'off',
|
|
274
|
-
},
|
|
275
|
-
};
|
|
276
|
-
exports.default = legacyReactJsxA11yRules;
|
|
1
|
+
import{__esmMin as e}from"../../../_virtual/rolldown_runtime.js";import{allFiles as t,init_utils as n}from"../../../utils/index.js";import r from"eslint-plugin-jsx-a11y";var i,a,o=e((()=>{n(),i={name:`airbnb/config/react-jsx-a11y/legacy`,files:t,plugins:{"jsx-a11y":r},languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}}},rules:{"jsx-a11y/accessible-emoji":`off`,"jsx-a11y/alt-text":[`error`,{elements:[`img`,`object`,`area`,`input[type="image"]`],img:[],object:[],area:[],'input[type="image"]':[]}],"jsx-a11y/anchor-has-content":[`error`,{components:[]}],"jsx-a11y/anchor-is-valid":[`error`,{components:[`Link`],specialLink:[`to`],aspects:[`noHref`,`invalidHref`,`preferButton`]}],"jsx-a11y/aria-activedescendant-has-tabindex":`error`,"jsx-a11y/aria-props":`error`,"jsx-a11y/aria-proptypes":`error`,"jsx-a11y/aria-role":[`error`,{ignoreNonDOM:!1}],"jsx-a11y/aria-unsupported-elements":`error`,"jsx-a11y/autocomplete-valid":[`off`,{inputComponents:[]}],"jsx-a11y/click-events-have-key-events":`error`,"jsx-a11y/control-has-associated-label":[`error`,{labelAttributes:[`label`],controlComponents:[],ignoreElements:[`audio`,`canvas`,`embed`,`input`,`textarea`,`tr`,`video`],ignoreRoles:[`grid`,`listbox`,`menu`,`menubar`,`radiogroup`,`row`,`tablist`,`toolbar`,`tree`,`treegrid`],depth:5}],"jsx-a11y/heading-has-content":[`error`,{components:[``]}],"jsx-a11y/html-has-lang":`error`,"jsx-a11y/iframe-has-title":`error`,"jsx-a11y/img-redundant-alt":`error`,"jsx-a11y/interactive-supports-focus":`error`,"jsx-a11y/label-has-associated-control":[`error`,{labelComponents:[],labelAttributes:[],controlComponents:[],assert:`both`,depth:25}],"jsx-a11y/lang":`error`,"jsx-a11y/media-has-caption":[`error`,{audio:[],video:[],track:[]}],"jsx-a11y/mouse-events-have-key-events":`error`,"jsx-a11y/no-access-key":`error`,"jsx-a11y/no-autofocus":[`error`,{ignoreNonDOM:!0}],"jsx-a11y/no-distracting-elements":[`error`,{elements:[`marquee`,`blink`]}],"jsx-a11y/no-interactive-element-to-noninteractive-role":[`error`,{tr:[`none`,`presentation`]}],"jsx-a11y/no-noninteractive-element-interactions":[`error`,{handlers:[`onClick`,`onMouseDown`,`onMouseUp`,`onKeyPress`,`onKeyDown`,`onKeyUp`]}],"jsx-a11y/no-noninteractive-element-to-interactive-role":[`error`,{ul:[`listbox`,`menu`,`menubar`,`radiogroup`,`tablist`,`tree`,`treegrid`],ol:[`listbox`,`menu`,`menubar`,`radiogroup`,`tablist`,`tree`,`treegrid`],li:[`menuitem`,`option`,`row`,`tab`,`treeitem`],table:[`grid`],td:[`gridcell`]}],"jsx-a11y/no-noninteractive-tabindex":[`error`,{tags:[],roles:[`tabpanel`],allowExpressionValues:!0}],"jsx-a11y/no-onchange":`off`,"jsx-a11y/no-redundant-roles":[`error`,{nav:[`navigation`]}],"jsx-a11y/no-static-element-interactions":[`error`,{handlers:[`onClick`,`onMouseDown`,`onMouseUp`,`onKeyPress`,`onKeyDown`,`onKeyUp`]}],"jsx-a11y/role-has-required-aria-props":`error`,"jsx-a11y/role-supports-aria-props":`error`,"jsx-a11y/scope":`error`,"jsx-a11y/tabindex-no-positive":`error`,"jsx-a11y/label-has-for":[`off`,{components:[],required:{every:[`nesting`,`id`]},allowChildren:!1}],"jsx-a11y/anchor-ambiguous-text":`off`,"jsx-a11y/no-aria-hidden-on-focusable":`off`,"jsx-a11y/prefer-tag-over-role":`off`}},a=i}));o();export{a as default,o as init_reactJsxA11y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`../../utils/index.cjs`);var n,r,i=e.__esmMin((()=>{t.init_utils(),n={name:`airbnb/config/strict/legacy`,files:t.allFiles,rules:{strict:[`error`,`never`]}},r=n}));i(),exports.default=r,Object.defineProperty(exports,`init_strict`,{enumerable:!0,get:function(){return i}});
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("../../utils");
|
|
4
|
-
const legacyStrictRules = {
|
|
5
|
-
name: 'airbnb/config/strict/legacy',
|
|
6
|
-
files: utils_1.allFiles,
|
|
7
|
-
rules: {
|
|
8
|
-
// babel inserts `'use strict';` for us
|
|
9
|
-
strict: ['error', 'never'],
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
exports.default = legacyStrictRules;
|
|
1
|
+
import{__esmMin as e}from"../../_virtual/rolldown_runtime.js";import{allFiles as t,init_utils as n}from"../../utils/index.js";var r,i,a=e((()=>{n(),r={name:`airbnb/config/strict/legacy`,files:t,rules:{strict:[`error`,`never`]}},i=r}));a();export{i as default,a as init_strict};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`../../utils/index.cjs`);var n,r,i=e.__esmMin((()=>{t.init_utils(),n={name:`airbnb/config/style/legacy`,files:t.allFiles,rules:{"array-bracket-newline":[`off`,`consistent`],"array-element-newline":[`off`,{multiline:!0,minItems:3}],"array-bracket-spacing":[`error`,`never`],"block-spacing":[`error`,`always`],"brace-style":[`error`,`1tbs`,{allowSingleLine:!0}],camelcase:[`error`,{properties:`never`,ignoreDestructuring:!1}],"capitalized-comments":[`off`,`never`,{line:{ignorePattern:`.*`,ignoreInlineComments:!0,ignoreConsecutiveComments:!0},block:{ignorePattern:`.*`,ignoreInlineComments:!0,ignoreConsecutiveComments:!0}}],"comma-dangle":[`error`,{arrays:`always-multiline`,objects:`always-multiline`,imports:`always-multiline`,exports:`always-multiline`,functions:`always-multiline`}],"comma-spacing":[`error`,{before:!1,after:!0}],"comma-style":[`error`,`last`,{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1,NewExpression:!1}}],"computed-property-spacing":[`error`,`never`],"consistent-this":`off`,"eol-last":[`error`,`always`],"function-call-argument-newline":[`error`,`consistent`],"func-call-spacing":[`error`,`never`],"func-name-matching":[`off`,`always`,{includeCommonJSModuleExports:!1,considerPropertyDescriptor:!0}],"func-names":`warn`,"func-style":[`off`,`expression`],"function-paren-newline":[`error`,`multiline-arguments`],"id-denylist":`off`,"id-length":`off`,"id-match":`off`,"implicit-arrow-linebreak":[`error`,`beside`],indent:[`error`,2,{SwitchCase:1,VariableDeclarator:1,outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},CallExpression:{arguments:1},ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[`JSXElement`,`JSXElement > *`,`JSXAttribute`,`JSXIdentifier`,`JSXNamespacedName`,`JSXMemberExpression`,`JSXSpreadAttribute`,`JSXExpressionContainer`,`JSXOpeningElement`,`JSXClosingElement`,`JSXFragment`,`JSXOpeningFragment`,`JSXClosingFragment`,`JSXText`,`JSXEmptyExpression`,`JSXSpreadChild`],ignoreComments:!1}],"jsx-quotes":[`off`,`prefer-double`],"key-spacing":[`error`,{beforeColon:!1,afterColon:!0}],"keyword-spacing":[`error`,{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"line-comment-position":[`off`,{position:`above`,ignorePattern:``,applyDefaultPatterns:!0}],"linebreak-style":[`error`,`unix`],"lines-between-class-members":[`error`,`always`,{exceptAfterSingleLine:!1}],"lines-around-comment":`off`,"lines-around-directive":[`error`,{before:`always`,after:`always`}],"logical-assignment-operators":[`off`,`always`,{enforceForIfStatements:!0}],"max-depth":[`off`,4],"max-len":[`error`,100,2,{ignoreUrls:!0,ignoreComments:!1,ignoreRegExpLiterals:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0}],"max-lines":[`off`,{max:300,skipBlankLines:!0,skipComments:!0}],"max-lines-per-function":[`off`,{max:50,skipBlankLines:!0,skipComments:!0,IIFEs:!0}],"max-nested-callbacks":`off`,"max-params":[`off`,3],"max-statements":[`off`,10],"max-statements-per-line":[`off`,{max:1}],"multiline-comment-style":[`off`,`starred-block`],"multiline-ternary":[`off`,`never`],"new-cap":[`error`,{newIsCap:!0,newIsCapExceptions:[],capIsNew:!1,capIsNewExceptions:[`Immutable.Map`,`Immutable.Set`,`Immutable.List`]}],"new-parens":`error`,"newline-after-var":`off`,"newline-before-return":`off`,"newline-per-chained-call":[`error`,{ignoreChainWithDepth:4}],"no-array-constructor":`error`,"no-bitwise":`error`,"no-continue":`error`,"no-inline-comments":`off`,"no-lonely-if":`error`,"no-mixed-operators":[`error`,{groups:[[`%`,`**`],[`%`,`+`],[`%`,`-`],[`%`,`*`],[`%`,`/`],[`/`,`*`],[`&`,`|`,`<<`,`>>`,`>>>`],[`==`,`!=`,`===`,`!==`],[`&&`,`||`]],allowSamePrecedence:!1}],"no-mixed-spaces-and-tabs":`error`,"no-multi-assign":[`error`],"no-multiple-empty-lines":[`error`,{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":`off`,"no-nested-ternary":`error`,"no-new-object":`error`,"no-plusplus":`error`,"no-restricted-syntax":[`error`,{selector:`ForInStatement`,message:`for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.`},{selector:`ForOfStatement`,message:`iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.`},{selector:`LabeledStatement`,message:`Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.`},{selector:`WithStatement`,message:"`with` is disallowed in strict mode because it makes code impossible to predict and optimize."}],"no-spaced-func":`off`,"no-tabs":`error`,"no-ternary":`off`,"no-trailing-spaces":[`error`,{skipBlankLines:!1,ignoreComments:!1}],"no-underscore-dangle":[`error`,{allow:[],allowAfterThis:!1,allowAfterSuper:!1,enforceInMethodNames:!0}],"no-unneeded-ternary":[`error`,{defaultAssignment:!1}],"no-whitespace-before-property":`error`,"nonblock-statement-body-position":[`error`,`beside`,{overrides:{}}],"object-curly-spacing":[`error`,`always`],"object-curly-newline":[`error`,{ObjectExpression:{minProperties:4,multiline:!0,consistent:!0},ObjectPattern:{minProperties:4,multiline:!0,consistent:!0},ImportDeclaration:{minProperties:4,multiline:!0,consistent:!0},ExportDeclaration:{minProperties:4,multiline:!0,consistent:!0}}],"object-property-newline":[`error`,{allowAllPropertiesOnSameLine:!0}],"one-var":[`error`,`never`],"one-var-declaration-per-line":[`error`,`always`],"operator-assignment":[`error`,`always`],"operator-linebreak":[`error`,`before`,{overrides:{"=":`none`}}],"padded-blocks":[`error`,{blocks:`never`,classes:`never`,switches:`never`},{allowSingleLineBlocks:!0}],"padding-line-between-statements":`off`,"prefer-exponentiation-operator":`error`,"prefer-object-spread":`error`,"quote-props":[`error`,`as-needed`,{keywords:!1,unnecessary:!0,numbers:!1}],quotes:[`error`,`single`,{avoidEscape:!0}],"require-jsdoc":`off`,semi:[`error`,`always`],"semi-spacing":[`error`,{before:!1,after:!0}],"semi-style":[`error`,`last`],"sort-keys":[`off`,`asc`,{caseSensitive:!1,natural:!0}],"sort-vars":`off`,"space-before-blocks":`error`,"space-before-function-paren":[`error`,{anonymous:`always`,named:`never`,asyncArrow:`always`}],"space-in-parens":[`error`,`never`],"space-infix-ops":`error`,"space-unary-ops":[`error`,{words:!0,nonwords:!1,overrides:{}}],"spaced-comment":[`error`,`always`,{line:{exceptions:[`-`,`+`],markers:[`=`,`!`,`/`]},block:{exceptions:[`-`,`+`],markers:[`=`,`!`,`:`,`::`],balanced:!0}}],"switch-colon-spacing":[`error`,{after:!0,before:!1}],"template-tag-spacing":[`error`,`never`],"unicode-bom":[`error`,`never`],"wrap-regex":`off`}},r=n}));i(),exports.default=r,Object.defineProperty(exports,`init_style`,{enumerable:!0,get:function(){return i}});
|