@lvce-editor/eslint-config 1.13.0 → 1.14.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 +16 -0
- package/package.json +4 -3
package/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import { join } from 'node:path'
|
|
|
8
8
|
import process from 'node:process'
|
|
9
9
|
import tseslint from 'typescript-eslint'
|
|
10
10
|
import packageJson from 'eslint-plugin-package-json/configs/recommended'
|
|
11
|
+
import eslintPluginUnicorn from 'eslint-plugin-unicorn'
|
|
11
12
|
|
|
12
13
|
const root = process.cwd()
|
|
13
14
|
|
|
@@ -119,6 +120,21 @@ const defaultConfig = tseslint.config(
|
|
|
119
120
|
files: ['**/package.json'],
|
|
120
121
|
extends: [packageJson],
|
|
121
122
|
},
|
|
123
|
+
eslintPluginUnicorn.configs['flat/recommended'],
|
|
124
|
+
{
|
|
125
|
+
rules: {
|
|
126
|
+
'unicorn/filename-case': 'off',
|
|
127
|
+
'unicorn/prefer-event-target': 'off',
|
|
128
|
+
'unicorn/no-null': 'off',
|
|
129
|
+
'unicorn/prevent-abbreviations': 'off',
|
|
130
|
+
'unicorn/import-style': 'off',
|
|
131
|
+
'unicorn/no-useless-undefined': 'off',
|
|
132
|
+
'unicorn/switch-case-braces': 'off',
|
|
133
|
+
'unicorn/prefer-add-event-listener': 'off',
|
|
134
|
+
'unicorn/prefer-set-has': 'off',
|
|
135
|
+
'unicorn/prefer-node-protocol': 'off',
|
|
136
|
+
},
|
|
137
|
+
},
|
|
122
138
|
{
|
|
123
139
|
ignores: [
|
|
124
140
|
'dist',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
"@eslint/js": "^9.18.0",
|
|
23
23
|
"eslint-plugin-jest": "^28.11.0",
|
|
24
24
|
"eslint-plugin-n": "^17.15.1",
|
|
25
|
+
"eslint-plugin-package-json": "^0.19.0",
|
|
25
26
|
"eslint-plugin-perfectionist": "^4.6.0",
|
|
26
27
|
"eslint-plugin-project-structure": "^3.13.1",
|
|
27
|
-
"
|
|
28
|
-
"eslint
|
|
28
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
29
|
+
"typescript-eslint": "^8.20.0"
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
31
32
|
"eslint": ">= 9"
|