1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-03 08:11:08 +00:00
seahub/frontend/.eslintrc.json
2018-10-16 18:19:51 +08:00

61 lines
1.1 KiB
JSON

{
"env": {
"browser": true,
"es6": true
},
"extends": [
// "plugin:react/recommended",
"react-app",
"eslint:recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"jsx-a11y"
],
"rules": {
"indent": [
"warn",
2
],
"linebreak-style": [
"warn",
"unix"
],
"quotes": [
"warn",
"single"
],
"semi": [
"warn",
"always"
],
// overwride error to warning
"no-case-declarations": "warn",
"no-cond-assign": "warn",
"no-redeclare": "warn",
"no-unreachable": "warn",
"no-class-assign": "warn",
"no-unused-vars": "warn",
"no-irregular-whitespace": "warn",
"no-console": "warn",
"no-useless-escape": "warn",
"react/jsx-indent": ["warn", 2],
"react/prop-types": "warn",
"react/display-name": "warn",
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/href-no-hash": "off"
}
}