mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-10 23:35:08 +01:00
41 lines
825 B
JavaScript
41 lines
825 B
JavaScript
module.exports = {
|
|
extends: [
|
|
"airbnb",
|
|
"airbnb/hooks",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier",
|
|
],
|
|
settings: {
|
|
"import/resolver": {
|
|
typescript: {},
|
|
},
|
|
},
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
project: "./tsconfig.json",
|
|
tsconfigRootDir: "./",
|
|
},
|
|
plugins: ["@typescript-eslint", "import"],
|
|
env: {
|
|
browser: true,
|
|
},
|
|
rules: {
|
|
"react/jsx-uses-react": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/require-default-props": "off",
|
|
"react/destructuring-assignment": "off",
|
|
"react/jsx-filename-extension": [
|
|
"error",
|
|
{ extensions: [".js", ".tsx", ".jsx"] },
|
|
],
|
|
"import/extensions": [
|
|
"error",
|
|
"ignorePackages",
|
|
{
|
|
ts: "never",
|
|
tsx: "never",
|
|
},
|
|
],
|
|
},
|
|
};
|