2021-07-28 13:15:52 +00:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2021: true,
|
|
|
|
},
|
|
|
|
extends: [
|
2022-12-20 15:17:51 +00:00
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:react-hooks/recommended",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
2023-03-31 22:25:44 +00:00
|
|
|
"airbnb",
|
|
|
|
"prettier",
|
2021-07-28 13:15:52 +00:00
|
|
|
],
|
2022-12-20 15:17:51 +00:00
|
|
|
parser: "@typescript-eslint/parser",
|
2021-07-28 13:15:52 +00:00
|
|
|
parserOptions: {
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true,
|
|
|
|
},
|
2023-03-31 22:25:44 +00:00
|
|
|
ecmaVersion: "latest",
|
|
|
|
sourceType: "module",
|
2021-07-28 13:15:52 +00:00
|
|
|
},
|
2023-03-31 22:25:44 +00:00
|
|
|
plugins: ["react", "@typescript-eslint"],
|
2021-07-28 13:15:52 +00:00
|
|
|
rules: {
|
2023-03-31 22:25:44 +00:00
|
|
|
"linebreak-style": 0,
|
|
|
|
"no-underscore-dangle": 0,
|
2022-12-20 15:17:51 +00:00
|
|
|
|
|
|
|
"import/prefer-default-export": "off",
|
|
|
|
"import/extensions": "off",
|
|
|
|
"import/no-unresolved": "off",
|
|
|
|
"import/no-extraneous-dependencies": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
devDependencies: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
|
2023-03-31 22:25:44 +00:00
|
|
|
"react/no-unstable-nested-components": ["error", { allowAsProps: true }],
|
2022-12-20 15:17:51 +00:00
|
|
|
"react/jsx-filename-extension": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
extensions: [".tsx", ".jsx"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
|
|
|
|
"react/require-default-props": "off",
|
|
|
|
"react/jsx-props-no-spreading": "off",
|
|
|
|
"react-hooks/rules-of-hooks": "error",
|
|
|
|
"react-hooks/exhaustive-deps": "error",
|
|
|
|
|
|
|
|
"@typescript-eslint/no-unused-vars": "error",
|
2021-07-28 13:15:52 +00:00
|
|
|
},
|
|
|
|
};
|