Skip to content

Commit 9525627

Browse files
committed
💄 调整默认eslint规则
1 parent 007c3f7 commit 9525627

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/eslint/linter-config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const config = {
7070
"no-unsafe-negation": ["error"],
7171
"no-unsafe-optional-chaining": ["error"],
7272
"no-unused-labels": ["error"],
73-
"no-unused-vars": ["error"],
73+
"no-unused-vars": ["warn"],
7474
"no-useless-backreference": ["error"],
7575
"no-useless-catch": ["error"],
7676
"no-useless-escape": ["error"],
@@ -87,5 +87,9 @@ const config = {
8787
},
8888
};
8989

90+
console.log("lint", config);
91+
// 调整规则
92+
config.rules["userscripts/align-attributes"] = ["warn", 2];
93+
9094
// 以文本形式导出默认规则
9195
export const defaultConfig = JSON.stringify(config, null, 2);

0 commit comments

Comments
 (0)