We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 007c3f7 commit 9525627Copy full SHA for 9525627
1 file changed
packages/eslint/linter-config.ts
@@ -70,7 +70,7 @@ const config = {
70
"no-unsafe-negation": ["error"],
71
"no-unsafe-optional-chaining": ["error"],
72
"no-unused-labels": ["error"],
73
- "no-unused-vars": ["error"],
+ "no-unused-vars": ["warn"],
74
"no-useless-backreference": ["error"],
75
"no-useless-catch": ["error"],
76
"no-useless-escape": ["error"],
@@ -87,5 +87,9 @@ const config = {
87
},
88
};
89
90
+console.log("lint", config);
91
+// 调整规则
92
+config.rules["userscripts/align-attributes"] = ["warn", 2];
93
+
94
// 以文本形式导出默认规则
95
export const defaultConfig = JSON.stringify(config, null, 2);
0 commit comments