@ocavue/eslint-config 1.6.0 → 1.7.0
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/eslint.config.d.ts +1 -1
- package/dist/src/antfu.d.ts +1 -1
- package/dist/src/antfu.d.ts.map +1 -1
- package/dist/src/basic.d.ts +1 -1
- package/dist/src/basic.d.ts.map +1 -1
- package/dist/src/imports.d.ts +1 -1
- package/dist/src/imports.d.ts.map +1 -1
- package/dist/src/markdown.d.ts +1 -1
- package/dist/src/markdown.d.ts.map +1 -1
- package/dist/src/no-only-tests.d.ts +1 -1
- package/dist/src/no-only-tests.d.ts.map +1 -1
- package/dist/src/package-json.d.ts +1 -1
- package/dist/src/package-json.d.ts.map +1 -1
- package/dist/src/prettier.d.ts +1 -1
- package/dist/src/prettier.d.ts.map +1 -1
- package/dist/src/react.d.ts +1 -1
- package/dist/src/react.d.ts.map +1 -1
- package/dist/src/shared.d.ts +1 -0
- package/dist/src/shared.d.ts.map +1 -1
- package/dist/src/typescript.d.ts +1 -1
- package/dist/src/typescript.d.ts.map +1 -1
- package/dist/src/unicorn.d.ts +1 -1
- package/dist/src/unicorn.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/antfu.js +2 -1
- package/src/basic.js +2 -5
- package/src/imports.js +2 -1
- package/src/markdown.js +1 -1
- package/src/no-only-tests.js +2 -1
- package/src/package-json.js +2 -1
- package/src/prettier.js +2 -1
- package/src/react.js +1 -1
- package/src/shared.js +2 -0
- package/src/typescript.js +19 -3
- package/src/unicorn.js +2 -1
package/dist/eslint.config.d.ts
CHANGED
package/dist/src/antfu.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function antfu(): import("eslint
|
|
1
|
+
export function antfu(): import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>[];
|
|
2
2
|
//# sourceMappingURL=antfu.d.ts.map
|
package/dist/src/antfu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"antfu.d.ts","sourceRoot":"","sources":["../../src/antfu.js"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"antfu.d.ts","sourceRoot":"","sources":["../../src/antfu.js"],"names":[],"mappings":"AAEA,mGAeC"}
|
package/dist/src/basic.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function basic(): import("eslint
|
|
1
|
+
export function basic(): import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>[];
|
|
2
2
|
//# sourceMappingURL=basic.d.ts.map
|
package/dist/src/basic.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic.d.ts","sourceRoot":"","sources":["../../src/basic.js"],"names":[],"mappings":"AAWA,
|
|
1
|
+
{"version":3,"file":"basic.d.ts","sourceRoot":"","sources":["../../src/basic.js"],"names":[],"mappings":"AAWA,mGAcC"}
|
package/dist/src/imports.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function imports(): import("eslint
|
|
1
|
+
export function imports(): import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>[];
|
|
2
2
|
//# sourceMappingURL=imports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/imports.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/imports.js"],"names":[],"mappings":"AAKA,qGA2CC"}
|
package/dist/src/markdown.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function markdown(): import("eslint
|
|
1
|
+
export function markdown(): import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>[];
|
|
2
2
|
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/markdown.js"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/markdown.js"],"names":[],"mappings":"AAMA,sGAsBC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function noOnlyTests(): import("eslint
|
|
1
|
+
export function noOnlyTests(): import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>[];
|
|
2
2
|
//# sourceMappingURL=no-only-tests.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-only-tests.d.ts","sourceRoot":"","sources":["../../src/no-only-tests.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"no-only-tests.d.ts","sourceRoot":"","sources":["../../src/no-only-tests.js"],"names":[],"mappings":"AAKA,yGAeC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Sort package.json keys
|
|
3
3
|
*/
|
|
4
|
-
export function packageJson(): import("eslint
|
|
4
|
+
export function packageJson(): import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>[];
|
|
5
5
|
//# sourceMappingURL=package-json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/package-json.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/package-json.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,yGA0EC"}
|
package/dist/src/prettier.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* Notice that this config does not run `prettier` as an ESLint rule, so you
|
|
5
5
|
* have to run `pretter` separately for formatting.
|
|
6
6
|
*/
|
|
7
|
-
export function prettier(): import("eslint
|
|
7
|
+
export function prettier(): import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>[];
|
|
8
8
|
//# sourceMappingURL=prettier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/prettier.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/prettier.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,sGAYC"}
|
package/dist/src/react.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function react(): import("eslint
|
|
1
|
+
export function react(): import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>[];
|
|
2
2
|
//# sourceMappingURL=react.d.ts.map
|
package/dist/src/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.js"],"names":[],"mappings":"AASA,
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.js"],"names":[],"mappings":"AASA,mGAwCC"}
|
package/dist/src/shared.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export const GLOB_JS: "**/*.?([cm])js";
|
|
|
4
4
|
export const GLOB_JSX: "**/*.?([cm])jsx";
|
|
5
5
|
export const GLOB_TS: "**/*.?([cm])ts";
|
|
6
6
|
export const GLOB_TSX: "**/*.?([cm])tsx";
|
|
7
|
+
export const GLOB_TEST: "**/*.(spec|test).?([cm])[jt]s?(x)";
|
|
7
8
|
export const GLOB_STYLE: "**/*.{c,le,sc}ss";
|
|
8
9
|
export const GLOB_CSS: "**/*.css";
|
|
9
10
|
export const GLOB_LESS: "**/*.less";
|
package/dist/src/shared.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/shared.js"],"names":[],"mappings":"AAEA,8CAA8C;AAC9C,+CAA+C;AAE/C,uCAAuC;AACvC,yCAAyC;AAEzC,uCAAuC;AACvC,yCAAyC;AAEzC,4CAA4C;AAC5C,kCAAkC;AAClC,oCAAoC;AACpC,oCAAoC;AAEpC,oCAAoC;AACpC,sCAAsC;AACtC,sCAAsC;AAEtC,kDAAkD;AAElD,sCAAsC;AACtC,kCAAkC;AAClC,uCAAuC;AACvC,uCAAuC;AAEvC,oKASE;AAEF,kDAAyE;AACzE,kCAAyD;AACzD,mGAIE;AACF,saAyBE;AAEF,kCAGsC"}
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/shared.js"],"names":[],"mappings":"AAEA,8CAA8C;AAC9C,+CAA+C;AAE/C,uCAAuC;AACvC,yCAAyC;AAEzC,uCAAuC;AACvC,yCAAyC;AAEzC,4DAA4D;AAE5D,4CAA4C;AAC5C,kCAAkC;AAClC,oCAAoC;AACpC,oCAAoC;AAEpC,oCAAoC;AACpC,sCAAsC;AACtC,sCAAsC;AAEtC,kDAAkD;AAElD,sCAAsC;AACtC,kCAAkC;AAClC,uCAAuC;AACvC,uCAAuC;AAEvC,oKASE;AAEF,kDAAyE;AACzE,kCAAyD;AACzD,mGAIE;AACF,saAyBE;AAEF,kCAGsC"}
|
package/dist/src/typescript.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function typescript(): import("eslint
|
|
1
|
+
export function typescript(): import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>[];
|
|
2
2
|
export { tseslint };
|
|
3
3
|
import tseslint from 'typescript-eslint';
|
|
4
4
|
//# sourceMappingURL=typescript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.js"],"names":[],"mappings":"AAWA,
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.js"],"names":[],"mappings":"AAWA,wGA4FC;;qBAlGoB,mBAAmB"}
|
package/dist/src/unicorn.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function unicorn(): import("eslint
|
|
1
|
+
export function unicorn(): import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>[];
|
|
2
2
|
//# sourceMappingURL=unicorn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/unicorn.js"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/unicorn.js"],"names":[],"mappings":"AAMA,qGAsEC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocavue/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"packageManager": "pnpm@8.15.8",
|
|
6
6
|
"description": "",
|
|
7
7
|
"author": "ocavue <ocavue@gmail.com>",
|
|
@@ -36,26 +36,26 @@
|
|
|
36
36
|
"@types/eslint": "^8.56.10",
|
|
37
37
|
"@types/eslint-plugin-markdown": "^2.0.2",
|
|
38
38
|
"eslint-config-prettier": "^9.1.0",
|
|
39
|
-
"eslint-define-config": "^2.1.0",
|
|
40
39
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
41
|
-
"eslint-plugin-antfu": "^2.3.
|
|
40
|
+
"eslint-plugin-antfu": "^2.3.4",
|
|
42
41
|
"eslint-plugin-deprecation": "^3.0.0",
|
|
43
42
|
"eslint-plugin-import": "^2.29.1",
|
|
44
43
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
45
44
|
"eslint-plugin-markdown": "^5.0.0",
|
|
46
45
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
47
|
-
"eslint-plugin-react": "^7.34.
|
|
46
|
+
"eslint-plugin-react": "^7.34.3",
|
|
48
47
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
49
|
-
"eslint-plugin-unicorn": "^
|
|
48
|
+
"eslint-plugin-unicorn": "^54.0.0",
|
|
50
49
|
"jsonc-eslint-parser": "^2.4.0",
|
|
51
|
-
"typescript-eslint": "^7.
|
|
50
|
+
"typescript-eslint": "^7.15.0"
|
|
52
51
|
},
|
|
53
52
|
"devDependencies": {
|
|
54
53
|
"@antfu/ni": "^0.21.12",
|
|
55
|
-
"@types/
|
|
54
|
+
"@types/eslint-config-prettier": "^6.11.3",
|
|
55
|
+
"@types/node": "^20.14.9",
|
|
56
56
|
"eslint": "^8.57.0",
|
|
57
|
-
"prettier": "^3.3.
|
|
58
|
-
"typescript": "^5.
|
|
57
|
+
"prettier": "^3.3.2",
|
|
58
|
+
"typescript": "^5.5.3"
|
|
59
59
|
},
|
|
60
60
|
"renovate": {
|
|
61
61
|
"extends": [
|
package/src/antfu.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import antfuPlugin from 'eslint-plugin-antfu'
|
|
2
2
|
|
|
3
3
|
export function antfu() {
|
|
4
|
-
/** @type {import('eslint
|
|
4
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
5
5
|
const config = [
|
|
6
6
|
{
|
|
7
|
+
name: 'antfu',
|
|
7
8
|
plugins: {
|
|
8
9
|
antfu: antfuPlugin,
|
|
9
10
|
},
|
package/src/basic.js
CHANGED
|
@@ -10,12 +10,9 @@ import { typescript } from './typescript.js'
|
|
|
10
10
|
import { unicorn } from './unicorn.js'
|
|
11
11
|
|
|
12
12
|
export function basic() {
|
|
13
|
-
/** @type {import('eslint
|
|
13
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
14
14
|
const config = [
|
|
15
|
-
{
|
|
16
|
-
// @ts-expect-error: 'readonly' and cannot be assigned to the mutable type 'string[]'
|
|
17
|
-
ignores: GLOB_EXCLUDE,
|
|
18
|
-
},
|
|
15
|
+
{ ignores: [...GLOB_EXCLUDE] },
|
|
19
16
|
...typescript(),
|
|
20
17
|
...imports(),
|
|
21
18
|
...packageJson(),
|
package/src/imports.js
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
import importPlugin from 'eslint-plugin-import'
|
|
5
5
|
|
|
6
6
|
export function imports() {
|
|
7
|
-
/** @type {import('eslint
|
|
7
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
8
8
|
const config = [
|
|
9
9
|
{
|
|
10
|
+
name: 'import',
|
|
10
11
|
plugins: {
|
|
11
12
|
import: importPlugin,
|
|
12
13
|
},
|
package/src/markdown.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as markdownPlugin from 'eslint-plugin-markdown'
|
|
|
5
5
|
import { GLOB_MARKDOWN, GLOB_SRC, GLOB_VUE } from './shared.js'
|
|
6
6
|
|
|
7
7
|
export function markdown() {
|
|
8
|
-
/** @type {import('eslint
|
|
8
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
9
9
|
const config = [
|
|
10
10
|
// @ts-expect-error: @types/eslint-plugin-markdown is not up to date
|
|
11
11
|
...markdownPlugin.configs.recommended,
|
package/src/no-only-tests.js
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
import plugin from 'eslint-plugin-no-only-tests'
|
|
5
5
|
|
|
6
6
|
export function noOnlyTests() {
|
|
7
|
-
/** @type {import('eslint
|
|
7
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
8
8
|
const config = [
|
|
9
9
|
{
|
|
10
|
+
name: 'no-only-tests',
|
|
10
11
|
plugins: {
|
|
11
12
|
'no-only-tests': plugin,
|
|
12
13
|
},
|
package/src/package-json.js
CHANGED
|
@@ -9,9 +9,10 @@ import { GLOB_PACKAGE_JSON } from './shared.js'
|
|
|
9
9
|
* Sort package.json keys
|
|
10
10
|
*/
|
|
11
11
|
export function packageJson() {
|
|
12
|
-
/** @type {import('eslint
|
|
12
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
13
13
|
const config = [
|
|
14
14
|
{
|
|
15
|
+
name: 'package-json',
|
|
15
16
|
files: [GLOB_PACKAGE_JSON],
|
|
16
17
|
languageOptions: {
|
|
17
18
|
parser,
|
package/src/prettier.js
CHANGED
|
@@ -7,9 +7,10 @@ import prettierConfig from 'eslint-config-prettier'
|
|
|
7
7
|
* have to run `pretter` separately for formatting.
|
|
8
8
|
*/
|
|
9
9
|
export function prettier() {
|
|
10
|
-
/** @type {import('eslint
|
|
10
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
11
11
|
const config = [
|
|
12
12
|
{
|
|
13
|
+
name: 'prettier',
|
|
13
14
|
rules: {
|
|
14
15
|
...prettierConfig.rules,
|
|
15
16
|
},
|
package/src/react.js
CHANGED
|
@@ -8,7 +8,7 @@ import reactHooksPlugin from 'eslint-plugin-react-hooks'
|
|
|
8
8
|
import { GLOB_TS, GLOB_TSX } from './shared.js'
|
|
9
9
|
|
|
10
10
|
export function react() {
|
|
11
|
-
/** @type {import('eslint
|
|
11
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
12
12
|
const config = [
|
|
13
13
|
{
|
|
14
14
|
files: [GLOB_TS, GLOB_TSX],
|
package/src/shared.js
CHANGED
|
@@ -9,6 +9,8 @@ export const GLOB_JSX = '**/*.?([cm])jsx'
|
|
|
9
9
|
export const GLOB_TS = '**/*.?([cm])ts'
|
|
10
10
|
export const GLOB_TSX = '**/*.?([cm])tsx'
|
|
11
11
|
|
|
12
|
+
export const GLOB_TEST = '**/*.(spec|test).?([cm])[jt]s?(x)'
|
|
13
|
+
|
|
12
14
|
export const GLOB_STYLE = '**/*.{c,le,sc}ss'
|
|
13
15
|
export const GLOB_CSS = '**/*.css'
|
|
14
16
|
export const GLOB_LESS = '**/*.less'
|
package/src/typescript.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import deprecationPlugin from 'eslint-plugin-deprecation'
|
|
6
6
|
import tseslint from 'typescript-eslint'
|
|
7
7
|
|
|
8
|
-
import { GLOB_JS, GLOB_JSX, GLOB_TS, GLOB_TSX } from './shared.js'
|
|
8
|
+
import { GLOB_JS, GLOB_JSX, GLOB_TEST, GLOB_TS, GLOB_TSX } from './shared.js'
|
|
9
9
|
|
|
10
10
|
export { tseslint }
|
|
11
11
|
|
|
@@ -14,11 +14,13 @@ export function typescript() {
|
|
|
14
14
|
.map((config) => config.rules || {})
|
|
15
15
|
.reduce((acc, cur) => ({ ...acc, ...cur }), {})
|
|
16
16
|
|
|
17
|
-
/** @type {import('eslint
|
|
17
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
18
18
|
const config = [
|
|
19
19
|
{
|
|
20
|
+
name: 'typescript',
|
|
20
21
|
files: [GLOB_TS, GLOB_TSX, GLOB_JS, GLOB_JSX],
|
|
21
22
|
languageOptions: {
|
|
23
|
+
// @ts-expect-error: conflict type
|
|
22
24
|
parser: tseslint.parser,
|
|
23
25
|
parserOptions: {
|
|
24
26
|
project: true,
|
|
@@ -41,8 +43,8 @@ export function typescript() {
|
|
|
41
43
|
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
|
42
44
|
'@typescript-eslint/array-type': 'off',
|
|
43
45
|
'@typescript-eslint/dot-notation': 'off',
|
|
44
|
-
'@typescript-eslint/no-unsafe-call': 'warn',
|
|
45
46
|
'@typescript-eslint/restrict-plus-operands': 'warn',
|
|
47
|
+
'@typescript-eslint/no-unsafe-call': 'warn',
|
|
46
48
|
'@typescript-eslint/no-unsafe-return': 'warn',
|
|
47
49
|
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
48
50
|
'@typescript-eslint/no-unsafe-member-access': 'warn',
|
|
@@ -76,12 +78,26 @@ export function typescript() {
|
|
|
76
78
|
},
|
|
77
79
|
},
|
|
78
80
|
{
|
|
81
|
+
name: 'typescript-js',
|
|
79
82
|
files: [GLOB_JS, GLOB_JSX],
|
|
80
83
|
rules: {
|
|
81
84
|
'@typescript-eslint/no-require-imports': 'off',
|
|
82
85
|
'@typescript-eslint/no-var-requires': 'off',
|
|
83
86
|
},
|
|
84
87
|
},
|
|
88
|
+
{
|
|
89
|
+
name: 'typescript-test',
|
|
90
|
+
files: [GLOB_TEST],
|
|
91
|
+
rules: {
|
|
92
|
+
'@typescript-eslint/no-unsafe-call': 'warn',
|
|
93
|
+
'@typescript-eslint/no-unsafe-return': 'warn',
|
|
94
|
+
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
95
|
+
'@typescript-eslint/no-unsafe-member-access': 'warn',
|
|
96
|
+
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
|
97
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
98
|
+
'@typescript-eslint/no-empty-function': 'off',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
85
101
|
]
|
|
86
102
|
|
|
87
103
|
return config
|
package/src/unicorn.js
CHANGED
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
import plugin from 'eslint-plugin-unicorn'
|
|
6
6
|
|
|
7
7
|
export function unicorn() {
|
|
8
|
-
/** @type {import('eslint
|
|
8
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
9
9
|
const config = [
|
|
10
10
|
{
|
|
11
|
+
name: 'unicorn',
|
|
11
12
|
plugins: {
|
|
12
13
|
unicorn: plugin,
|
|
13
14
|
},
|