@ririd/eslint-config 1.3.0 → 1.3.2
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.cjs +32 -1
- package/dist/index.js +32 -1
- package/package.json +14 -13
package/dist/index.cjs
CHANGED
|
@@ -63,7 +63,38 @@ async function all() {
|
|
|
63
63
|
args: "after-used",
|
|
64
64
|
argsIgnorePattern: "^_"
|
|
65
65
|
}
|
|
66
|
-
]
|
|
66
|
+
],
|
|
67
|
+
"@stylistic/indent": ["error", 2, {
|
|
68
|
+
ArrayExpression: 1,
|
|
69
|
+
CallExpression: {
|
|
70
|
+
arguments: 1
|
|
71
|
+
},
|
|
72
|
+
flatTernaryExpressions: false,
|
|
73
|
+
FunctionDeclaration: {
|
|
74
|
+
body: 1,
|
|
75
|
+
parameters: 1
|
|
76
|
+
},
|
|
77
|
+
FunctionExpression: {
|
|
78
|
+
body: 1,
|
|
79
|
+
parameters: 1
|
|
80
|
+
},
|
|
81
|
+
ignoreComments: false,
|
|
82
|
+
ignoredNodes: [
|
|
83
|
+
"TemplateLiteral *",
|
|
84
|
+
"TSIntersectionType",
|
|
85
|
+
"TSTypeParameterInstantiation",
|
|
86
|
+
"FunctionExpression > .params[decorators.length > 0]",
|
|
87
|
+
"FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
|
|
88
|
+
"ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
|
|
89
|
+
],
|
|
90
|
+
ImportDeclaration: 1,
|
|
91
|
+
MemberExpression: 1,
|
|
92
|
+
ObjectExpression: 1,
|
|
93
|
+
offsetTernaryExpressions: true,
|
|
94
|
+
outerIIFEBody: 1,
|
|
95
|
+
SwitchCase: 1,
|
|
96
|
+
VariableDeclarator: 1
|
|
97
|
+
}]
|
|
67
98
|
}
|
|
68
99
|
}
|
|
69
100
|
];
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,38 @@ async function all() {
|
|
|
25
25
|
args: "after-used",
|
|
26
26
|
argsIgnorePattern: "^_"
|
|
27
27
|
}
|
|
28
|
-
]
|
|
28
|
+
],
|
|
29
|
+
"@stylistic/indent": ["error", 2, {
|
|
30
|
+
ArrayExpression: 1,
|
|
31
|
+
CallExpression: {
|
|
32
|
+
arguments: 1
|
|
33
|
+
},
|
|
34
|
+
flatTernaryExpressions: false,
|
|
35
|
+
FunctionDeclaration: {
|
|
36
|
+
body: 1,
|
|
37
|
+
parameters: 1
|
|
38
|
+
},
|
|
39
|
+
FunctionExpression: {
|
|
40
|
+
body: 1,
|
|
41
|
+
parameters: 1
|
|
42
|
+
},
|
|
43
|
+
ignoreComments: false,
|
|
44
|
+
ignoredNodes: [
|
|
45
|
+
"TemplateLiteral *",
|
|
46
|
+
"TSIntersectionType",
|
|
47
|
+
"TSTypeParameterInstantiation",
|
|
48
|
+
"FunctionExpression > .params[decorators.length > 0]",
|
|
49
|
+
"FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
|
|
50
|
+
"ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
|
|
51
|
+
],
|
|
52
|
+
ImportDeclaration: 1,
|
|
53
|
+
MemberExpression: 1,
|
|
54
|
+
ObjectExpression: 1,
|
|
55
|
+
offsetTernaryExpressions: true,
|
|
56
|
+
outerIIFEBody: 1,
|
|
57
|
+
SwitchCase: 1,
|
|
58
|
+
VariableDeclarator: 1
|
|
59
|
+
}]
|
|
29
60
|
}
|
|
30
61
|
}
|
|
31
62
|
];
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ririd/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
5
|
-
"packageManager": "pnpm@8.12.1",
|
|
4
|
+
"version": "1.3.2",
|
|
6
5
|
"author": "Daydreamer Riri <Daydreamerriri@outloot.com> (https://github.com/Daydreamer-riri/)",
|
|
7
6
|
"license": "MIT",
|
|
8
7
|
"homepage": "https://github.com/daydreamer-riri/eslint-config",
|
|
@@ -25,28 +24,30 @@
|
|
|
25
24
|
"eslint": ">=8.0.0"
|
|
26
25
|
},
|
|
27
26
|
"dependencies": {
|
|
28
|
-
"@antfu/eslint-config": "^2.
|
|
29
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
30
|
-
"@next/eslint-plugin-next": "^14.
|
|
31
|
-
"eslint-plugin-format": "^0.1.
|
|
32
|
-
"eslint-plugin-react-hooks": "^4.6.
|
|
33
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
27
|
+
"@antfu/eslint-config": "^2.21.1",
|
|
28
|
+
"@eslint-react/eslint-plugin": "^1.5.16",
|
|
29
|
+
"@next/eslint-plugin-next": "^14.2.4",
|
|
30
|
+
"eslint-plugin-format": "^0.1.2",
|
|
31
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
32
|
+
"eslint-plugin-react-refresh": "^0.4.7"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
35
|
"@types/eslint": "^8.56.9",
|
|
37
36
|
"@types/node": "20.10.4",
|
|
38
37
|
"bumpp": "^9.4.0",
|
|
39
|
-
"eslint": "^9.
|
|
38
|
+
"eslint": "^9.5.0",
|
|
40
39
|
"rimraf": "^5.0.5",
|
|
41
|
-
"tsup": "^8.0
|
|
42
|
-
"typescript": "^5.
|
|
43
|
-
"
|
|
40
|
+
"tsup": "^8.1.0",
|
|
41
|
+
"typescript": "^5.5.2",
|
|
42
|
+
"vitest": "^1.5.2",
|
|
43
|
+
"@ririd/eslint-config": "1.3.2"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsup src/index.ts --format esm,cjs --clean --dts",
|
|
47
47
|
"stub": "tsup src/index.ts --format esm",
|
|
48
48
|
"lint": "eslint .",
|
|
49
49
|
"test": "pnpm -r run test",
|
|
50
|
-
"release": "bumpp && pnpm publish"
|
|
50
|
+
"release": "bumpp && pnpm publish",
|
|
51
|
+
"typecheck": "tsc --noEmit"
|
|
51
52
|
}
|
|
52
53
|
}
|