2020-08-23 00:33:34 +02:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2020: true
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"standard"
|
|
|
|
],
|
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
parserOptions: {
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true
|
|
|
|
},
|
|
|
|
ecmaVersion: 12,
|
|
|
|
sourceType: "module"
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
"react",
|
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
"react": {
|
|
|
|
"version": "detect"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
"space-before-function-paren": ["error", {
|
|
|
|
anonymous: "always",
|
|
|
|
named: "never",
|
|
|
|
asyncArrow: "always"
|
|
|
|
}],
|
|
|
|
"quote-props": ["error", "consistent"],
|
2020-08-23 03:50:58 +02:00
|
|
|
"quotes": ["error", "double"],
|
|
|
|
"sort-imports": ["error", {
|
|
|
|
"ignoreCase": true,
|
|
|
|
"allowSeparatedGroups": true
|
|
|
|
}]
|
2020-08-23 00:33:34 +02:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ["*.ts", "*.tsx"],
|
|
|
|
rules: {
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars-experimental": "error"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|