Created
July 11, 2019 12:00
-
-
Save yinxin630/5cb3eb1df5cb18b7e0e0ee506d867a22 to your computer and use it in GitHub Desktop.
|-|&tag=常用工具配置
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "extends": "eslint-config-airbnb", | |
| "parser": "@typescript-eslint/parser", | |
| "parserOptions": { | |
| "project": "./tsconfig.json" | |
| }, | |
| "env": { | |
| "browser": true | |
| }, | |
| "plugins": ["@typescript-eslint", "react", "react-hooks", "jsx-a11y", "import", "vue"], | |
| "globals": {}, | |
| "settings": { | |
| "import/resolver": { | |
| "node": { | |
| "extensions": [".js", ".jsx", ".ts", ".tsx"] | |
| } | |
| } | |
| }, | |
| "rules": { | |
| "indent": [ | |
| 2, | |
| 4, | |
| { | |
| "SwitchCase": 1 | |
| } | |
| ], | |
| "react/jsx-indent": [2, 4], | |
| "react/jsx-indent-props": [2, 4], | |
| "no-console": 0, | |
| "react/jsx-filename-extension": [ | |
| 2, | |
| { | |
| "extensions": [".js", ".jsx", ".tsx"] | |
| } | |
| ], | |
| "import/extensions": [ | |
| 2, | |
| { | |
| "ts": "never", | |
| "tsx": "never", | |
| "js": "never", | |
| "jsx": "never" | |
| } | |
| ], | |
| "@typescript-eslint/no-unused-vars": 2 | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment