mirror of
https://github.com/maplibre/martin.git
synced 2024-12-21 05:41:55 +03:00
73 lines
1.4 KiB
Plaintext
73 lines
1.4 KiB
Plaintext
|
{
|
||
|
"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"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|