Skip to content

Instantly share code, notes, and snippets.

@yinxin630
Created July 11, 2019 12:00
Show Gist options
  • Select an option

  • Save yinxin630/5cb3eb1df5cb18b7e0e0ee506d867a22 to your computer and use it in GitHub Desktop.

Select an option

Save yinxin630/5cb3eb1df5cb18b7e0e0ee506d867a22 to your computer and use it in GitHub Desktop.
|-|&tag=常用工具配置
{
"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