Download eslint.config.js from linuxrun/cors: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/spaces/linuxrun/cors/resolve/main/eslint.config.js
- Command line
-
hf download hf://spaces/linuxrun/cors/eslint.config.js
-
curl -L -o eslint.config.js https://huggingface.co/spaces/linuxrun/cors/resolve/main/eslint.config.js
403 Bytes
| import globals from "globals"; | |
| import js from "@eslint/js"; | |
| import prettierConfig from "eslint-config-prettier"; | |
| export default [ | |
| { | |
| languageOptions: { | |
| ecmaVersion: "latest", | |
| sourceType: "module", | |
| globals: { | |
| ...globals.node, | |
| }, | |
| }, | |
| }, | |
| js.configs.recommended, | |
| prettierConfig, | |
| { | |
| rules: { | |
| // 你可以在这里覆盖或添加规则 | |
| }, | |
| }, | |
| ]; | |