28 lines
588 B
JavaScript
28 lines
588 B
JavaScript
|
module.exports = {
|
||
|
env: {
|
||
|
browser: true,
|
||
|
es2021: true,
|
||
|
},
|
||
|
extends: [
|
||
|
"plugin:react/recommended",
|
||
|
"airbnb",
|
||
|
"prettier",
|
||
|
"prettier/@typescript-eslint",
|
||
|
"prettier/react",
|
||
|
],
|
||
|
parser: "@typescript-eslint/parser",
|
||
|
parserOptions: {
|
||
|
ecmaFeatures: {
|
||
|
jsx: true,
|
||
|
},
|
||
|
ecmaVersion: 12,
|
||
|
sourceType: "module",
|
||
|
},
|
||
|
plugins: ["react", "@typescript-eslint"],
|
||
|
rules: {
|
||
|
"react/react-in-jsx-scope": "off",
|
||
|
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx", ".tsx"] }],
|
||
|
"react/jsx-props-no-spreading": "off",
|
||
|
},
|
||
|
};
|