Skip to content

Commit a10bb20

Browse files
authored
Merge pull request #669 from RooVetGit/revert_lint_changes
Revert "chore: update eslint config and quiet lint output"
2 parents 69d05a3 + 810bbb4 commit a10bb20

File tree

3 files changed

+12
-44
lines changed

3 files changed

+12
-44
lines changed

.eslintrc.json

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,24 @@
11
{
22
"root": true,
3-
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
43
"parser": "@typescript-eslint/parser",
54
"parserOptions": {
6-
"ecmaVersion": 2021,
7-
"sourceType": "module",
8-
"project": "./tsconfig.json"
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
97
},
108
"plugins": ["@typescript-eslint"],
119
"rules": {
12-
"@typescript-eslint/naming-convention": ["warn"],
13-
"@typescript-eslint/no-explicit-any": "off",
14-
"@typescript-eslint/no-unused-vars": [
10+
"@typescript-eslint/naming-convention": [
1511
"warn",
1612
{
17-
"argsIgnorePattern": "^_",
18-
"varsIgnorePattern": "^_",
19-
"caughtErrorsIgnorePattern": "^_"
13+
"selector": "import",
14+
"format": ["camelCase", "PascalCase"]
2015
}
2116
],
22-
"@typescript-eslint/explicit-function-return-type": [
23-
"warn",
24-
{
25-
"allowExpressions": true,
26-
"allowTypedFunctionExpressions": true
27-
}
28-
],
29-
"@typescript-eslint/explicit-member-accessibility": [
30-
"warn",
31-
{
32-
"accessibility": "explicit"
33-
}
34-
],
35-
"@typescript-eslint/no-non-null-assertion": "warn",
17+
"@typescript-eslint/semi": "off",
18+
"eqeqeq": "warn",
3619
"no-throw-literal": "warn",
37-
"semi": ["off", "always"],
38-
"quotes": ["warn", "double", { "avoidEscape": true }],
39-
"@typescript-eslint/ban-types": "off",
40-
"@typescript-eslint/no-var-requires": "warn",
41-
"no-extra-semi": "warn",
42-
"prefer-const": "warn",
43-
"no-mixed-spaces-and-tabs": "warn",
44-
"no-case-declarations": "warn",
45-
"no-useless-escape": "warn",
46-
"require-yield": "warn",
47-
"no-empty": "warn",
48-
"no-control-regex": "warn",
49-
"@typescript-eslint/ban-ts-comment": "warn"
50-
},
51-
"env": {
52-
"node": true,
53-
"es2021": true
20+
"semi": "off",
21+
"react-hooks/exhaustive-deps": "off"
5422
},
55-
"ignorePatterns": ["dist/**", "out/**", "webview-ui/**", "**/*.js"]
23+
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
5624
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
"compile": "npm run check-types && npm run lint && node esbuild.js",
215215
"compile-tests": "tsc -p . --outDir out",
216216
"install:all": "npm install && cd webview-ui && npm install",
217-
"lint": "eslint src --ext ts --quiet && npm run lint --prefix webview-ui",
217+
"lint": "eslint src --ext ts && npm run lint --prefix webview-ui",
218218
"package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production",
219219
"pretest": "npm run compile-tests && npm run compile && npm run lint",
220220
"start:webview": "cd webview-ui && npm run start",

webview-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc && vite build",
99
"preview": "vite preview",
1010
"test": "jest",
11-
"lint": "eslint src --ext ts,tsx --quiet"
11+
"lint": "eslint src --ext ts,tsx"
1212
},
1313
"dependencies": {
1414
"@vscode/webview-ui-toolkit": "^1.4.0",

0 commit comments

Comments
 (0)