Skip to content

Commit

Permalink
improv: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-stefaniak committed Oct 21, 2024
1 parent 9d523d6 commit d4168ed
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 28 deletions.
36 changes: 36 additions & 0 deletions .eslintrc.shared.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import"],
"rules": {
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off",
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
"type"
],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "always"
}
]
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}
13 changes: 2 additions & 11 deletions core/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": ["../.eslintrc.shared.json"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "import"],
"rules": {
"quotes": ["warn", "double", {}],
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off",
"@typescript-eslint/no-floating-promises": "warn"
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}
}
2 changes: 0 additions & 2 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"cross-env": "^7.0.3",
"esbuild": "0.17.19",
"eslint": "^8",
"eslint-plugin-import": "^2.29.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"myers-diff": "^2.1.0",
Expand All @@ -49,7 +48,6 @@
"@mozilla/readability": "^0.5.0",
"@octokit/rest": "^20.0.2",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@xenova/transformers": "2.14.0",
"adf-to-md": "^1.1.0",
"async-mutex": "^0.5.0",
Expand Down
16 changes: 4 additions & 12 deletions extensions/vscode/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": ["../../.eslintrc.shared.json"],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
"@typescript-eslint/naming-convention": "warn"
}
}
3 changes: 1 addition & 2 deletions extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "continue",
"icon": "media/icon.png",
"author": "Continue Dev, Inc",
"version": "0.9.220",
"version": "0.9.222",
"repository": {
"type": "git",
"url": "https://github.com/continuedev/continue"
Expand Down Expand Up @@ -539,7 +539,6 @@
"@types/vscode": "1.70",
"@types/ws": "^8.5.4",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vscode/vsce": "^2.22.0",
"cargo-cp-artifact": "^0.1",
"esbuild": "0.17.19",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"devDependencies": {
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8"
"prettier-plugin-tailwindcss": "^0.6.8",
"@typescript-eslint/parser": "^7.8.0",
"eslint-plugin-import": "^2.29.1"
}
}

0 comments on commit d4168ed

Please sign in to comment.