mirror of
https://github.com/maplibre/martin.git
synced 2024-12-30 02:11:48 +03:00
58 lines
1.1 KiB
Plaintext
58 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",
|
|
"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"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|