module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: ["plugin:react/recommended", "airbnb"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
ecmaVersion: 12,
sourceType: "module",
plugins: ["react", "@typescript-eslint"],
rules: {
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"react/jsx-filename-extension": [1, { extensions: [".tsx", ".ts"] }],
"consistent-return": ["error", { treatUndefinedAsUnspecified: false }],
quotes: ["error", "double"],
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
"no-console": "off",
"max-len": ["error", { code: 300 }],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
],
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
};