{
"parser": "babel-eslint",
"extends": "@folio/eslint-config-stripes",
"plugins": [ "filenames" ],
"rules": {
"filenames/match-exported": "error",
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true
}
],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "return"
},
{
"blankLine": "always",
"prev": [
"const",
"let",
"var"
],
"next": "*"
},
{
"blankLine": "any",
"prev": [
"const",
"let",
"var"
],
"next": [
"const",
"let",
"var"
]
}
],
"react/jsx-one-expression-per-line": false,
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
"max-len": [
"error",
{
"code": 120,
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"react/jsx-closing-bracket-location": [
"error",
"tag-aligned"
],
"react/jsx-closing-tag-location": [
"error",
"tag-aligned"
],
"react/jsx-wrap-multilines": [
"error",
"parens-new-line"
],
"no-this-before-super": "error",
"prefer-destructuring": [
"warn",
{
"array": false,
"object": true
},
{
"enforceForRenamedProperties": false
}
],
"prefer-object-spread": "error",
"jsx-quotes": [
"error",
"prefer-double"
],
"prefer-const": "error",
"react/sort-comp": [
"warn",
{
"order": [
"static-methods",
"lifecycle",
"render",
"everything-else"
]
}
],
"react/jsx-curly-spacing": [
"error",
{
"when": "never",
"children": true
}
],
"eol-last": ["error", "always"],
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 0,
"maxBOF": 0
}
],
"no-array-constructor": "error",
"no-loop-func": "error",
"no-new-func": "error",
"max-lines": [
"error",
1000
],
"max-depth": [
"error",
3
],
"no-constant-condition": "error"
}
}
}