@dineroregnskab/eslint-plugin-custom-rules 2.0.4 → 2.0.6
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/node_modules/@aashutoshrathi/word-wrap/LICENSE +21 -0
- package/node_modules/@aashutoshrathi/word-wrap/README.md +182 -0
- package/node_modules/@aashutoshrathi/word-wrap/index.d.ts +50 -0
- package/node_modules/@aashutoshrathi/word-wrap/index.js +52 -0
- package/node_modules/@aashutoshrathi/word-wrap/package.json +81 -0
- package/node_modules/@angular-eslint/bundled-angular-compiler/README.md +1 -0
- package/node_modules/@angular-eslint/bundled-angular-compiler/dist/index.d.ts +5 -0
- package/node_modules/@angular-eslint/bundled-angular-compiler/dist/index.js +32004 -0
- package/node_modules/@angular-eslint/bundled-angular-compiler/package.json +19 -0
- package/node_modules/@angular-eslint/template-parser/LICENSE +21 -0
- package/node_modules/@angular-eslint/template-parser/README.md +1 -0
- package/node_modules/@angular-eslint/template-parser/dist/convert-source-span-to-loc.d.ts +6 -0
- package/node_modules/@angular-eslint/template-parser/dist/convert-source-span-to-loc.js +69 -0
- package/node_modules/@angular-eslint/template-parser/dist/index.d.ts +44 -0
- package/node_modules/@angular-eslint/template-parser/dist/index.js +219 -0
- package/node_modules/@angular-eslint/template-parser/package.json +28 -0
- package/node_modules/@eslint/eslintrc/LICENSE +19 -0
- package/node_modules/@eslint/eslintrc/README.md +115 -0
- package/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
- package/node_modules/@eslint/eslintrc/conf/environments.js +215 -0
- package/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +1104 -0
- package/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -0
- package/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +4333 -0
- package/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -0
- package/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +532 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +115 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
- package/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1149 -0
- package/node_modules/@eslint/eslintrc/lib/flat-compat.js +318 -0
- package/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
- package/node_modules/@eslint/eslintrc/lib/index.js +56 -0
- package/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
- package/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
- package/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
- package/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
- package/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
- package/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
- package/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
- package/node_modules/@eslint/eslintrc/package.json +82 -0
- package/node_modules/@eslint/eslintrc/universal.js +9 -0
- package/node_modules/@eslint/js/LICENSE +19 -0
- package/node_modules/@eslint/js/README.md +57 -0
- package/node_modules/@eslint/js/package.json +31 -0
- package/node_modules/@eslint/js/src/configs/eslint-all.js +211 -0
- package/node_modules/@eslint/js/src/configs/eslint-recommended.js +76 -0
- package/node_modules/@eslint/js/src/index.js +17 -0
- package/node_modules/@eslint-community/eslint-utils/LICENSE +21 -0
- package/node_modules/@eslint-community/eslint-utils/README.md +37 -0
- package/node_modules/@eslint-community/eslint-utils/index.js +2068 -0
- package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -0
- package/node_modules/@eslint-community/eslint-utils/index.mjs +2027 -0
- package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -0
- package/node_modules/@eslint-community/eslint-utils/package.json +73 -0
- package/node_modules/@eslint-community/regexpp/LICENSE +21 -0
- package/node_modules/@eslint-community/regexpp/README.md +177 -0
- package/node_modules/@eslint-community/regexpp/index.d.ts +1065 -0
- package/node_modules/@eslint-community/regexpp/index.js +2747 -0
- package/node_modules/@eslint-community/regexpp/index.js.map +1 -0
- package/node_modules/@eslint-community/regexpp/index.mjs +2737 -0
- package/node_modules/@eslint-community/regexpp/index.mjs.map +1 -0
- package/node_modules/@eslint-community/regexpp/package.json +93 -0
- package/node_modules/@humanwhocodes/config-array/LICENSE +201 -0
- package/node_modules/@humanwhocodes/config-array/README.md +342 -0
- package/node_modules/@humanwhocodes/config-array/api.js +1061 -0
- package/node_modules/@humanwhocodes/config-array/package.json +61 -0
- package/node_modules/@humanwhocodes/module-importer/CHANGELOG.md +15 -0
- package/node_modules/@humanwhocodes/module-importer/LICENSE +201 -0
- package/node_modules/@humanwhocodes/module-importer/README.md +80 -0
- package/node_modules/@humanwhocodes/module-importer/dist/module-importer.cjs +22 -0
- package/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.cts +27 -0
- package/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.ts +2 -0
- package/node_modules/@humanwhocodes/module-importer/dist/module-importer.js +18 -0
- package/node_modules/@humanwhocodes/module-importer/package.json +65 -0
- package/node_modules/@humanwhocodes/module-importer/src/module-importer.cjs +81 -0
- package/node_modules/@humanwhocodes/module-importer/src/module-importer.js +22 -0
- package/node_modules/@humanwhocodes/object-schema/.eslintrc.js +29 -0
- package/node_modules/@humanwhocodes/object-schema/.github/workflows/nodejs-test.yml +27 -0
- package/node_modules/@humanwhocodes/object-schema/.github/workflows/release-please.yml +39 -0
- package/node_modules/@humanwhocodes/object-schema/CHANGELOG.md +26 -0
- package/node_modules/@humanwhocodes/object-schema/LICENSE +29 -0
- package/node_modules/@humanwhocodes/object-schema/README.md +234 -0
- package/node_modules/@humanwhocodes/object-schema/package.json +33 -0
- package/node_modules/@humanwhocodes/object-schema/src/index.js +7 -0
- package/node_modules/@humanwhocodes/object-schema/src/merge-strategy.js +53 -0
- package/node_modules/@humanwhocodes/object-schema/src/object-schema.js +301 -0
- package/node_modules/@humanwhocodes/object-schema/src/validation-strategy.js +102 -0
- package/node_modules/@humanwhocodes/object-schema/tests/merge-strategy.js +66 -0
- package/node_modules/@humanwhocodes/object-schema/tests/object-schema.js +659 -0
- package/node_modules/@humanwhocodes/object-schema/tests/validation-strategy.js +186 -0
- package/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- package/node_modules/@nodelib/fs.scandir/README.md +171 -0
- package/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/node_modules/@nodelib/fs.stat/README.md +126 -0
- package/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/node_modules/@nodelib/fs.walk/README.md +215 -0
- package/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/node_modules/@ungap/structured-clone/.github/workflows/node.js.yml +31 -0
- package/node_modules/@ungap/structured-clone/LICENSE +15 -0
- package/node_modules/@ungap/structured-clone/README.md +95 -0
- package/node_modules/@ungap/structured-clone/cjs/deserialize.js +78 -0
- package/node_modules/@ungap/structured-clone/cjs/index.js +27 -0
- package/node_modules/@ungap/structured-clone/cjs/json.js +24 -0
- package/node_modules/@ungap/structured-clone/cjs/package.json +1 -0
- package/node_modules/@ungap/structured-clone/cjs/serialize.js +160 -0
- package/node_modules/@ungap/structured-clone/cjs/types.js +22 -0
- package/node_modules/@ungap/structured-clone/esm/deserialize.js +79 -0
- package/node_modules/@ungap/structured-clone/esm/index.js +25 -0
- package/node_modules/@ungap/structured-clone/esm/json.js +21 -0
- package/node_modules/@ungap/structured-clone/esm/serialize.js +161 -0
- package/node_modules/@ungap/structured-clone/esm/types.js +11 -0
- package/node_modules/@ungap/structured-clone/package.json +53 -0
- package/node_modules/@ungap/structured-clone/structured-json.js +1 -0
- package/package.json +1 -1
- package/rules/dayjs-with-timezone.js +29 -0
- package/rules/reducers-should-always-return.js +20 -4
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Define common types for input completion.
|
|
3
|
+
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/** @type {any} */
|
|
7
|
+
export default {};
|
|
8
|
+
|
|
9
|
+
/** @typedef {boolean | "off" | "readable" | "readonly" | "writable" | "writeable"} GlobalConf */
|
|
10
|
+
/** @typedef {0 | 1 | 2 | "off" | "warn" | "error"} SeverityConf */
|
|
11
|
+
/** @typedef {SeverityConf | [SeverityConf, ...any[]]} RuleConf */
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @typedef {Object} EcmaFeatures
|
|
15
|
+
* @property {boolean} [globalReturn] Enabling `return` statements at the top-level.
|
|
16
|
+
* @property {boolean} [jsx] Enabling JSX syntax.
|
|
17
|
+
* @property {boolean} [impliedStrict] Enabling strict mode always.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} ParserOptions
|
|
22
|
+
* @property {EcmaFeatures} [ecmaFeatures] The optional features.
|
|
23
|
+
* @property {3|5|6|7|8|9|10|11|12|2015|2016|2017|2018|2019|2020|2021} [ecmaVersion] The ECMAScript version (or revision number).
|
|
24
|
+
* @property {"script"|"module"} [sourceType] The source code type.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @typedef {Object} ConfigData
|
|
29
|
+
* @property {Record<string, boolean>} [env] The environment settings.
|
|
30
|
+
* @property {string | string[]} [extends] The path to other config files or the package name of shareable configs.
|
|
31
|
+
* @property {Record<string, GlobalConf>} [globals] The global variable settings.
|
|
32
|
+
* @property {string | string[]} [ignorePatterns] The glob patterns that ignore to lint.
|
|
33
|
+
* @property {boolean} [noInlineConfig] The flag that disables directive comments.
|
|
34
|
+
* @property {OverrideConfigData[]} [overrides] The override settings per kind of files.
|
|
35
|
+
* @property {string} [parser] The path to a parser or the package name of a parser.
|
|
36
|
+
* @property {ParserOptions} [parserOptions] The parser options.
|
|
37
|
+
* @property {string[]} [plugins] The plugin specifiers.
|
|
38
|
+
* @property {string} [processor] The processor specifier.
|
|
39
|
+
* @property {boolean} [reportUnusedDisableDirectives] The flag to report unused `eslint-disable` comments.
|
|
40
|
+
* @property {boolean} [root] The root flag.
|
|
41
|
+
* @property {Record<string, RuleConf>} [rules] The rule settings.
|
|
42
|
+
* @property {Object} [settings] The shared settings.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @typedef {Object} OverrideConfigData
|
|
47
|
+
* @property {Record<string, boolean>} [env] The environment settings.
|
|
48
|
+
* @property {string | string[]} [excludedFiles] The glob pattarns for excluded files.
|
|
49
|
+
* @property {string | string[]} [extends] The path to other config files or the package name of shareable configs.
|
|
50
|
+
* @property {string | string[]} files The glob patterns for target files.
|
|
51
|
+
* @property {Record<string, GlobalConf>} [globals] The global variable settings.
|
|
52
|
+
* @property {boolean} [noInlineConfig] The flag that disables directive comments.
|
|
53
|
+
* @property {OverrideConfigData[]} [overrides] The override settings per kind of files.
|
|
54
|
+
* @property {string} [parser] The path to a parser or the package name of a parser.
|
|
55
|
+
* @property {ParserOptions} [parserOptions] The parser options.
|
|
56
|
+
* @property {string[]} [plugins] The plugin specifiers.
|
|
57
|
+
* @property {string} [processor] The processor specifier.
|
|
58
|
+
* @property {boolean} [reportUnusedDisableDirectives] The flag to report unused `eslint-disable` comments.
|
|
59
|
+
* @property {Record<string, RuleConf>} [rules] The rule settings.
|
|
60
|
+
* @property {Object} [settings] The shared settings.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @typedef {Object} ParseResult
|
|
65
|
+
* @property {Object} ast The AST.
|
|
66
|
+
* @property {ScopeManager} [scopeManager] The scope manager of the AST.
|
|
67
|
+
* @property {Record<string, any>} [services] The services that the parser provides.
|
|
68
|
+
* @property {Record<string, string[]>} [visitorKeys] The visitor keys of the AST.
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @typedef {Object} Parser
|
|
73
|
+
* @property {(text:string, options:ParserOptions) => Object} parse The definition of global variables.
|
|
74
|
+
* @property {(text:string, options:ParserOptions) => ParseResult} [parseForESLint] The parser options that will be enabled under this environment.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @typedef {Object} Environment
|
|
79
|
+
* @property {Record<string, GlobalConf>} [globals] The definition of global variables.
|
|
80
|
+
* @property {ParserOptions} [parserOptions] The parser options that will be enabled under this environment.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @typedef {Object} LintMessage
|
|
85
|
+
* @property {number} column The 1-based column number.
|
|
86
|
+
* @property {number} [endColumn] The 1-based column number of the end location.
|
|
87
|
+
* @property {number} [endLine] The 1-based line number of the end location.
|
|
88
|
+
* @property {boolean} fatal If `true` then this is a fatal error.
|
|
89
|
+
* @property {{range:[number,number], text:string}} [fix] Information for autofix.
|
|
90
|
+
* @property {number} line The 1-based line number.
|
|
91
|
+
* @property {string} message The error message.
|
|
92
|
+
* @property {string|null} ruleId The ID of the rule which makes this message.
|
|
93
|
+
* @property {0|1|2} severity The severity of this message.
|
|
94
|
+
* @property {Array<{desc?: string, messageId?: string, fix: {range: [number, number], text: string}}>} [suggestions] Information for suggestions.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @typedef {Object} SuggestionResult
|
|
99
|
+
* @property {string} desc A short description.
|
|
100
|
+
* @property {string} [messageId] Id referencing a message for the description.
|
|
101
|
+
* @property {{ text: string, range: number[] }} fix fix result info
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @typedef {Object} Processor
|
|
106
|
+
* @property {(text:string, filename:string) => Array<string | { text:string, filename:string }>} [preprocess] The function to extract code blocks.
|
|
107
|
+
* @property {(messagesList:LintMessage[][], filename:string) => LintMessage[]} [postprocess] The function to merge messages.
|
|
108
|
+
* @property {boolean} [supportsAutofix] If `true` then it means the processor supports autofix.
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @typedef {Object} RuleMetaDocs
|
|
113
|
+
* @property {string} category The category of the rule.
|
|
114
|
+
* @property {string} description The description of the rule.
|
|
115
|
+
* @property {boolean} recommended If `true` then the rule is included in `eslint:recommended` preset.
|
|
116
|
+
* @property {string} url The URL of the rule documentation.
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @typedef {Object} RuleMeta
|
|
121
|
+
* @property {boolean} [deprecated] If `true` then the rule has been deprecated.
|
|
122
|
+
* @property {RuleMetaDocs} docs The document information of the rule.
|
|
123
|
+
* @property {"code"|"whitespace"} [fixable] The autofix type.
|
|
124
|
+
* @property {Record<string,string>} [messages] The messages the rule reports.
|
|
125
|
+
* @property {string[]} [replacedBy] The IDs of the alternative rules.
|
|
126
|
+
* @property {Array|Object} schema The option schema of the rule.
|
|
127
|
+
* @property {"problem"|"suggestion"|"layout"} type The rule type.
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @typedef {Object} Rule
|
|
132
|
+
* @property {Function} create The factory of the rule.
|
|
133
|
+
* @property {RuleMeta} meta The meta data of the rule.
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @typedef {Object} Plugin
|
|
138
|
+
* @property {Record<string, ConfigData>} [configs] The definition of plugin configs.
|
|
139
|
+
* @property {Record<string, Environment>} [environments] The definition of plugin environments.
|
|
140
|
+
* @property {Record<string, Processor>} [processors] The definition of plugin processors.
|
|
141
|
+
* @property {Record<string, Function | Rule>} [rules] The definition of plugin rules.
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Information of deprecated rules.
|
|
146
|
+
* @typedef {Object} DeprecatedRuleInfo
|
|
147
|
+
* @property {string} ruleId The rule ID.
|
|
148
|
+
* @property {string[]} replacedBy The rule IDs that replace this deprecated rule.
|
|
149
|
+
*/
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@eslint/eslintrc",
|
|
3
|
+
"version": "2.1.3",
|
|
4
|
+
"description": "The legacy ESLintRC config file format for ESLint",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/eslintrc.cjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./lib/index.js",
|
|
10
|
+
"require": "./dist/eslintrc.cjs"
|
|
11
|
+
},
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
"./universal": {
|
|
14
|
+
"import": "./lib/index-universal.js",
|
|
15
|
+
"require": "./dist/eslintrc-universal.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"lib",
|
|
20
|
+
"conf",
|
|
21
|
+
"LICENSE",
|
|
22
|
+
"dist",
|
|
23
|
+
"universal.js"
|
|
24
|
+
],
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "rollup -c",
|
|
30
|
+
"lint": "eslint . --report-unused-disable-directives",
|
|
31
|
+
"lint:fix": "npm run lint -- --fix",
|
|
32
|
+
"prepare": "npm run build",
|
|
33
|
+
"release:generate:latest": "eslint-generate-release",
|
|
34
|
+
"release:generate:alpha": "eslint-generate-prerelease alpha",
|
|
35
|
+
"release:generate:beta": "eslint-generate-prerelease beta",
|
|
36
|
+
"release:generate:rc": "eslint-generate-prerelease rc",
|
|
37
|
+
"release:publish": "eslint-publish-release",
|
|
38
|
+
"test": "mocha -R progress -c 'tests/lib/*.cjs' && c8 mocha -R progress -c 'tests/lib/**/*.js'"
|
|
39
|
+
},
|
|
40
|
+
"repository": "eslint/eslintrc",
|
|
41
|
+
"funding": "https://opencollective.com/eslint",
|
|
42
|
+
"keywords": [
|
|
43
|
+
"ESLint",
|
|
44
|
+
"ESLintRC",
|
|
45
|
+
"Configuration"
|
|
46
|
+
],
|
|
47
|
+
"author": "Nicholas C. Zakas",
|
|
48
|
+
"license": "MIT",
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/eslint/eslintrc/issues"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://github.com/eslint/eslintrc#readme",
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"c8": "^7.7.3",
|
|
55
|
+
"chai": "^4.3.4",
|
|
56
|
+
"eslint": "^7.31.0",
|
|
57
|
+
"eslint-config-eslint": "^7.0.0",
|
|
58
|
+
"eslint-plugin-jsdoc": "^35.4.1",
|
|
59
|
+
"eslint-plugin-node": "^11.1.0",
|
|
60
|
+
"eslint-release": "^3.2.0",
|
|
61
|
+
"fs-teardown": "^0.1.3",
|
|
62
|
+
"mocha": "^9.0.3",
|
|
63
|
+
"rollup": "^2.70.1",
|
|
64
|
+
"shelljs": "^0.8.4",
|
|
65
|
+
"sinon": "^11.1.2",
|
|
66
|
+
"temp-dir": "^2.0.0"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"ajv": "^6.12.4",
|
|
70
|
+
"debug": "^4.3.2",
|
|
71
|
+
"espree": "^9.6.0",
|
|
72
|
+
"globals": "^13.19.0",
|
|
73
|
+
"ignore": "^5.2.0",
|
|
74
|
+
"import-fresh": "^3.2.1",
|
|
75
|
+
"js-yaml": "^4.1.0",
|
|
76
|
+
"minimatch": "^3.1.2",
|
|
77
|
+
"strip-json-comments": "^3.1.1"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Jest (and probably some other runtimes with custom implementations of
|
|
2
|
+
// `require`) doesn't support `exports` in `package.json`, so this file is here
|
|
3
|
+
// to help them load this module. Note that it is also `.js` and not `.cjs` for
|
|
4
|
+
// the same reason - `cjs` files requires to be loaded with an extension, but
|
|
5
|
+
// since Jest doesn't respect `module` outside of ESM mode it still works in
|
|
6
|
+
// this case (and the `require` in _this_ file does specify the extension).
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line no-undef
|
|
9
|
+
module.exports = require("./dist/eslintrc-universal.cjs");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
[](https://www.npmjs.com/package/@eslint/js)
|
|
2
|
+
|
|
3
|
+
# ESLint JavaScript Plugin
|
|
4
|
+
|
|
5
|
+
[Website](https://eslint.org) | [Configure ESLint](https://eslint.org/docs/latest/use/configure) | [Rules](https://eslint.org/docs/rules/) | [Contributing](https://eslint.org/docs/latest/contribute) | [Twitter](https://twitter.com/geteslint) | [Chatroom](https://eslint.org/chat)
|
|
6
|
+
|
|
7
|
+
The beginnings of separating out JavaScript-specific functionality from ESLint.
|
|
8
|
+
|
|
9
|
+
Right now, this plugin contains two configurations:
|
|
10
|
+
|
|
11
|
+
* `recommended` - enables the rules recommended by the ESLint team (the replacement for `"eslint:recommended"`)
|
|
12
|
+
* `all` - enables all ESLint rules (the replacement for `"eslint:all"`)
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```shell
|
|
17
|
+
npm install @eslint/js -D
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
Use in your `eslint.config.js` file anytime you want to extend one of the configs:
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import js from "@eslint/js";
|
|
26
|
+
|
|
27
|
+
export default [
|
|
28
|
+
|
|
29
|
+
// apply recommended rules to JS files
|
|
30
|
+
{
|
|
31
|
+
files: ["**/*.js"],
|
|
32
|
+
rules: js.configs.recommended.rules
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
// apply recommended rules to JS files with an override
|
|
36
|
+
{
|
|
37
|
+
files: ["**/*.js"],
|
|
38
|
+
rules: {
|
|
39
|
+
...js.configs.recommended.rules,
|
|
40
|
+
"no-unused-vars": "warn"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
// apply all rules to JS files
|
|
45
|
+
{
|
|
46
|
+
files: ["**/*.js"],
|
|
47
|
+
rules: {
|
|
48
|
+
...js.configs.all.rules,
|
|
49
|
+
"no-unused-vars": "warn"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
MIT
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@eslint/js",
|
|
3
|
+
"version": "8.54.0",
|
|
4
|
+
"description": "ESLint JavaScript language implementation",
|
|
5
|
+
"main": "./src/index.js",
|
|
6
|
+
"scripts": {},
|
|
7
|
+
"files": [
|
|
8
|
+
"LICENSE",
|
|
9
|
+
"README.md",
|
|
10
|
+
"src"
|
|
11
|
+
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/eslint/eslint.git",
|
|
18
|
+
"directory": "packages/js"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://eslint.org",
|
|
21
|
+
"bugs": "https://github.com/eslint/eslint/issues/",
|
|
22
|
+
"keywords": [
|
|
23
|
+
"javascript",
|
|
24
|
+
"eslint-plugin",
|
|
25
|
+
"eslint"
|
|
26
|
+
],
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* WARNING: This file is autogenerated using the tools/update-eslint-all.js
|
|
3
|
+
* script. Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
"use strict";
|
|
6
|
+
|
|
7
|
+
/* eslint quote-props: off -- autogenerated so don't lint */
|
|
8
|
+
|
|
9
|
+
module.exports = Object.freeze({
|
|
10
|
+
"rules": {
|
|
11
|
+
"accessor-pairs": "error",
|
|
12
|
+
"array-callback-return": "error",
|
|
13
|
+
"arrow-body-style": "error",
|
|
14
|
+
"block-scoped-var": "error",
|
|
15
|
+
"camelcase": "error",
|
|
16
|
+
"capitalized-comments": "error",
|
|
17
|
+
"class-methods-use-this": "error",
|
|
18
|
+
"complexity": "error",
|
|
19
|
+
"consistent-return": "error",
|
|
20
|
+
"consistent-this": "error",
|
|
21
|
+
"constructor-super": "error",
|
|
22
|
+
"curly": "error",
|
|
23
|
+
"default-case": "error",
|
|
24
|
+
"default-case-last": "error",
|
|
25
|
+
"default-param-last": "error",
|
|
26
|
+
"dot-notation": "error",
|
|
27
|
+
"eqeqeq": "error",
|
|
28
|
+
"for-direction": "error",
|
|
29
|
+
"func-name-matching": "error",
|
|
30
|
+
"func-names": "error",
|
|
31
|
+
"func-style": "error",
|
|
32
|
+
"getter-return": "error",
|
|
33
|
+
"grouped-accessor-pairs": "error",
|
|
34
|
+
"guard-for-in": "error",
|
|
35
|
+
"id-denylist": "error",
|
|
36
|
+
"id-length": "error",
|
|
37
|
+
"id-match": "error",
|
|
38
|
+
"init-declarations": "error",
|
|
39
|
+
"line-comment-position": "error",
|
|
40
|
+
"logical-assignment-operators": "error",
|
|
41
|
+
"max-classes-per-file": "error",
|
|
42
|
+
"max-depth": "error",
|
|
43
|
+
"max-lines": "error",
|
|
44
|
+
"max-lines-per-function": "error",
|
|
45
|
+
"max-nested-callbacks": "error",
|
|
46
|
+
"max-params": "error",
|
|
47
|
+
"max-statements": "error",
|
|
48
|
+
"multiline-comment-style": "error",
|
|
49
|
+
"new-cap": "error",
|
|
50
|
+
"no-alert": "error",
|
|
51
|
+
"no-array-constructor": "error",
|
|
52
|
+
"no-async-promise-executor": "error",
|
|
53
|
+
"no-await-in-loop": "error",
|
|
54
|
+
"no-bitwise": "error",
|
|
55
|
+
"no-caller": "error",
|
|
56
|
+
"no-case-declarations": "error",
|
|
57
|
+
"no-class-assign": "error",
|
|
58
|
+
"no-compare-neg-zero": "error",
|
|
59
|
+
"no-cond-assign": "error",
|
|
60
|
+
"no-console": "error",
|
|
61
|
+
"no-const-assign": "error",
|
|
62
|
+
"no-constant-binary-expression": "error",
|
|
63
|
+
"no-constant-condition": "error",
|
|
64
|
+
"no-constructor-return": "error",
|
|
65
|
+
"no-continue": "error",
|
|
66
|
+
"no-control-regex": "error",
|
|
67
|
+
"no-debugger": "error",
|
|
68
|
+
"no-delete-var": "error",
|
|
69
|
+
"no-div-regex": "error",
|
|
70
|
+
"no-dupe-args": "error",
|
|
71
|
+
"no-dupe-class-members": "error",
|
|
72
|
+
"no-dupe-else-if": "error",
|
|
73
|
+
"no-dupe-keys": "error",
|
|
74
|
+
"no-duplicate-case": "error",
|
|
75
|
+
"no-duplicate-imports": "error",
|
|
76
|
+
"no-else-return": "error",
|
|
77
|
+
"no-empty": "error",
|
|
78
|
+
"no-empty-character-class": "error",
|
|
79
|
+
"no-empty-function": "error",
|
|
80
|
+
"no-empty-pattern": "error",
|
|
81
|
+
"no-empty-static-block": "error",
|
|
82
|
+
"no-eq-null": "error",
|
|
83
|
+
"no-eval": "error",
|
|
84
|
+
"no-ex-assign": "error",
|
|
85
|
+
"no-extend-native": "error",
|
|
86
|
+
"no-extra-bind": "error",
|
|
87
|
+
"no-extra-boolean-cast": "error",
|
|
88
|
+
"no-extra-label": "error",
|
|
89
|
+
"no-fallthrough": "error",
|
|
90
|
+
"no-func-assign": "error",
|
|
91
|
+
"no-global-assign": "error",
|
|
92
|
+
"no-implicit-coercion": "error",
|
|
93
|
+
"no-implicit-globals": "error",
|
|
94
|
+
"no-implied-eval": "error",
|
|
95
|
+
"no-import-assign": "error",
|
|
96
|
+
"no-inline-comments": "error",
|
|
97
|
+
"no-inner-declarations": "error",
|
|
98
|
+
"no-invalid-regexp": "error",
|
|
99
|
+
"no-invalid-this": "error",
|
|
100
|
+
"no-irregular-whitespace": "error",
|
|
101
|
+
"no-iterator": "error",
|
|
102
|
+
"no-label-var": "error",
|
|
103
|
+
"no-labels": "error",
|
|
104
|
+
"no-lone-blocks": "error",
|
|
105
|
+
"no-lonely-if": "error",
|
|
106
|
+
"no-loop-func": "error",
|
|
107
|
+
"no-loss-of-precision": "error",
|
|
108
|
+
"no-magic-numbers": "error",
|
|
109
|
+
"no-misleading-character-class": "error",
|
|
110
|
+
"no-multi-assign": "error",
|
|
111
|
+
"no-multi-str": "error",
|
|
112
|
+
"no-negated-condition": "error",
|
|
113
|
+
"no-nested-ternary": "error",
|
|
114
|
+
"no-new": "error",
|
|
115
|
+
"no-new-func": "error",
|
|
116
|
+
"no-new-native-nonconstructor": "error",
|
|
117
|
+
"no-new-symbol": "error",
|
|
118
|
+
"no-new-wrappers": "error",
|
|
119
|
+
"no-nonoctal-decimal-escape": "error",
|
|
120
|
+
"no-obj-calls": "error",
|
|
121
|
+
"no-object-constructor": "error",
|
|
122
|
+
"no-octal": "error",
|
|
123
|
+
"no-octal-escape": "error",
|
|
124
|
+
"no-param-reassign": "error",
|
|
125
|
+
"no-plusplus": "error",
|
|
126
|
+
"no-promise-executor-return": "error",
|
|
127
|
+
"no-proto": "error",
|
|
128
|
+
"no-prototype-builtins": "error",
|
|
129
|
+
"no-redeclare": "error",
|
|
130
|
+
"no-regex-spaces": "error",
|
|
131
|
+
"no-restricted-exports": "error",
|
|
132
|
+
"no-restricted-globals": "error",
|
|
133
|
+
"no-restricted-imports": "error",
|
|
134
|
+
"no-restricted-properties": "error",
|
|
135
|
+
"no-restricted-syntax": "error",
|
|
136
|
+
"no-return-assign": "error",
|
|
137
|
+
"no-script-url": "error",
|
|
138
|
+
"no-self-assign": "error",
|
|
139
|
+
"no-self-compare": "error",
|
|
140
|
+
"no-sequences": "error",
|
|
141
|
+
"no-setter-return": "error",
|
|
142
|
+
"no-shadow": "error",
|
|
143
|
+
"no-shadow-restricted-names": "error",
|
|
144
|
+
"no-sparse-arrays": "error",
|
|
145
|
+
"no-template-curly-in-string": "error",
|
|
146
|
+
"no-ternary": "error",
|
|
147
|
+
"no-this-before-super": "error",
|
|
148
|
+
"no-throw-literal": "error",
|
|
149
|
+
"no-undef": "error",
|
|
150
|
+
"no-undef-init": "error",
|
|
151
|
+
"no-undefined": "error",
|
|
152
|
+
"no-underscore-dangle": "error",
|
|
153
|
+
"no-unexpected-multiline": "error",
|
|
154
|
+
"no-unmodified-loop-condition": "error",
|
|
155
|
+
"no-unneeded-ternary": "error",
|
|
156
|
+
"no-unreachable": "error",
|
|
157
|
+
"no-unreachable-loop": "error",
|
|
158
|
+
"no-unsafe-finally": "error",
|
|
159
|
+
"no-unsafe-negation": "error",
|
|
160
|
+
"no-unsafe-optional-chaining": "error",
|
|
161
|
+
"no-unused-expressions": "error",
|
|
162
|
+
"no-unused-labels": "error",
|
|
163
|
+
"no-unused-private-class-members": "error",
|
|
164
|
+
"no-unused-vars": "error",
|
|
165
|
+
"no-use-before-define": "error",
|
|
166
|
+
"no-useless-backreference": "error",
|
|
167
|
+
"no-useless-call": "error",
|
|
168
|
+
"no-useless-catch": "error",
|
|
169
|
+
"no-useless-computed-key": "error",
|
|
170
|
+
"no-useless-concat": "error",
|
|
171
|
+
"no-useless-constructor": "error",
|
|
172
|
+
"no-useless-escape": "error",
|
|
173
|
+
"no-useless-rename": "error",
|
|
174
|
+
"no-useless-return": "error",
|
|
175
|
+
"no-var": "error",
|
|
176
|
+
"no-void": "error",
|
|
177
|
+
"no-warning-comments": "error",
|
|
178
|
+
"no-with": "error",
|
|
179
|
+
"object-shorthand": "error",
|
|
180
|
+
"one-var": "error",
|
|
181
|
+
"operator-assignment": "error",
|
|
182
|
+
"prefer-arrow-callback": "error",
|
|
183
|
+
"prefer-const": "error",
|
|
184
|
+
"prefer-destructuring": "error",
|
|
185
|
+
"prefer-exponentiation-operator": "error",
|
|
186
|
+
"prefer-named-capture-group": "error",
|
|
187
|
+
"prefer-numeric-literals": "error",
|
|
188
|
+
"prefer-object-has-own": "error",
|
|
189
|
+
"prefer-object-spread": "error",
|
|
190
|
+
"prefer-promise-reject-errors": "error",
|
|
191
|
+
"prefer-regex-literals": "error",
|
|
192
|
+
"prefer-rest-params": "error",
|
|
193
|
+
"prefer-spread": "error",
|
|
194
|
+
"prefer-template": "error",
|
|
195
|
+
"radix": "error",
|
|
196
|
+
"require-atomic-updates": "error",
|
|
197
|
+
"require-await": "error",
|
|
198
|
+
"require-unicode-regexp": "error",
|
|
199
|
+
"require-yield": "error",
|
|
200
|
+
"sort-imports": "error",
|
|
201
|
+
"sort-keys": "error",
|
|
202
|
+
"sort-vars": "error",
|
|
203
|
+
"strict": "error",
|
|
204
|
+
"symbol-description": "error",
|
|
205
|
+
"unicode-bom": "error",
|
|
206
|
+
"use-isnan": "error",
|
|
207
|
+
"valid-typeof": "error",
|
|
208
|
+
"vars-on-top": "error",
|
|
209
|
+
"yoda": "error"
|
|
210
|
+
}
|
|
211
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Configuration applied when a user configuration extends from
|
|
3
|
+
* eslint:recommended.
|
|
4
|
+
* @author Nicholas C. Zakas
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
9
|
+
/* eslint sort-keys: ["error", "asc"] -- Long, so make more readable */
|
|
10
|
+
|
|
11
|
+
/** @type {import("../lib/shared/types").ConfigData} */
|
|
12
|
+
module.exports = Object.freeze({
|
|
13
|
+
rules: Object.freeze({
|
|
14
|
+
"constructor-super": "error",
|
|
15
|
+
"for-direction": "error",
|
|
16
|
+
"getter-return": "error",
|
|
17
|
+
"no-async-promise-executor": "error",
|
|
18
|
+
"no-case-declarations": "error",
|
|
19
|
+
"no-class-assign": "error",
|
|
20
|
+
"no-compare-neg-zero": "error",
|
|
21
|
+
"no-cond-assign": "error",
|
|
22
|
+
"no-const-assign": "error",
|
|
23
|
+
"no-constant-condition": "error",
|
|
24
|
+
"no-control-regex": "error",
|
|
25
|
+
"no-debugger": "error",
|
|
26
|
+
"no-delete-var": "error",
|
|
27
|
+
"no-dupe-args": "error",
|
|
28
|
+
"no-dupe-class-members": "error",
|
|
29
|
+
"no-dupe-else-if": "error",
|
|
30
|
+
"no-dupe-keys": "error",
|
|
31
|
+
"no-duplicate-case": "error",
|
|
32
|
+
"no-empty": "error",
|
|
33
|
+
"no-empty-character-class": "error",
|
|
34
|
+
"no-empty-pattern": "error",
|
|
35
|
+
"no-ex-assign": "error",
|
|
36
|
+
"no-extra-boolean-cast": "error",
|
|
37
|
+
"no-extra-semi": "error",
|
|
38
|
+
"no-fallthrough": "error",
|
|
39
|
+
"no-func-assign": "error",
|
|
40
|
+
"no-global-assign": "error",
|
|
41
|
+
"no-import-assign": "error",
|
|
42
|
+
"no-inner-declarations": "error",
|
|
43
|
+
"no-invalid-regexp": "error",
|
|
44
|
+
"no-irregular-whitespace": "error",
|
|
45
|
+
"no-loss-of-precision": "error",
|
|
46
|
+
"no-misleading-character-class": "error",
|
|
47
|
+
"no-mixed-spaces-and-tabs": "error",
|
|
48
|
+
"no-new-symbol": "error",
|
|
49
|
+
"no-nonoctal-decimal-escape": "error",
|
|
50
|
+
"no-obj-calls": "error",
|
|
51
|
+
"no-octal": "error",
|
|
52
|
+
"no-prototype-builtins": "error",
|
|
53
|
+
"no-redeclare": "error",
|
|
54
|
+
"no-regex-spaces": "error",
|
|
55
|
+
"no-self-assign": "error",
|
|
56
|
+
"no-setter-return": "error",
|
|
57
|
+
"no-shadow-restricted-names": "error",
|
|
58
|
+
"no-sparse-arrays": "error",
|
|
59
|
+
"no-this-before-super": "error",
|
|
60
|
+
"no-undef": "error",
|
|
61
|
+
"no-unexpected-multiline": "error",
|
|
62
|
+
"no-unreachable": "error",
|
|
63
|
+
"no-unsafe-finally": "error",
|
|
64
|
+
"no-unsafe-negation": "error",
|
|
65
|
+
"no-unsafe-optional-chaining": "error",
|
|
66
|
+
"no-unused-labels": "error",
|
|
67
|
+
"no-unused-vars": "error",
|
|
68
|
+
"no-useless-backreference": "error",
|
|
69
|
+
"no-useless-catch": "error",
|
|
70
|
+
"no-useless-escape": "error",
|
|
71
|
+
"no-with": "error",
|
|
72
|
+
"require-yield": "error",
|
|
73
|
+
"use-isnan": "error",
|
|
74
|
+
"valid-typeof": "error"
|
|
75
|
+
})
|
|
76
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Main package entrypoint.
|
|
3
|
+
* @author Nicholas C. Zakas
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
//------------------------------------------------------------------------------
|
|
9
|
+
// Public Interface
|
|
10
|
+
//------------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
module.exports = {
|
|
13
|
+
configs: {
|
|
14
|
+
all: require("./configs/eslint-all"),
|
|
15
|
+
recommended: require("./configs/eslint-recommended")
|
|
16
|
+
}
|
|
17
|
+
};
|