@kikiutils/eslint-config 12.0.2 → 12.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.
@@ -29,7 +29,6 @@ function createTypeAwareConfig() {
29
29
  }] }],
30
30
  "ts/no-for-in-array": "error",
31
31
  "ts/no-implied-eval": "error",
32
- "ts/no-meaningless-void-operator": "error",
33
32
  "ts/no-misused-promises": "error",
34
33
  "ts/no-misused-spread": "error",
35
34
  "ts/no-redundant-type-constituents": "error",
@@ -1 +1 @@
1
- {"version":3,"file":"type-aware.js","names":[],"sources":["../../../src/_internals/configs/type-aware.ts"],"sourcesContent":["import type { TypedFlatConfigItem } from '@antfu/eslint-config';\nimport typefest from 'eslint-plugin-typefest';\n\nexport function createTypeAwareConfig(): TypedFlatConfigItem {\n return {\n languageOptions: {\n parserOptions: {\n projectService: true,\n tsconfigRootDir: process.cwd(),\n },\n },\n plugins: { typefest },\n rules: {\n // Core rules turned off here are replaced by their typed `ts/` versions, which report more accurately.\n 'dot-notation': 'off',\n 'kikiutils/no-reactive-destructure': 'error',\n 'kikiutils/no-thenable-zod-refinement': 'error',\n 'kikiutils/promise-function-async': 'error',\n 'no-implied-eval': 'off',\n 'no-throw-literal': 'off',\n 'prefer-promise-reject-errors': 'off',\n 'ts/await-thenable': 'error',\n 'ts/consistent-type-exports': 'error',\n 'ts/dot-notation': [\n 'error',\n { allowKeywords: true },\n ],\n 'ts/no-array-delete': 'error',\n 'ts/no-base-to-string': 'error',\n 'ts/no-deprecated': 'error',\n 'ts/no-duplicate-type-constituents': 'error',\n 'ts/no-floating-promises': [\n 'error',\n {\n allowForKnownSafePromises: [\n {\n from: 'package',\n name: 'SafePromise',\n package: '@kikiutils/shared',\n },\n ],\n },\n ],\n 'ts/no-for-in-array': 'error',\n 'ts/no-implied-eval': 'error',\n 'ts/no-meaningless-void-operator': 'error',\n 'ts/no-misused-promises': 'error',\n 'ts/no-misused-spread': 'error',\n 'ts/no-redundant-type-constituents': 'error',\n 'ts/no-unnecessary-boolean-literal-compare': 'error',\n 'ts/no-unnecessary-template-expression': 'error',\n 'ts/no-unnecessary-type-arguments': 'error',\n 'ts/no-unnecessary-type-assertion': 'error',\n 'ts/no-unnecessary-type-conversion': 'error',\n 'ts/no-unsafe-argument': 'error',\n 'ts/no-unsafe-assignment': 'error',\n 'ts/no-unsafe-call': 'error',\n 'ts/no-unsafe-member-access': 'error',\n 'ts/no-unsafe-return': 'error',\n 'ts/no-useless-default-assignment': 'error',\n 'ts/only-throw-error': 'error',\n // Matches only-throw-error, which allows `any` and `unknown` by default.\n 'ts/prefer-promise-reject-errors': [\n 'error',\n {\n allowThrowingAny: true,\n allowThrowingUnknown: true,\n },\n ],\n 'ts/promise-function-async': 'off',\n 'ts/require-await': 'off',\n 'ts/restrict-plus-operands': 'error',\n // Exhaustive-switch fallbacks interpolate the `never` value into their error message.\n 'ts/restrict-template-expressions': [\n 'error',\n { allowNever: true },\n ],\n 'ts/return-await': [\n 'error',\n 'always',\n ],\n 'ts/switch-exhaustiveness-check': [\n 'error',\n { considerDefaultExhaustiveForUnions: true },\n ],\n 'ts/use-unknown-in-catch-callback-variable': 'error',\n 'typefest/prefer-ts-extras-is-present-filter': 'error',\n 'typefest/prefer-ts-extras-object-entries': 'error',\n 'typefest/prefer-ts-extras-object-has-own': 'error',\n 'typefest/prefer-ts-extras-object-keys': 'error',\n 'typefest/prefer-ts-extras-object-values': 'error',\n 'typefest/prefer-type-fest-array-values': 'error',\n 'typefest/prefer-type-fest-arrayable': 'error',\n 'typefest/prefer-type-fest-unknown-record': 'error',\n 'typefest/prefer-type-fest-value-of': 'error',\n },\n };\n}\n"],"mappings":";;AAGA,SAAgB,wBAA6C;CACzD,OAAO;EACH,iBAAiB,EACb,eAAe;GACX,gBAAgB;GAChB,iBAAiB,QAAQ,IAAI;EACjC,EACJ;EACA,SAAS,EAAE,SAAS;EACpB,OAAO;GAEH,gBAAgB;GAChB,qCAAqC;GACrC,wCAAwC;GACxC,oCAAoC;GACpC,mBAAmB;GACnB,oBAAoB;GACpB,gCAAgC;GAChC,qBAAqB;GACrB,8BAA8B;GAC9B,mBAAmB,CACf,SACA,EAAE,eAAe,KAAK,CAC1B;GACA,sBAAsB;GACtB,wBAAwB;GACxB,oBAAoB;GACpB,qCAAqC;GACrC,2BAA2B,CACvB,SACA,EACI,2BAA2B,CACvB;IACI,MAAM;IACN,MAAM;IACN,SAAS;GACb,CACJ,EACJ,CACJ;GACA,sBAAsB;GACtB,sBAAsB;GACtB,mCAAmC;GACnC,0BAA0B;GAC1B,wBAAwB;GACxB,qCAAqC;GACrC,6CAA6C;GAC7C,yCAAyC;GACzC,oCAAoC;GACpC,oCAAoC;GACpC,qCAAqC;GACrC,yBAAyB;GACzB,2BAA2B;GAC3B,qBAAqB;GACrB,8BAA8B;GAC9B,uBAAuB;GACvB,oCAAoC;GACpC,uBAAuB;GAEvB,mCAAmC,CAC/B,SACA;IACI,kBAAkB;IAClB,sBAAsB;GAC1B,CACJ;GACA,6BAA6B;GAC7B,oBAAoB;GACpB,6BAA6B;GAE7B,oCAAoC,CAChC,SACA,EAAE,YAAY,KAAK,CACvB;GACA,mBAAmB,CACf,SACA,QACJ;GACA,kCAAkC,CAC9B,SACA,EAAE,oCAAoC,KAAK,CAC/C;GACA,6CAA6C;GAC7C,+CAA+C;GAC/C,4CAA4C;GAC5C,4CAA4C;GAC5C,yCAAyC;GACzC,2CAA2C;GAC3C,0CAA0C;GAC1C,uCAAuC;GACvC,4CAA4C;GAC5C,sCAAsC;EAC1C;CACJ;AACJ"}
1
+ {"version":3,"file":"type-aware.js","names":[],"sources":["../../../src/_internals/configs/type-aware.ts"],"sourcesContent":["import type { TypedFlatConfigItem } from '@antfu/eslint-config';\nimport typefest from 'eslint-plugin-typefest';\n\nexport function createTypeAwareConfig(): TypedFlatConfigItem {\n return {\n languageOptions: {\n parserOptions: {\n projectService: true,\n tsconfigRootDir: process.cwd(),\n },\n },\n plugins: { typefest },\n rules: {\n // Core rules turned off here are replaced by their typed `ts/` versions, which report more accurately.\n 'dot-notation': 'off',\n 'kikiutils/no-reactive-destructure': 'error',\n 'kikiutils/no-thenable-zod-refinement': 'error',\n 'kikiutils/promise-function-async': 'error',\n 'no-implied-eval': 'off',\n 'no-throw-literal': 'off',\n 'prefer-promise-reject-errors': 'off',\n 'ts/await-thenable': 'error',\n 'ts/consistent-type-exports': 'error',\n 'ts/dot-notation': [\n 'error',\n { allowKeywords: true },\n ],\n 'ts/no-array-delete': 'error',\n 'ts/no-base-to-string': 'error',\n 'ts/no-deprecated': 'error',\n 'ts/no-duplicate-type-constituents': 'error',\n 'ts/no-floating-promises': [\n 'error',\n {\n allowForKnownSafePromises: [\n {\n from: 'package',\n name: 'SafePromise',\n package: '@kikiutils/shared',\n },\n ],\n },\n ],\n 'ts/no-for-in-array': 'error',\n 'ts/no-implied-eval': 'error',\n 'ts/no-misused-promises': 'error',\n 'ts/no-misused-spread': 'error',\n 'ts/no-redundant-type-constituents': 'error',\n 'ts/no-unnecessary-boolean-literal-compare': 'error',\n 'ts/no-unnecessary-template-expression': 'error',\n 'ts/no-unnecessary-type-arguments': 'error',\n 'ts/no-unnecessary-type-assertion': 'error',\n 'ts/no-unnecessary-type-conversion': 'error',\n 'ts/no-unsafe-argument': 'error',\n 'ts/no-unsafe-assignment': 'error',\n 'ts/no-unsafe-call': 'error',\n 'ts/no-unsafe-member-access': 'error',\n 'ts/no-unsafe-return': 'error',\n 'ts/no-useless-default-assignment': 'error',\n 'ts/only-throw-error': 'error',\n // Matches only-throw-error, which allows `any` and `unknown` by default.\n 'ts/prefer-promise-reject-errors': [\n 'error',\n {\n allowThrowingAny: true,\n allowThrowingUnknown: true,\n },\n ],\n 'ts/promise-function-async': 'off',\n 'ts/require-await': 'off',\n 'ts/restrict-plus-operands': 'error',\n // Exhaustive-switch fallbacks interpolate the `never` value into their error message.\n 'ts/restrict-template-expressions': [\n 'error',\n { allowNever: true },\n ],\n 'ts/return-await': [\n 'error',\n 'always',\n ],\n 'ts/switch-exhaustiveness-check': [\n 'error',\n { considerDefaultExhaustiveForUnions: true },\n ],\n 'ts/use-unknown-in-catch-callback-variable': 'error',\n 'typefest/prefer-ts-extras-is-present-filter': 'error',\n 'typefest/prefer-ts-extras-object-entries': 'error',\n 'typefest/prefer-ts-extras-object-has-own': 'error',\n 'typefest/prefer-ts-extras-object-keys': 'error',\n 'typefest/prefer-ts-extras-object-values': 'error',\n 'typefest/prefer-type-fest-array-values': 'error',\n 'typefest/prefer-type-fest-arrayable': 'error',\n 'typefest/prefer-type-fest-unknown-record': 'error',\n 'typefest/prefer-type-fest-value-of': 'error',\n },\n };\n}\n"],"mappings":";;AAGA,SAAgB,wBAA6C;CACzD,OAAO;EACH,iBAAiB,EACb,eAAe;GACX,gBAAgB;GAChB,iBAAiB,QAAQ,IAAI;EACjC,EACJ;EACA,SAAS,EAAE,SAAS;EACpB,OAAO;GAEH,gBAAgB;GAChB,qCAAqC;GACrC,wCAAwC;GACxC,oCAAoC;GACpC,mBAAmB;GACnB,oBAAoB;GACpB,gCAAgC;GAChC,qBAAqB;GACrB,8BAA8B;GAC9B,mBAAmB,CACf,SACA,EAAE,eAAe,KAAK,CAC1B;GACA,sBAAsB;GACtB,wBAAwB;GACxB,oBAAoB;GACpB,qCAAqC;GACrC,2BAA2B,CACvB,SACA,EACI,2BAA2B,CACvB;IACI,MAAM;IACN,MAAM;IACN,SAAS;GACb,CACJ,EACJ,CACJ;GACA,sBAAsB;GACtB,sBAAsB;GACtB,0BAA0B;GAC1B,wBAAwB;GACxB,qCAAqC;GACrC,6CAA6C;GAC7C,yCAAyC;GACzC,oCAAoC;GACpC,oCAAoC;GACpC,qCAAqC;GACrC,yBAAyB;GACzB,2BAA2B;GAC3B,qBAAqB;GACrB,8BAA8B;GAC9B,uBAAuB;GACvB,oCAAoC;GACpC,uBAAuB;GAEvB,mCAAmC,CAC/B,SACA;IACI,kBAAkB;IAClB,sBAAsB;GAC1B,CACJ;GACA,6BAA6B;GAC7B,oBAAoB;GACpB,6BAA6B;GAE7B,oCAAoC,CAChC,SACA,EAAE,YAAY,KAAK,CACvB;GACA,mBAAmB,CACf,SACA,QACJ;GACA,kCAAkC,CAC9B,SACA,EAAE,oCAAoC,KAAK,CAC/C;GACA,6CAA6C;GAC7C,+CAA+C;GAC/C,4CAA4C;GAC5C,4CAA4C;GAC5C,yCAAyC;GACzC,2CAA2C;GAC3C,0CAA0C;GAC1C,uCAAuC;GACvC,4CAA4C;GAC5C,sCAAsC;EAC1C;CACJ;AACJ"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kikiutils/eslint-config",
3
3
  "type": "module",
4
- "version": "12.0.2",
4
+ "version": "12.0.3",
5
5
  "description": "Opinionated ESLint flat config presets layered on @antfu/eslint-config, with type-aware TypeScript and Vue checks and custom rules, built for the author's own repositories.",
6
6
  "author": "kiki-kanri",
7
7
  "license": "MIT",
@@ -43,7 +43,6 @@ export function createTypeAwareConfig(): TypedFlatConfigItem {
43
43
  ],
44
44
  'ts/no-for-in-array': 'error',
45
45
  'ts/no-implied-eval': 'error',
46
- 'ts/no-meaningless-void-operator': 'error',
47
46
  'ts/no-misused-promises': 'error',
48
47
  'ts/no-misused-spread': 'error',
49
48
  'ts/no-redundant-type-constituents': 'error',