55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
{
|
|
"parser": "babel-eslint",
|
|
"extends": [
|
|
"airbnb",
|
|
"plugin:flowtype/recommended"
|
|
],
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"mocha": true
|
|
},
|
|
"plugins": ["flowtype"],
|
|
"settings": {
|
|
"flowtype": {
|
|
"onlyFilesWithFlowAnnotation": true
|
|
}
|
|
},
|
|
"rules": {
|
|
"jsx-quotes": ["error", "prefer-single"],
|
|
"import/prefer-default-export": [
|
|
"off"
|
|
],
|
|
"react/jsx-filename-extension": [
|
|
1,
|
|
{ "extensions": [".js"] }
|
|
],
|
|
"jsx-a11y/anchor-is-valid": [
|
|
"error",
|
|
{
|
|
"components": [
|
|
"Link"
|
|
],
|
|
"specialLink": [
|
|
"to",
|
|
"hrefLeft",
|
|
"hrefRight"
|
|
],
|
|
"aspects": [
|
|
"noHref",
|
|
"invalidHref",
|
|
"preferButton"
|
|
]
|
|
}
|
|
],
|
|
"jsx-a11y/no-autofocus": [ 0, {
|
|
"ignoreNonDOM": true
|
|
}],
|
|
"max-len": ["error", {
|
|
"ignoreUrls": true,
|
|
"ignoreComments": true,
|
|
"ignoreStrings": true,
|
|
"ignorePattern": "<p[^>]*>.*?</p>"
|
|
}]
|
|
}
|
|
} |