mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-19 00:34:23 +01:00
35 lines
641 B
JavaScript
35 lines
641 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",
|
|
},
|
|
},
|
|
]
|