martin/.eslintrc

73 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-10-22 13:10:09 +03:00
{
"parser": "babel-eslint",
"extends": ["airbnb"],
"plugins": ["import", "react"],
"env": {
"browser": true,
"node": true,
"jest": true
},
"rules": {
"arrow-parens": [
"warn",
"as-needed",
{
"requireForBlockBody": true
}
],
"comma-dangle": ["error", "never"],
"function-paren-newline": ["error", "consistent"],
"jsx-quotes": ["error", "prefer-single"],
"max-len": [
"error",
{
"code": 80,
"ignoreUrls": true,
"ignoreStrings": true
}
],
"no-return-assign": "warn",
"no-underscore-dangle": [
"error",
{
"allowAfterThis": true,
"allow": ["_id"]
}
],
"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"
]
}
]
}
}