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
|
@@ -1,127 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deprecatedNodeBaseRules = void 0;
|
|
4
|
-
const utils_1 = require("../../utils");
|
|
5
|
-
const nodeBaseRules = {
|
|
6
|
-
name: 'airbnb/config/node/base',
|
|
7
|
-
files: utils_1.allFiles,
|
|
8
|
-
rules: {
|
|
9
|
-
// Require return statements after callbacks
|
|
10
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/callback-return.md
|
|
11
|
-
'n/callback-return': 'off',
|
|
12
|
-
// Enforce either module.exports or exports
|
|
13
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/exports-style.md
|
|
14
|
-
'n/exports-style': [
|
|
15
|
-
'error',
|
|
16
|
-
'module.exports',
|
|
17
|
-
{
|
|
18
|
-
allowBatchAssign: false,
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
// Enforce the style of file extensions in import declarations
|
|
22
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/file-extension-in-import.md
|
|
23
|
-
// Off due to 'import-x/extensions'
|
|
24
|
-
'n/file-extension-in-import': 'off',
|
|
25
|
-
// Require require() calls to be placed at top-level module scope
|
|
26
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/global-require.md
|
|
27
|
-
'n/global-require': 'error',
|
|
28
|
-
// Require error handling in callbacks
|
|
29
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/handle-callback-err.md
|
|
30
|
-
'n/handle-callback-err': 'off',
|
|
31
|
-
// Require correct usage of hashbang
|
|
32
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/hashbang.md
|
|
33
|
-
'n/hashbang': 'error',
|
|
34
|
-
// Enforce Node.js-style error-first callback pattern is followed
|
|
35
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-callback-literal.md
|
|
36
|
-
'n/no-callback-literal': 'off',
|
|
37
|
-
// Disallow deprecated APIs
|
|
38
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-deprecated-api.md
|
|
39
|
-
'n/no-deprecated-api': 'error',
|
|
40
|
-
// Disallow the assignment to exports
|
|
41
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-exports-assign.md
|
|
42
|
-
'n/no-exports-assign': 'error',
|
|
43
|
-
// Disallow import declarations which import extraneous modules
|
|
44
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-extraneous-import.md
|
|
45
|
-
// Off due to 'import-x/no-extraneous-dependencies'
|
|
46
|
-
'n/no-extraneous-import': 'off',
|
|
47
|
-
// Disallow require() expressions which import extraneous modules
|
|
48
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-extraneous-require.md
|
|
49
|
-
// Off due to 'import-x/no-extraneous-dependencies'
|
|
50
|
-
'n/no-extraneous-require': 'off',
|
|
51
|
-
// Disallow import declarations which import non-existence modules
|
|
52
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-missing-import.md
|
|
53
|
-
// Off due to 'import-x/no-unresolved'
|
|
54
|
-
'n/no-missing-import': 'off',
|
|
55
|
-
// Disallow require() expressions which import non-existence modules
|
|
56
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-missing-require.md
|
|
57
|
-
// Off due to 'import-x/no-unresolved'
|
|
58
|
-
'n/no-missing-require': 'off',
|
|
59
|
-
// Disallow require calls to be mixed with regular variable declarations
|
|
60
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-mixed-requires.md
|
|
61
|
-
'n/no-mixed-requires': 'off',
|
|
62
|
-
// Disallow new operators with calls to require
|
|
63
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-new-require.md
|
|
64
|
-
'n/no-new-require': 'error',
|
|
65
|
-
// Disallow string concatenation with __dirname and __filename
|
|
66
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-path-concat.md
|
|
67
|
-
'n/no-path-concat': 'error',
|
|
68
|
-
// Disallow the use of process.env
|
|
69
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-process-env.md
|
|
70
|
-
'n/no-process-env': 'off',
|
|
71
|
-
// Disallow the use of process.exit()
|
|
72
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-process-exit.md
|
|
73
|
-
'n/no-process-exit': 'error',
|
|
74
|
-
// Disallow specified modules when loaded by import declarations
|
|
75
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-restricted-import.md
|
|
76
|
-
// Off due to 'no-restricted-imports'
|
|
77
|
-
'n/no-restricted-import': 'off',
|
|
78
|
-
// Disallow specified modules when loaded by require
|
|
79
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-restricted-require.md
|
|
80
|
-
// Off due to 'no-restricted-imports'
|
|
81
|
-
'n/no-restricted-require': 'off',
|
|
82
|
-
// Disallow synchronous methods
|
|
83
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-sync.md
|
|
84
|
-
'n/no-sync': [
|
|
85
|
-
'error',
|
|
86
|
-
{
|
|
87
|
-
allowAtRootLevel: false,
|
|
88
|
-
ignores: [],
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
// Disallow top-level await in published modules
|
|
92
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-top-level-await.md
|
|
93
|
-
'n/no-top-level-await': 'off',
|
|
94
|
-
// Disallow bin files that npm ignores
|
|
95
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unpublished-bin.md
|
|
96
|
-
'n/no-unpublished-bin': 'error',
|
|
97
|
-
// Disallow import declarations which import private modules
|
|
98
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unpublished-import.md
|
|
99
|
-
// Off due to 'import-x/no-extraneous-dependencies'
|
|
100
|
-
'n/no-unpublished-import': 'off',
|
|
101
|
-
// Disallow require() expressions which import private modules
|
|
102
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unpublished-require.md
|
|
103
|
-
// Off due to 'import-x/no-extraneous-dependencies'
|
|
104
|
-
'n/no-unpublished-require': 'off',
|
|
105
|
-
// Enforce using the node: protocol when importing Node.js builtin modules
|
|
106
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-node-protocol.md
|
|
107
|
-
'n/prefer-node-protocol': 'error',
|
|
108
|
-
// Require that process.exit() expressions use the same code path as throw
|
|
109
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/process-exit-as-throw.md
|
|
110
|
-
'n/process-exit-as-throw': 'error',
|
|
111
|
-
},
|
|
112
|
-
};
|
|
113
|
-
exports.deprecatedNodeBaseRules = {
|
|
114
|
-
name: 'airbnb/config/node/base/deprecated',
|
|
115
|
-
files: utils_1.allFiles,
|
|
116
|
-
rules: {
|
|
117
|
-
// Disallow third-party modules which are hiding core modules
|
|
118
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-hide-core-modules.md
|
|
119
|
-
// @deprecated
|
|
120
|
-
'n/no-hide-core-modules': 'off',
|
|
121
|
-
// Require correct usage of hashbang
|
|
122
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/shebang.md
|
|
123
|
-
// @deprecated
|
|
124
|
-
'n/shebang': 'off',
|
|
125
|
-
},
|
|
126
|
-
};
|
|
127
|
-
exports.default = nodeBaseRules;
|
|
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/node/base`,files:t,rules:{"n/callback-return":`off`,"n/exports-style":[`error`,`module.exports`,{allowBatchAssign:!1}],"n/file-extension-in-import":`off`,"n/global-require":`error`,"n/handle-callback-err":`off`,"n/hashbang":`error`,"n/no-callback-literal":`off`,"n/no-deprecated-api":`error`,"n/no-exports-assign":`error`,"n/no-extraneous-import":`off`,"n/no-extraneous-require":`off`,"n/no-missing-import":`off`,"n/no-missing-require":`off`,"n/no-mixed-requires":`off`,"n/no-new-require":`error`,"n/no-path-concat":`error`,"n/no-process-env":`off`,"n/no-process-exit":`error`,"n/no-restricted-import":`off`,"n/no-restricted-require":`off`,"n/no-sync":[`error`,{allowAtRootLevel:!1,ignores:[]}],"n/no-top-level-await":`off`,"n/no-unpublished-bin":`error`,"n/no-unpublished-import":`off`,"n/no-unpublished-require":`off`,"n/prefer-node-protocol":`error`,"n/process-exit-as-throw":`error`}},i=r}));a();export{i as default,a as init_nodeBase};
|
|
@@ -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/node/globals`,files:t.allFiles,rules:{"n/prefer-global/buffer":[`error`,`always`],"n/prefer-global/console":[`error`,`always`],"n/prefer-global/process":[`error`,`always`],"n/prefer-global/text-decoder":[`error`,`always`],"n/prefer-global/text-encoder":[`error`,`always`],"n/prefer-global/url-search-params":[`error`,`always`],"n/prefer-global/url":[`error`,`always`]}},r=n}));i(),exports.default=r,Object.defineProperty(exports,`init_nodeGlobals`,{enumerable:!0,get:function(){return i}});
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("../../utils");
|
|
4
|
-
const nodeGlobalsRules = {
|
|
5
|
-
name: 'airbnb/config/node/globals',
|
|
6
|
-
files: utils_1.allFiles,
|
|
7
|
-
rules: {
|
|
8
|
-
// Enforce either Buffer or require("buffer").Buffer
|
|
9
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/buffer.md
|
|
10
|
-
'n/prefer-global/buffer': ['error', 'always'],
|
|
11
|
-
// Enforce either console or require("console")
|
|
12
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/console.md
|
|
13
|
-
'n/prefer-global/console': ['error', 'always'],
|
|
14
|
-
// Enforce either process or require("process")
|
|
15
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/process.md
|
|
16
|
-
'n/prefer-global/process': ['error', 'always'],
|
|
17
|
-
// Enforce either TextDecoder or require("util").TextDecoder
|
|
18
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/text-decoder.md
|
|
19
|
-
'n/prefer-global/text-decoder': ['error', 'always'],
|
|
20
|
-
// Enforce either TextEncoder or require("util").TextEncoder
|
|
21
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/text-encoder.md
|
|
22
|
-
'n/prefer-global/text-encoder': ['error', 'always'],
|
|
23
|
-
// Enforce either URLSearchParams or require("url").URLSearchParams
|
|
24
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/url-search-params.md
|
|
25
|
-
'n/prefer-global/url-search-params': ['error', 'always'],
|
|
26
|
-
// Enforce either URL or require("url").URL
|
|
27
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/url.md
|
|
28
|
-
'n/prefer-global/url': ['error', 'always'],
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
exports.default = nodeGlobalsRules;
|
|
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/node/globals`,files:t,rules:{"n/prefer-global/buffer":[`error`,`always`],"n/prefer-global/console":[`error`,`always`],"n/prefer-global/process":[`error`,`always`],"n/prefer-global/text-decoder":[`error`,`always`],"n/prefer-global/text-encoder":[`error`,`always`],"n/prefer-global/url-search-params":[`error`,`always`],"n/prefer-global/url":[`error`,`always`]}},i=r}));a();export{i as default,a as init_nodeGlobals};
|
|
@@ -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/node/unsupported-features`,files:t.allFiles,rules:{"n/no-unsupported-features/es-builtins":`error`,"n/no-unsupported-features/es-syntax":`off`,"n/no-unsupported-features/node-builtins":`error`}},r=n}));i(),exports.default=r,Object.defineProperty(exports,`init_nodeNoUnsupportedFeatures`,{enumerable:!0,get:function(){return i}});
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("../../utils");
|
|
4
|
-
const nodeNoUnsupportedFeaturesRules = {
|
|
5
|
-
name: 'airbnb/config/node/unsupported-features',
|
|
6
|
-
files: utils_1.allFiles,
|
|
7
|
-
rules: {
|
|
8
|
-
// Disallow unsupported ECMAScript built-ins on the specified version
|
|
9
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unsupported-features/es-builtins.md
|
|
10
|
-
'n/no-unsupported-features/es-builtins': 'error',
|
|
11
|
-
// Disallow unsupported ECMAScript syntax on the specified version
|
|
12
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unsupported-features/es-syntax.md
|
|
13
|
-
'n/no-unsupported-features/es-syntax': 'off',
|
|
14
|
-
// Disallow unsupported Node.js built-in APIs on the specified version
|
|
15
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unsupported-features/node-builtins.md
|
|
16
|
-
'n/no-unsupported-features/node-builtins': 'error',
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
exports.default = nodeNoUnsupportedFeaturesRules;
|
|
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/node/unsupported-features`,files:t,rules:{"n/no-unsupported-features/es-builtins":`error`,"n/no-unsupported-features/es-syntax":`off`,"n/no-unsupported-features/node-builtins":`error`}},i=r}));a();export{i as default,a as init_nodeNoUnsupportedFeatures};
|
|
@@ -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/node/promises`,files:t.allFiles,rules:{"n/prefer-promises/dns":`error`,"n/prefer-promises/fs":`error`}},r=n}));i(),exports.default=r,Object.defineProperty(exports,`init_nodePromises`,{enumerable:!0,get:function(){return i}});
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("../../utils");
|
|
4
|
-
const nodePromisesRules = {
|
|
5
|
-
name: 'airbnb/config/node/promises',
|
|
6
|
-
files: utils_1.allFiles,
|
|
7
|
-
rules: {
|
|
8
|
-
// Enforce require("dns").promises
|
|
9
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-promises/dns.md
|
|
10
|
-
'n/prefer-promises/dns': 'error',
|
|
11
|
-
// Enforce require("fs").promises
|
|
12
|
-
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-promises/fs.md
|
|
13
|
-
'n/prefer-promises/fs': 'error',
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
exports.default = nodePromisesRules;
|
|
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/node/promises`,files:t,rules:{"n/prefer-promises/dns":`error`,"n/prefer-promises/fs":`error`}},i=r}));a();export{i as default,a as init_nodePromises};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`../../utils/index.cjs`);let n=require(`globals`);n=e.__toESM(n);var r,i,a=e.__esmMin((()=>{t.init_utils(),r={name:`airbnb/config/react`,files:t.allFiles,languageOptions:{parserOptions:{ecmaFeatures:{jsx:!0}},globals:{...n.default.browser}},settings:{react:{version:`detect`}},rules:{"react/boolean-prop-naming":`off`,"react/button-has-type":`error`,"react/checked-requires-onchange-or-readonly":`off`,"react/default-props-match-prop-types":[`error`,{allowRequiredDefaults:!1}],"react/destructuring-assignment":[`error`,`always`],"react/display-name":`off`,"react/forbid-component-props":`off`,"react/forbid-dom-props":`off`,"react/forbid-elements":`off`,"react/forbid-foreign-prop-types":[`warn`,{allowInPropTypes:!0}],"react/forbid-prop-types":[`error`,{checkContextTypes:!0,checkChildContextTypes:!0}],"react/forward-ref-uses-ref":`error`,"react/function-component-definition":[`error`,{namedComponents:[`function-declaration`,`function-expression`],unnamedComponents:`function-expression`}],"react/hook-use-state":`off`,"react/iframe-missing-sandbox":`off`,"react/jsx-boolean-value":[`error`,`never`,{always:[]}],"react/jsx-child-element-spacing":`off`,"react/jsx-closing-bracket-location":[`error`,`line-aligned`],"react/jsx-closing-tag-location":`error`,"react/jsx-curly-brace-presence":[`error`,{props:`never`,children:`never`}],"react/jsx-curly-newline":`error`,"react/jsx-curly-spacing":[`error`,`never`,{allowMultiline:!0}],"react/jsx-equals-spacing":[`error`,`never`],"react/jsx-filename-extension":[`error`,{extensions:[`.jsx`]}],"react/jsx-first-prop-new-line":`error`,"react/jsx-fragments":[`error`,`syntax`],"react/jsx-handler-names":`off`,"react/jsx-indent-props":[`error`,2],"react/jsx-indent":[`error`,2],"react/jsx-key":`off`,"react/jsx-max-depth":`off`,"react/jsx-max-props-per-line":[`error`,{maximum:1,when:`multiline`}],"react/jsx-newline":`off`,"react/jsx-no-bind":[`error`,{ignoreDOMComponents:!0,ignoreRefs:!0,allowArrowFunctions:!0,allowFunctions:!1,allowBind:!1}],"react/jsx-no-comment-textnodes":`error`,"react/jsx-no-constructed-context-values":`error`,"react/jsx-no-duplicate-props":[`error`,{ignoreCase:!0}],"react/jsx-no-leaked-render":`off`,"react/jsx-no-literals":`off`,"react/jsx-no-script-url":[`error`,[{name:`Link`,props:[`to`,`href`]},{name:`NavLink`,props:[`to`]},{name:`NextLink`,props:[`to`,`href`]}],{includeFromSettings:!0}],"react/jsx-no-target-blank":[`error`,{allowReferrer:!1,enforceDynamicLinks:`always`,warnOnSpreadAttributes:!1,links:!0,forms:!1}],"react/jsx-no-undef":[`error`,{allowGlobals:!1}],"react/jsx-no-useless-fragment":[`error`,{allowExpressions:!0}],"react/jsx-one-expression-per-line":[`error`,{allow:`single-child`}],"react/jsx-pascal-case":[`error`,{allowAllCaps:!0,allowLeadingUnderscore:!1,allowNamespace:!0,ignore:[]}],"react/jsx-props-no-multi-spaces":`error`,"react/jsx-props-no-spread-multi":`error`,"react/jsx-props-no-spreading":`off`,"react/jsx-sort-props":`off`,"react/jsx-tag-spacing":[`error`,{closingSlash:`never`,beforeSelfClosing:`always`,afterOpening:`never`,beforeClosing:`never`}],"react/jsx-uses-react":`error`,"react/jsx-uses-vars":`error`,"react/jsx-wrap-multilines":[`error`,{declaration:`parens-new-line`,assignment:`parens-new-line`,return:`parens-new-line`,arrow:`parens-new-line`,condition:`parens-new-line`,logical:`parens-new-line`,prop:`parens-new-line`}],"react/no-access-state-in-setstate":`error`,"react/no-adjacent-inline-elements":`off`,"react/no-array-index-key":`error`,"react/no-arrow-function-lifecycle":`error`,"react/no-children-prop":[`error`,{allowFunctions:!1}],"react/no-danger-with-children":`error`,"react/no-danger":[`warn`,{customComponentNames:[]}],"react/no-deprecated":`error`,"react/no-did-mount-set-state":`off`,"react/no-did-update-set-state":`error`,"react/no-direct-mutation-state":`error`,"react/no-find-dom-node":`error`,"react/no-invalid-html-attribute":`error`,"react/no-is-mounted":`error`,"react/no-multi-comp":`off`,"react/no-namespace":`error`,"react/no-object-type-as-default-prop":`off`,"react/no-redundant-should-component-update":`error`,"react/no-render-return-value":`error`,"react/no-set-state":`off`,"react/no-string-refs":[`error`,{noTemplateLiterals:!0}],"react/no-this-in-sfc":`error`,"react/no-typos":`error`,"react/no-unescaped-entities":`error`,"react/no-unknown-property":[`error`,{ignore:[],requireDataLowercase:!1}],"react/no-unsafe":`off`,"react/no-unstable-nested-components":`error`,"react/no-unused-class-component-methods":`error`,"react/no-unused-prop-types":[`error`,{ignore:[],customValidators:[],skipShapeProps:!0}],"react/no-unused-state":`error`,"react/no-will-update-set-state":`error`,"react/prefer-es6-class":[`error`,`always`],"react/prefer-exact-props":`error`,"react/prefer-read-only-props":`off`,"react/prefer-stateless-function":[`error`,{ignorePureComponents:!0}],"react/prop-types":[`error`,{ignore:[],customValidators:[],skipUndeclared:!1}],"react/react-in-jsx-scope":`error`,"react/require-default-props":[`error`,{forbidDefaultForRequired:!0,classes:`defaultProps`,functions:`defaultProps`}],"react/require-optimization":`off`,"react/require-render-return":`error`,"react/self-closing-comp":[`error`,{component:!0,html:!0}],"react/sort-comp":[`error`,{order:[`static-variables`,`static-methods`,`instance-variables`,`lifecycle`,`/^handle.+$/`,`/^on.+$/`,`getters`,`setters`,`/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/`,`instance-methods`,`everything-else`,`rendering`],groups:{lifecycle:[`displayName`,`propTypes`,`contextTypes`,`childContextTypes`,`mixins`,`statics`,`defaultProps`,`constructor`,`getDefaultProps`,`getInitialState`,`state`,`getChildContext`,`getDerivedStateFromProps`,`componentWillMount`,`UNSAFE_componentWillMount`,`componentDidMount`,`componentWillReceiveProps`,`UNSAFE_componentWillReceiveProps`,`shouldComponentUpdate`,`componentWillUpdate`,`UNSAFE_componentWillUpdate`,`getSnapshotBeforeUpdate`,`componentDidUpdate`,`componentDidCatch`,`componentWillUnmount`],rendering:[`/^render.+$/`,`render`]}}],"react/sort-default-props":`off`,"react/sort-prop-types":`off`,"react/state-in-constructor":[`error`,`always`],"react/static-property-placement":[`error`,`property assignment`],"react/style-prop-object":[`error`,{allow:[]}],"react/void-dom-elements-no-children":`error`}},i=r}));a(),exports.default=i,Object.defineProperty(exports,`init_react`,{enumerable:!0,get:function(){return a}});
|