@lincy/eslint-config 4.6.1 → 4.6.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/README.md +6 -1
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -2
- package/package.json +7 -6
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -758,7 +758,7 @@ var parserPlain2 = __toESM(require("eslint-parser-plain"), 1);
|
|
|
758
758
|
var StylisticConfigDefaults = {
|
|
759
759
|
indent: 4,
|
|
760
760
|
jsx: true,
|
|
761
|
-
lessOpinionated:
|
|
761
|
+
lessOpinionated: false,
|
|
762
762
|
quotes: "single",
|
|
763
763
|
semi: false
|
|
764
764
|
};
|
|
@@ -801,6 +801,7 @@ async function stylistic(options = {}) {
|
|
|
801
801
|
"antfu/top-level-function": "error"
|
|
802
802
|
},
|
|
803
803
|
// 覆盖`stylistic`默认规则
|
|
804
|
+
"style/brace-style": ["error", "stroustrup"],
|
|
804
805
|
"style/member-delimiter-style": ["error", { multiline: { delimiter: "none" } }],
|
|
805
806
|
"style/multiline-ternary": ["error", "never"],
|
|
806
807
|
...overrides
|
|
@@ -1814,7 +1815,7 @@ async function vue(options = {}) {
|
|
|
1814
1815
|
"vue/arrow-spacing": ["error", { after: true, before: true }],
|
|
1815
1816
|
"vue/block-spacing": ["error", "always"],
|
|
1816
1817
|
"vue/block-tag-newline": ["error", { multiline: "always", singleline: "always" }],
|
|
1817
|
-
"vue/brace-style": ["error", "stroustrup", { allowSingleLine:
|
|
1818
|
+
"vue/brace-style": ["error", "stroustrup", { allowSingleLine: false }],
|
|
1818
1819
|
"vue/comma-dangle": ["error", "always-multiline"],
|
|
1819
1820
|
"vue/comma-spacing": ["error", { after: true, before: false }],
|
|
1820
1821
|
"vue/comma-style": ["error", "last"],
|
package/dist/index.d.cts
CHANGED
|
@@ -4903,6 +4903,7 @@ interface RuleOptions {
|
|
|
4903
4903
|
/**
|
|
4904
4904
|
* Enforce using `@ts-expect-error` over `@ts-ignore`
|
|
4905
4905
|
* @see https://typescript-eslint.io/rules/prefer-ts-expect-error
|
|
4906
|
+
* @deprecated
|
|
4906
4907
|
*/
|
|
4907
4908
|
'ts/prefer-ts-expect-error'?: Linter.RuleEntry<[]>
|
|
4908
4909
|
/**
|
|
@@ -14472,6 +14473,7 @@ interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'indent' | 'qu
|
|
|
14472
14473
|
* Including:
|
|
14473
14474
|
* - `antfu/top-level-function`
|
|
14474
14475
|
* - `antfu/if-newline`
|
|
14476
|
+
* - `antfu/curly`
|
|
14475
14477
|
*
|
|
14476
14478
|
* @default false
|
|
14477
14479
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4903,6 +4903,7 @@ interface RuleOptions {
|
|
|
4903
4903
|
/**
|
|
4904
4904
|
* Enforce using `@ts-expect-error` over `@ts-ignore`
|
|
4905
4905
|
* @see https://typescript-eslint.io/rules/prefer-ts-expect-error
|
|
4906
|
+
* @deprecated
|
|
4906
4907
|
*/
|
|
4907
4908
|
'ts/prefer-ts-expect-error'?: Linter.RuleEntry<[]>
|
|
4908
4909
|
/**
|
|
@@ -14472,6 +14473,7 @@ interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'indent' | 'qu
|
|
|
14472
14473
|
* Including:
|
|
14473
14474
|
* - `antfu/top-level-function`
|
|
14474
14475
|
* - `antfu/if-newline`
|
|
14476
|
+
* - `antfu/curly`
|
|
14475
14477
|
*
|
|
14476
14478
|
* @default false
|
|
14477
14479
|
*/
|
package/dist/index.js
CHANGED
|
@@ -665,7 +665,7 @@ import * as parserPlain2 from "eslint-parser-plain";
|
|
|
665
665
|
var StylisticConfigDefaults = {
|
|
666
666
|
indent: 4,
|
|
667
667
|
jsx: true,
|
|
668
|
-
lessOpinionated:
|
|
668
|
+
lessOpinionated: false,
|
|
669
669
|
quotes: "single",
|
|
670
670
|
semi: false
|
|
671
671
|
};
|
|
@@ -708,6 +708,7 @@ async function stylistic(options = {}) {
|
|
|
708
708
|
"antfu/top-level-function": "error"
|
|
709
709
|
},
|
|
710
710
|
// 覆盖`stylistic`默认规则
|
|
711
|
+
"style/brace-style": ["error", "stroustrup"],
|
|
711
712
|
"style/member-delimiter-style": ["error", { multiline: { delimiter: "none" } }],
|
|
712
713
|
"style/multiline-ternary": ["error", "never"],
|
|
713
714
|
...overrides
|
|
@@ -1721,7 +1722,7 @@ async function vue(options = {}) {
|
|
|
1721
1722
|
"vue/arrow-spacing": ["error", { after: true, before: true }],
|
|
1722
1723
|
"vue/block-spacing": ["error", "always"],
|
|
1723
1724
|
"vue/block-tag-newline": ["error", { multiline: "always", singleline: "always" }],
|
|
1724
|
-
"vue/brace-style": ["error", "stroustrup", { allowSingleLine:
|
|
1725
|
+
"vue/brace-style": ["error", "stroustrup", { allowSingleLine: false }],
|
|
1725
1726
|
"vue/comma-dangle": ["error", "always-multiline"],
|
|
1726
1727
|
"vue/comma-spacing": ["error", { after: true, before: false }],
|
|
1727
1728
|
"vue/comma-style": ["error", "last"],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lincy/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.6.
|
|
4
|
+
"version": "4.6.2",
|
|
5
5
|
"packageManager": "pnpm@9.1.0",
|
|
6
6
|
"description": "LinCenYing's ESLint config",
|
|
7
7
|
"author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
"@antfu/eslint-define-config": "1.23.0-2",
|
|
66
66
|
"@antfu/install-pkg": "^0.3.3",
|
|
67
67
|
"@stylistic/eslint-plugin": "2.1.0",
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
69
|
-
"@typescript-eslint/parser": "^7.
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
69
|
+
"@typescript-eslint/parser": "^7.11.0",
|
|
70
70
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
71
71
|
"eslint-flat-config-utils": "^0.2.5",
|
|
72
72
|
"eslint-merge-processors": "^0.1.0",
|
|
73
73
|
"eslint-parser-plain": "^0.1.0",
|
|
74
|
-
"eslint-plugin-antfu": "^2.3.
|
|
74
|
+
"eslint-plugin-antfu": "^2.3.3",
|
|
75
75
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
76
76
|
"eslint-plugin-import-x": "^0.5.1",
|
|
77
77
|
"eslint-plugin-jsdoc": "^48.2.6",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@antfu/ni": "^0.21.12",
|
|
101
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
101
|
+
"@eslint-react/eslint-plugin": "^1.5.13",
|
|
102
102
|
"@eslint-types/jsdoc": "48.2.2",
|
|
103
103
|
"@eslint-types/typescript-eslint": "^7.5.0",
|
|
104
104
|
"@eslint-types/unicorn": "^52.0.0",
|
|
@@ -110,10 +110,11 @@
|
|
|
110
110
|
"@types/prompts": "^2.4.9",
|
|
111
111
|
"@unocss/eslint-plugin": "^0.60.3",
|
|
112
112
|
"bumpp": "^9.4.1",
|
|
113
|
-
"eslint": "
|
|
113
|
+
"eslint": "npm:eslint-ts-patch@9.2.0-6",
|
|
114
114
|
"eslint-plugin-format": "^0.1.1",
|
|
115
115
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
116
116
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
117
|
+
"eslint-ts-patch": "9.2.0-6",
|
|
117
118
|
"eslint-typegen": "^0.2.4",
|
|
118
119
|
"esno": "^4.7.0",
|
|
119
120
|
"lint-staged": "^15.2.5",
|