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 }],
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
],
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
};