2021-09-12 00:55:17 -07:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2021: true,
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'plugin:react/recommended',
|
|
|
|
'xo',
|
|
|
|
],
|
2021-09-12 01:50:27 -07:00
|
|
|
parser: "@typescript-eslint/parser",
|
2021-09-12 00:55:17 -07:00
|
|
|
parserOptions: {
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true,
|
|
|
|
},
|
|
|
|
ecmaVersion: 12,
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
'react',
|
2021-09-12 01:50:27 -07:00
|
|
|
"@typescript-eslint"
|
2021-09-12 00:55:17 -07:00
|
|
|
],
|
|
|
|
rules: {
|
2021-09-12 02:07:29 -07:00
|
|
|
"arrow-parens": ["error", "always"],
|
2021-09-12 21:21:55 -07:00
|
|
|
"indent": ["error", 4],
|
|
|
|
"unused-vars": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
|
|
"no-redeclare": "off",
|
|
|
|
"@typescript-eslint/no-redeclare": ["error"]
|
2021-09-12 00:55:17 -07:00
|
|
|
},
|
|
|
|
};
|