Download sdks/vscode/eslint.config.mjs from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 641 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/sdks/vscode/eslint.config.mjs
- Command line
-
hf download hf://SaylorTwift/opencode/sdks/vscode/eslint.config.mjs
-
curl -L -o eslint.config.mjs https://huggingface.co/SaylorTwift/opencode/resolve/main/sdks/vscode/eslint.config.mjs
641 Bytes
| 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", | |
| }, | |
| }, | |
| ] | |