2018-12-03 18:33:20 -08:00
|
|
|
{
|
|
|
|
"parser": "babel-eslint",
|
|
|
|
"extends": ["airbnb", "plugin:flowtype/recommended"],
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true,
|
|
|
|
"mocha": true,
|
|
|
|
"jest/globals": true
|
|
|
|
},
|
|
|
|
"plugins": ["flowtype", "jest"],
|
|
|
|
"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",
|
|
|
|
{
|
2018-12-15 07:10:39 -08:00
|
|
|
"code": 80,
|
2018-12-03 18:33:20 -08:00
|
|
|
"tabWidth": 2,
|
|
|
|
"ignoreUrls": true,
|
|
|
|
"ignoreComments": true,
|
|
|
|
"ignoreStrings": true,
|
|
|
|
"ignorePattern": "<p[^>]*>.*?</p>",
|
|
|
|
"ignoreTrailingComments": true
|
|
|
|
}
|
|
|
|
],
|
2018-12-12 10:59:13 -08:00
|
|
|
"consistent-return": 0
|
2018-12-03 18:33:20 -08:00
|
|
|
}
|
|
|
|
}
|