@liwo/eslint-config 0.0.3 → 0.0.4
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/README.md +8 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
# @liwo/eslint-config
|
|
2
2
|
|
|
3
3
|
Hard-forked from `@antfu/eslint-config`. It adopts a more opinionated and aggressive approach, making it generally unsuitable for the majority of users.
|
|
4
|
+
|
|
5
|
+
## Acknowledgements
|
|
6
|
+
|
|
7
|
+
Thanks to the community and developers for their contributions!
|
|
8
|
+
|
|
9
|
+
This project is deployed on GitHub Pages and Netlify.
|
|
10
|
+
|
|
11
|
+
[](https://www.netlify.com/?source=liwo)
|
package/dist/index.d.ts
CHANGED
|
@@ -12679,11 +12679,12 @@ type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
12679
12679
|
}];
|
|
12680
12680
|
// ----- style/padding-line-between-statements -----
|
|
12681
12681
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
12682
|
-
type
|
|
12682
|
+
type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementType | [_StylePaddingLineBetweenStatementsStatementType, ...(_StylePaddingLineBetweenStatementsStatementType)[]]);
|
|
12683
|
+
type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using");
|
|
12683
12684
|
type StylePaddingLineBetweenStatements = {
|
|
12684
12685
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType;
|
|
12685
|
-
prev:
|
|
12686
|
-
next:
|
|
12686
|
+
prev: _StylePaddingLineBetweenStatementsStatementOption;
|
|
12687
|
+
next: _StylePaddingLineBetweenStatementsStatementOption;
|
|
12687
12688
|
}[];
|
|
12688
12689
|
// ----- style/quote-props -----
|
|
12689
12690
|
type StyleQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ async function comments() {
|
|
|
31
31
|
rules: {
|
|
32
32
|
"eslint-comments/no-aggregating-enable": "error",
|
|
33
33
|
"eslint-comments/no-duplicate-disable": "error",
|
|
34
|
-
"eslint-comments/no-unlimited-disable": "
|
|
34
|
+
"eslint-comments/no-unlimited-disable": "off",
|
|
35
35
|
"eslint-comments/no-unused-enable": "error"
|
|
36
36
|
}
|
|
37
37
|
}];
|
|
@@ -316,6 +316,7 @@ async function stylistic(options = {}) {
|
|
|
316
316
|
after: true,
|
|
317
317
|
before: false
|
|
318
318
|
}],
|
|
319
|
+
"style/max-statements-per-line": "off",
|
|
319
320
|
"style/yield-star-spacing": ["error", {
|
|
320
321
|
after: true,
|
|
321
322
|
before: false
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liwo/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"description": "ESLint config by Liwo",
|
|
6
6
|
"author": "Aoang <aoang@x2oe.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@eslint-react/eslint-plugin": "^1.52.3",
|
|
102
102
|
"@eslint/config-inspector": "^1.1.0",
|
|
103
103
|
"@prettier/plugin-xml": "^3.4.2",
|
|
104
|
-
"@types/node": "24.0
|
|
104
|
+
"@types/node": "24.1.0",
|
|
105
105
|
"@unocss/eslint-plugin": "^66.3.3",
|
|
106
106
|
"eslint": "9.31.0",
|
|
107
107
|
"eslint-plugin-format": "1.0.1",
|
|
@@ -115,12 +115,12 @@
|
|
|
115
115
|
"prettier-plugin-slidev": "^1.0.5",
|
|
116
116
|
"simple-git-hooks": "^2.13.0",
|
|
117
117
|
"tinyglobby": "^0.2.14",
|
|
118
|
-
"tsdown": "^0.
|
|
118
|
+
"tsdown": "^0.13.0",
|
|
119
119
|
"tsx": "^4.20.3",
|
|
120
120
|
"typescript": "^5.8.3",
|
|
121
121
|
"vitest": "^3.2.4",
|
|
122
122
|
"vue": "^3.5.17",
|
|
123
|
-
"@liwo/eslint-config": "0.0.
|
|
123
|
+
"@liwo/eslint-config": "0.0.4"
|
|
124
124
|
},
|
|
125
125
|
"simple-git-hooks": {
|
|
126
126
|
"pre-commit": "npx lint-staged"
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"build": "pnpm run gen && tsdown --clean --dts",
|
|
136
136
|
"stub": "tsdown",
|
|
137
137
|
"dev": "npx @eslint/config-inspector --config eslint.config.ts",
|
|
138
|
-
"build:inspector": "pnpm build && npx @eslint/config-inspector build
|
|
138
|
+
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
139
139
|
"watch": "tsdown --watch",
|
|
140
140
|
"lint": "eslint",
|
|
141
141
|
"gen": "tsx scripts/typegen.ts",
|