lowdefy/.eslintrc

35 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-10-01 22:09:28 +08:00
{
"env": {
"node": true,
"es6": true,
"jest": true,
"browser": true
},
2020-10-07 22:13:32 +08:00
"extends": ["prettier", "eslint:recommended", "plugin:react/recommended"],
2020-10-06 23:37:30 +08:00
"plugins": ["import", "jsx-a11y", "prettier", "react", "react-hooks"],
2020-10-01 22:09:28 +08:00
"rules": {
2020-10-06 23:21:14 +08:00
"prettier/prettier": "error",
"import/no-cycle": "off",
2020-10-06 23:21:14 +08:00
"no-underscore-dangle": "off",
"no-param-reassign": "warn",
"no-nested-ternary": "warn",
2020-10-07 22:13:32 +08:00
"react/display-name": "off",
2020-10-06 23:21:14 +08:00
"react/jsx-filename-extension": "off",
"react/prop-types": "off",
"react/jsx-curly-newline": "off",
"react/jsx-one-expression-per-line": "off",
"react/no-array-index-key": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-indent": "off",
"react/jsx-props-no-spreading": "warn",
"react/destructuring-assignment": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off"
},
"parserOptions": {
2020-10-08 22:17:58 +08:00
"sourceType": "module",
"ecmaVersion": 9
2020-10-01 22:09:28 +08:00
}
}