52 lines
1.0 KiB
JavaScript
52 lines
1.0 KiB
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",
|
|
|
|
'no-unused-vars': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
|
|
'no-use-before-define': [0],
|
|
'@typescript-eslint/no-use-before-define': [1],
|
|
|
|
"import/extensions": [
|
|
"error",
|
|
"ignorePackages",
|
|
{
|
|
"js": "never",
|
|
"jsx": "never",
|
|
"ts": "never",
|
|
"tsx": "never"
|
|
}
|
|
]
|
|
},
|
|
settings: {
|
|
"import/resolver": {
|
|
"node": {
|
|
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
|
}
|
|
}
|
|
},
|
|
};
|