mirror of
https://github.com/maplibre/martin.git
synced 2024-12-21 05:41:55 +03:00
60 lines
1.1 KiB
Plaintext
60 lines
1.1 KiB
Plaintext
{
|
|
"extends": ["react-app", "airbnb"],
|
|
"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",
|
|
"no-restricted-exports": "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/function-component-definition": "warn",
|
|
"react/jsx-no-bind": "error",
|
|
"react/sort-comp": [
|
|
1,
|
|
{
|
|
"order": [
|
|
"type-annotations",
|
|
"static-methods",
|
|
"lifecycle",
|
|
"everything-else",
|
|
"render"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|