24 lines
630 B
JavaScript
24 lines
630 B
JavaScript
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"],
|
|
},
|
|
};
|