martin/frontend/.eslintrc

58 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-10-22 13:10:09 +03:00
{
2018-10-22 17:47:43 +03:00
"extends": ["react-app", "airbnb"],
2018-10-22 13:10:09 +03:00
"rules": {
"arrow-parens": [
"warn",
"as-needed",
{
"requireForBlockBody": true
}
],
"comma-dangle": ["error", "never"],
"jsx-quotes": ["error", "prefer-single"],
"max-len": [
"error",
{
"code": 80,
"ignoreUrls": true,
"ignoreStrings": true
}
],
"no-return-assign": "warn",
"quotes": ["error", "single"],
"react/button-has-type": "off",
"react/destructuring-assignment": "off",
"react/prop-types": [
1,
{
"skipUndeclared": true
}
],
"react/forbid-prop-types": [
1,
{
"forbid": ["any", "array"]
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"react/jsx-no-bind": "error",
"react/sort-comp": [
1,
{
"order": [
"type-annotations",
"static-methods",
"lifecycle",
"everything-else",
"render"
]
}
]
}
}