@cany748/eslint-config 7.0.1 → 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 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",
@@ -1089,20 +1096,26 @@ 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",
1093
1103
  "unicorn/no-null": "off",
1094
1104
  "unicorn/no-this-outside-of-class": "off",
1095
1105
  "unicorn/no-top-level-assignment-in-function": "off",
1096
1106
  "unicorn/no-top-level-side-effects": "off",
1107
+ "unicorn/no-unreadable-for-of-expression": "off",
1097
1108
  "unicorn/prefer-await": "off",
1098
1109
  "unicorn/prefer-dom-node-html-methods": "off",
1099
1110
  "unicorn/prefer-global-this": "off",
1100
1111
  "unicorn/prefer-https": "off",
1112
+ "unicorn/prefer-simple-condition-first": "off",
1101
1113
  "unicorn/prefer-string-replace-all": "off",
1102
1114
  "unicorn/prefer-structured-clone": "off",
1103
1115
  "unicorn/prefer-ternary": "off",
1104
1116
  "unicorn/prefer-top-level-await": "off",
1105
1117
  "unicorn/prevent-abbreviations": "off",
1118
+ "unicorn/require-array-sort-compare": "off",
1106
1119
  "unicorn/single-line-block-comment-style": "off"
1107
1120
  }
1108
1121
  }];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cany748/eslint-config",
3
3
  "type": "module",
4
- "version": "7.0.1",
4
+ "version": "7.0.2",
5
5
  "exports": {
6
6
  ".": "./dist/index.mjs"
7
7
  },