mirror of
https://gitea.computerliebe.org/ComputerLiebe_ORG_private/Gitea-VSCode-Clone-Plugin.git
synced 2024-12-26 23:41:52 +00:00
28 lines
629 B
JavaScript
28 lines
629 B
JavaScript
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
|
|
export default [{
|
|
files: ["**/*.ts"],
|
|
}, {
|
|
plugins: {
|
|
"@typescript-eslint": typescriptEslint,
|
|
},
|
|
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
ecmaVersion: 2022,
|
|
sourceType: "module",
|
|
},
|
|
|
|
rules: {
|
|
"@typescript-eslint/naming-convention": ["warn", {
|
|
selector: "import",
|
|
format: ["camelCase", "PascalCase"],
|
|
}],
|
|
|
|
curly: "warn",
|
|
eqeqeq: "warn",
|
|
"no-throw-literal": "warn",
|
|
semi: "warn",
|
|
},
|
|
}]; |