2022-11-16 23:09:14 +00:00
|
|
|
// eslint-disable-next-line no-undef
|
2021-07-09 14:04:28 +00:00
|
|
|
module.exports = {
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es2021": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
2022-11-16 23:09:14 +00:00
|
|
|
"ecmaFeatures": { "jsx": true },
|
2021-07-09 14:04:28 +00:00
|
|
|
"ecmaVersion": 12,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"react",
|
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
|
|
|
"rules": {
|
2022-11-16 23:09:14 +00:00
|
|
|
"react/jsx-closing-bracket-location": [1, "line-aligned"],
|
|
|
|
"react/jsx-max-props-per-line":[1, { "maximum": 1 }],
|
|
|
|
"react/jsx-first-prop-new-line": [1, "multiline"],
|
|
|
|
"object-curly-spacing": [2, "always"],
|
|
|
|
"indent": ["error", 2, { "SwitchCase": 1 }],
|
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
"quotes": ["error", "double"],
|
|
|
|
"semi": ["error", "always"],
|
|
|
|
"react/prop-types": 0
|
2021-07-09 14:04:28 +00:00
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"pragma": "React", // Pragma to use, default to "React"
|
|
|
|
"version": "detect"
|
|
|
|
},
|
|
|
|
"linkComponents": [
|
|
|
|
// Components used as alternatives to <a> for linking, eg. <Link to={ url } />
|
|
|
|
"Hyperlink",
|
2022-11-16 23:09:14 +00:00
|
|
|
{
|
|
|
|
"name": "Link", "linkAttribute": "to"
|
|
|
|
}
|
2021-07-09 14:04:28 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|
2022-11-16 23:09:14 +00:00
|
|
|
|