cloudaxe-opencode/sdks/vscode/eslint.config.mjs

35 lines
641 B
JavaScript
Raw Permalink Normal View History

2025-09-10 03:43:37 +00:00
import typescriptEslint from "@typescript-eslint/eslint-plugin"
import tsParser from "@typescript-eslint/parser"
2025-07-20 15:33:41 +00:00
2025-09-10 03:43:37 +00:00
export default [
{
2025-07-20 15:33:41 +00:00
files: ["**/*.ts"],
2025-09-10 03:43:37 +00:00
},
{
2025-07-20 15:33:41 +00:00
plugins: {
2025-09-10 03:43:37 +00:00
"@typescript-eslint": typescriptEslint,
2025-07-20 15:33:41 +00:00
},
languageOptions: {
2025-09-10 03:43:37 +00:00
parser: tsParser,
ecmaVersion: 2022,
sourceType: "module",
2025-07-20 15:33:41 +00:00
},
rules: {
2025-09-10 03:43:37 +00:00
"@typescript-eslint/naming-convention": [
"warn",
{
selector: "import",
format: ["camelCase", "PascalCase"],
},
],
2025-07-20 15:33:41 +00:00
2025-09-10 03:43:37 +00:00
curly: "warn",
eqeqeq: "warn",
"no-throw-literal": "warn",
semi: "warn",
2025-07-20 15:33:41 +00:00
},
2025-09-10 03:43:37 +00:00
},
]