@cany748/eslint-config 7.0.0 → 7.0.2
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/dist/index.d.mts +1 -1
- package/dist/index.mjs +20 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -12375,7 +12375,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
12375
12375
|
onlyEquality?: boolean;
|
|
12376
12376
|
}];
|
|
12377
12377
|
// Names of all the configs
|
|
12378
|
-
type ConfigNames = '@eslint-community/eslint-comments' | 'formatter/setup' | 'formatter/css' | 'formatter/scss' | 'formatter/less' | 'formatter/graphql' | 'formatter/html' | 'formatter/markdown' | 'imports' | 'javascript/rules' | 'jsonc' | 'node' | 'regexp' | 'sort/package-json' | 'test' | 'typescript/setup' | 'typescript/parser' | 'typescript/rules' | 'unicorn' | 'unocss' | 'vue';
|
|
12378
|
+
type ConfigNames = '@eslint-community/eslint-comments' | 'formatter/setup' | 'formatter/css' | 'formatter/scss' | 'formatter/less' | 'formatter/graphql' | 'formatter/html' | 'formatter/markdown' | 'imports' | 'javascript/rules' | 'jsonc' | 'node' | 'regexp' | 'sort/package-json' | 'test' | 'typescript/setup' | 'typescript/parser' | 'typescript/javascript-parser' | 'typescript/rules' | 'unicorn' | 'unocss' | 'vue';
|
|
12379
12379
|
//#endregion
|
|
12380
12380
|
//#region src/types.d.ts
|
|
12381
12381
|
export type Awaitable<T> = T | Promise<T>;
|
package/dist/index.mjs
CHANGED
|
@@ -960,6 +960,8 @@ async function test(options = {}) {
|
|
|
960
960
|
"no-unused-expressions": "off",
|
|
961
961
|
"n/prefer-global/process": "off",
|
|
962
962
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
963
|
+
"unicorn/no-global-object-property-assignment": "off",
|
|
964
|
+
"e18e/prefer-static-regex": "off",
|
|
963
965
|
...overrides
|
|
964
966
|
}
|
|
965
967
|
}];
|
|
@@ -1006,6 +1008,11 @@ async function typescript(options = {}) {
|
|
|
1006
1008
|
plugins: { "@typescript-eslint": pluginTs }
|
|
1007
1009
|
},
|
|
1008
1010
|
...isTypeAware ? [makeParser(false, files), makeParser(true, filesTypeAware, ignoresTypeAware)] : [makeParser(false, files)],
|
|
1011
|
+
{
|
|
1012
|
+
files: [GLOB_JS, GLOB_JSX],
|
|
1013
|
+
languageOptions: { parser: parserTs },
|
|
1014
|
+
name: "typescript/javascript-parser"
|
|
1015
|
+
},
|
|
1009
1016
|
{
|
|
1010
1017
|
files,
|
|
1011
1018
|
name: "typescript/rules",
|
|
@@ -1086,18 +1093,30 @@ function unicorn() {
|
|
|
1086
1093
|
"unicorn/consistent-function-scoping": "off",
|
|
1087
1094
|
"unicorn/filename-case": "off",
|
|
1088
1095
|
"unicorn/import-style": "off",
|
|
1096
|
+
"unicorn/max-nested-calls": "off",
|
|
1089
1097
|
"unicorn/name-replacements": "off",
|
|
1090
1098
|
"unicorn/no-array-callback-reference": "off",
|
|
1099
|
+
"unicorn/no-array-sort": "off",
|
|
1100
|
+
"unicorn/no-asterisk-prefix-in-documentation-comments": "off",
|
|
1101
|
+
"unicorn/no-break-in-nested-loop": "off",
|
|
1091
1102
|
"unicorn/no-computed-property-existence-check": "off",
|
|
1092
1103
|
"unicorn/no-null": "off",
|
|
1104
|
+
"unicorn/no-this-outside-of-class": "off",
|
|
1093
1105
|
"unicorn/no-top-level-assignment-in-function": "off",
|
|
1094
1106
|
"unicorn/no-top-level-side-effects": "off",
|
|
1107
|
+
"unicorn/no-unreadable-for-of-expression": "off",
|
|
1095
1108
|
"unicorn/prefer-await": "off",
|
|
1109
|
+
"unicorn/prefer-dom-node-html-methods": "off",
|
|
1096
1110
|
"unicorn/prefer-global-this": "off",
|
|
1111
|
+
"unicorn/prefer-https": "off",
|
|
1112
|
+
"unicorn/prefer-simple-condition-first": "off",
|
|
1097
1113
|
"unicorn/prefer-string-replace-all": "off",
|
|
1098
1114
|
"unicorn/prefer-structured-clone": "off",
|
|
1115
|
+
"unicorn/prefer-ternary": "off",
|
|
1099
1116
|
"unicorn/prefer-top-level-await": "off",
|
|
1100
|
-
"unicorn/prevent-abbreviations": "off"
|
|
1117
|
+
"unicorn/prevent-abbreviations": "off",
|
|
1118
|
+
"unicorn/require-array-sort-compare": "off",
|
|
1119
|
+
"unicorn/single-line-block-comment-style": "off"
|
|
1101
1120
|
}
|
|
1102
1121
|
}];
|
|
1103
1122
|
}
|