@lvce-editor/eslint-config 1.9.0 → 1.10.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/index.js +6 -3
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import eslint from '@eslint/js'
|
|
2
|
+
import pluginJest from 'eslint-plugin-jest'
|
|
2
3
|
import nodePlugin from 'eslint-plugin-n'
|
|
3
4
|
import perfectionist from 'eslint-plugin-perfectionist'
|
|
4
5
|
import { createFileComposition, createFolderStructure, projectStructurePlugin } from 'eslint-plugin-project-structure'
|
|
5
|
-
import tseslint from 'typescript-eslint'
|
|
6
|
-
import process from 'node:process'
|
|
7
|
-
import { join } from 'node:path'
|
|
8
6
|
import { mkdirSync } from 'node:fs'
|
|
7
|
+
import { join } from 'node:path'
|
|
8
|
+
import process from 'node:process'
|
|
9
|
+
import tseslint from 'typescript-eslint'
|
|
9
10
|
|
|
10
11
|
const root = process.cwd()
|
|
11
12
|
|
|
@@ -58,6 +59,7 @@ const defaultConfig = tseslint.config(
|
|
|
58
59
|
},
|
|
59
60
|
},
|
|
60
61
|
},
|
|
62
|
+
pluginJest.configs['flat/recommended'],
|
|
61
63
|
{
|
|
62
64
|
ignores: [
|
|
63
65
|
'dist',
|
|
@@ -100,6 +102,7 @@ const defaultConfig = tseslint.config(
|
|
|
100
102
|
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
101
103
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
102
104
|
'@typescript-eslint/require-await': 'off',
|
|
105
|
+
'@typescript-eslint/no-unused-vars': 'off', // handled by typescript
|
|
103
106
|
},
|
|
104
107
|
},
|
|
105
108
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"description": "",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@eslint/js": "^9.18.0",
|
|
23
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
23
24
|
"eslint-plugin-n": "^17.15.1",
|
|
24
25
|
"eslint-plugin-perfectionist": "^4.6.0",
|
|
25
26
|
"eslint-plugin-project-structure": "^3.13.1",
|