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