@cany748/eslint-config 7.0.1 → 7.0.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/dist/index.d.mts +1 -1
- package/dist/index.mjs +18 -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",
|
|
@@ -1058,7 +1065,7 @@ async function typescript(options = {}) {
|
|
|
1058
1065
|
rules: {
|
|
1059
1066
|
...tsconfigPath ? {
|
|
1060
1067
|
...pluginTs.configs["recommended-type-checked-only"].rules,
|
|
1061
|
-
"@typescript-eslint/no-confusing-void-expression": "error",
|
|
1068
|
+
"@typescript-eslint/no-confusing-void-expression": ["error", { ignoreArrowShorthand: true }],
|
|
1062
1069
|
"@typescript-eslint/promise-function-async": "error",
|
|
1063
1070
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
1064
1071
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
@@ -1089,20 +1096,30 @@ function unicorn() {
|
|
|
1089
1096
|
"unicorn/max-nested-calls": "off",
|
|
1090
1097
|
"unicorn/name-replacements": "off",
|
|
1091
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",
|
|
1092
1102
|
"unicorn/no-computed-property-existence-check": "off",
|
|
1103
|
+
"unicorn/no-duplicate-loops": "off",
|
|
1104
|
+
"unicorn/no-mismatched-map-key": "off",
|
|
1093
1105
|
"unicorn/no-null": "off",
|
|
1094
1106
|
"unicorn/no-this-outside-of-class": "off",
|
|
1095
1107
|
"unicorn/no-top-level-assignment-in-function": "off",
|
|
1096
1108
|
"unicorn/no-top-level-side-effects": "off",
|
|
1109
|
+
"unicorn/no-unreadable-for-of-expression": "off",
|
|
1097
1110
|
"unicorn/prefer-await": "off",
|
|
1111
|
+
"unicorn/prefer-continue": "off",
|
|
1098
1112
|
"unicorn/prefer-dom-node-html-methods": "off",
|
|
1113
|
+
"unicorn/prefer-early-return": "off",
|
|
1099
1114
|
"unicorn/prefer-global-this": "off",
|
|
1100
1115
|
"unicorn/prefer-https": "off",
|
|
1116
|
+
"unicorn/prefer-simple-condition-first": "off",
|
|
1101
1117
|
"unicorn/prefer-string-replace-all": "off",
|
|
1102
1118
|
"unicorn/prefer-structured-clone": "off",
|
|
1103
1119
|
"unicorn/prefer-ternary": "off",
|
|
1104
1120
|
"unicorn/prefer-top-level-await": "off",
|
|
1105
1121
|
"unicorn/prevent-abbreviations": "off",
|
|
1122
|
+
"unicorn/require-array-sort-compare": "off",
|
|
1106
1123
|
"unicorn/single-line-block-comment-style": "off"
|
|
1107
1124
|
}
|
|
1108
1125
|
}];
|