lint: fix line man-len
This commit is contained in:
parent
e50203c1ef
commit
242a270181
57
.eslintrc
57
.eslintrc
|
@ -1,9 +1,6 @@
|
||||||
{
|
{
|
||||||
"parser": "babel-eslint",
|
"parser": "babel-eslint",
|
||||||
"extends": [
|
"extends": ["airbnb", "plugin:flowtype/recommended"],
|
||||||
"airbnb",
|
|
||||||
"plugin:flowtype/recommended"
|
|
||||||
],
|
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"node": true,
|
"node": true,
|
||||||
|
@ -17,39 +14,31 @@
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"jsx-quotes": ["error", "prefer-single"],
|
"jsx-quotes": ["error", "prefer-single"],
|
||||||
"import/prefer-default-export": [
|
"import/prefer-default-export": ["off"],
|
||||||
"off"
|
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
|
||||||
],
|
|
||||||
"react/jsx-filename-extension": [
|
|
||||||
1,
|
|
||||||
{ "extensions": [".js"] }
|
|
||||||
],
|
|
||||||
"jsx-a11y/anchor-is-valid": [
|
"jsx-a11y/anchor-is-valid": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"components": [
|
"components": ["Link"],
|
||||||
"Link"
|
"specialLink": ["to", "hrefLeft", "hrefRight"],
|
||||||
],
|
"aspects": ["noHref", "invalidHref", "preferButton"]
|
||||||
"specialLink": [
|
|
||||||
"to",
|
|
||||||
"hrefLeft",
|
|
||||||
"hrefRight"
|
|
||||||
],
|
|
||||||
"aspects": [
|
|
||||||
"noHref",
|
|
||||||
"invalidHref",
|
|
||||||
"preferButton"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"jsx-a11y/no-autofocus": [ 0, {
|
"jsx-a11y/no-autofocus": [
|
||||||
"ignoreNonDOM": true
|
0,
|
||||||
}],
|
{
|
||||||
"max-len": ["error", {
|
"ignoreNonDOM": true
|
||||||
"ignoreUrls": true,
|
}
|
||||||
"ignoreComments": true,
|
],
|
||||||
"ignoreStrings": true,
|
"max-len": [
|
||||||
"ignorePattern": "<p[^>]*>.*?</p>"
|
"error",
|
||||||
}]
|
{
|
||||||
|
"code": 120,
|
||||||
|
"ignoreUrls": true,
|
||||||
|
"ignoreComments": true,
|
||||||
|
"ignoreStrings": true,
|
||||||
|
"ignorePattern": "<p[^>]*>.*?</p>"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue