.eslintrc.json
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"jquery": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"prettier"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"Blacklight": "writable"
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"prettier"
],
"ignorePatterns": [
"spec/javascript/psulib_blacklight/align_rtl_index.spec.js"
],
"rules": {
"consistent-return": "off",
"guard-for-in": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"parent",
"sibling",
"index"
]
}
],
"import/no-cycle": "off",
"max-len": [
"error",
{
"code": 120
}
],
"no-alert": "off",
"no-param-reassign": "off",
"no-restricted-syntax": [
"error",
"LabeledStatement",
"WithStatement"
],
"no-use-before-define": "off",
"prettier/prettier": [
"error",
{
"singleQuote": true
}
],
"react/forbid-prop-types": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function"
}
],
"react/jsx-filename-extension": "off",
"react/jsx-no-target-blank": "off",
"react/jsx-uses-react": "off",
"react/no-array-index-key": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}