@lzear/eslint-config 2.0.0 → 2.1.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/index.js +1 -1
- package/dist/index.mjs +19 -18
- package/package.json +15 -13
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const n=require("@eslint/js"),r=require("eslint-plugin-n"),i=require("eslint-plugin-node-import"),t=require("eslint-plugin-prefer-arrow"),o=require("eslint-plugin-prettier"),c=require("eslint-plugin-simple-import-sort"),s=require("eslint-plugin-unicorn"),e=require("globals");const l=[{ignores:["**/node_modules/**","**/dist/**",".git/**"]},n.configs.recommended,{languageOptions:{ecmaVersion:2023,sourceType:"module",globals:{...e.browser,...e.es2021,...e.node}},plugins:{"prefer-arrow":t,"node-import":i,unicorn:s,n:r,"simple-import-sort":c},rules:{...r.configs.recommended.rules,"node-import/prefer-node-protocol":2,"prefer-arrow/prefer-arrow-functions":[2,{disallowPrototype:!0,singleReturnOnly:!1,classPropertiesAllowed:!1}],"simple-import-sort/imports":2,"simple-import-sort/exports":2,...s.configs.recommended.rules}},{rules:{"n/no-missing-import":0,"prefer-const":2,"unicorn/no-abusive-eslint-disable":0,"unicorn/no-null":0,"unicorn/prevent-abbreviations":[0,{checkProperties:!0}]}},{plugins:{prettier:o},rules:o.configs.recommended.rules}],u=l;module.exports=u;
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
+
import n from "@eslint/js";
|
|
2
|
+
import o from "eslint-plugin-n";
|
|
3
|
+
import i from "eslint-plugin-node-import";
|
|
1
4
|
import t from "eslint-plugin-prefer-arrow";
|
|
2
|
-
import l from "eslint-plugin-node-import";
|
|
3
|
-
import o from "eslint-plugin-import";
|
|
4
5
|
import e from "eslint-plugin-prettier";
|
|
5
|
-
import
|
|
6
|
+
import m from "eslint-plugin-simple-import-sort";
|
|
6
7
|
import s from "eslint-plugin-unicorn";
|
|
7
|
-
import i from "eslint-plugin-sonarjs";
|
|
8
|
-
import m from "eslint-plugin-n";
|
|
9
8
|
import r from "globals";
|
|
10
|
-
|
|
11
|
-
const c = [
|
|
9
|
+
const p = [
|
|
12
10
|
{
|
|
13
11
|
ignores: ["**/node_modules/**", "**/dist/**", ".git/**"]
|
|
14
12
|
},
|
|
15
|
-
|
|
13
|
+
n.configs.recommended,
|
|
16
14
|
{
|
|
17
15
|
languageOptions: {
|
|
18
16
|
ecmaVersion: 2023,
|
|
@@ -25,16 +23,17 @@ const c = [
|
|
|
25
23
|
},
|
|
26
24
|
plugins: {
|
|
27
25
|
"prefer-arrow": t,
|
|
28
|
-
"node-import":
|
|
29
|
-
import:
|
|
30
|
-
promise
|
|
31
|
-
sonarjs
|
|
26
|
+
"node-import": i,
|
|
27
|
+
// import: eslintImport,
|
|
28
|
+
// promise,
|
|
29
|
+
// sonarjs,
|
|
32
30
|
unicorn: s,
|
|
33
|
-
n:
|
|
31
|
+
n: o,
|
|
32
|
+
"simple-import-sort": m
|
|
34
33
|
},
|
|
35
34
|
rules: {
|
|
35
|
+
// ...eslintImport.configs.recommended.rules,
|
|
36
36
|
...o.configs.recommended.rules,
|
|
37
|
-
...m.configs.recommended.rules,
|
|
38
37
|
"node-import/prefer-node-protocol": 2,
|
|
39
38
|
"prefer-arrow/prefer-arrow-functions": [
|
|
40
39
|
2,
|
|
@@ -44,8 +43,10 @@ const c = [
|
|
|
44
43
|
classPropertiesAllowed: !1
|
|
45
44
|
}
|
|
46
45
|
],
|
|
47
|
-
...
|
|
48
|
-
|
|
46
|
+
// ...promise.configs.recommended.rules,
|
|
47
|
+
"simple-import-sort/imports": 2,
|
|
48
|
+
"simple-import-sort/exports": 2,
|
|
49
|
+
// ...sonarjs.configs.recommended.rules,
|
|
49
50
|
...s.configs.recommended.rules
|
|
50
51
|
}
|
|
51
52
|
},
|
|
@@ -64,7 +65,7 @@ const c = [
|
|
|
64
65
|
// @ts-expect-error - no types
|
|
65
66
|
rules: e.configs.recommended.rules
|
|
66
67
|
}
|
|
67
|
-
],
|
|
68
|
+
], w = p;
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
+
w as default
|
|
70
71
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lzear/eslint-config",
|
|
3
3
|
"description": "ESLint shareable config",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"repository": "lzear/eslint-config",
|
|
6
6
|
"author": "lzear",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,23 +42,25 @@
|
|
|
42
42
|
"eslint-plugin-unicorn": "^48.0.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"globals": "^
|
|
45
|
+
"globals": "^15.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@eslint/js": "^
|
|
49
|
-
"@types/eslint__js": "^8.42.
|
|
50
|
-
"eslint": "^
|
|
51
|
-
"eslint-define-config": "^1.
|
|
52
|
-
"eslint-plugin-import": "^2.
|
|
53
|
-
"eslint-plugin-n": "^
|
|
48
|
+
"@eslint/js": "^9.1.1",
|
|
49
|
+
"@types/eslint__js": "^8.42.3",
|
|
50
|
+
"eslint": "^9.1.0",
|
|
51
|
+
"eslint-define-config": "^2.1.0",
|
|
52
|
+
"eslint-plugin-import": "^2.29.1",
|
|
53
|
+
"eslint-plugin-n": "^17.2.1",
|
|
54
54
|
"eslint-plugin-node-import": "^1.0.4",
|
|
55
55
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
56
|
-
"eslint-plugin-prettier": "^5.
|
|
56
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
57
57
|
"eslint-plugin-promise": "^6.1.1",
|
|
58
|
-
"eslint-plugin-
|
|
59
|
-
"eslint-plugin-
|
|
60
|
-
"
|
|
61
|
-
"vite
|
|
58
|
+
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
59
|
+
"eslint-plugin-sonarjs": "^0.25.1",
|
|
60
|
+
"eslint-plugin-unicorn": "^52.0.0",
|
|
61
|
+
"vite": "^5.2.10",
|
|
62
|
+
"vite-plugin-dts": "^3.8.3",
|
|
63
|
+
"vitest": "^1.5.0"
|
|
62
64
|
},
|
|
63
65
|
"volta": {
|
|
64
66
|
"extends": "../package.json"
|