PromucFlow_constructor/app/client/.eslintrc.js

38 lines
1.1 KiB
JavaScript
Raw Normal View History

2019-08-29 11:22:09 +00:00
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["react", "@typescript-eslint", "prettier", "react-hooks"],
2019-08-29 11:22:09 +00:00
extends: [
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
2019-08-29 11:22:09 +00:00
],
parserOptions: {
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
2019-08-29 11:22:09 +00:00
sourceType: "module", // Allows for the use of imports
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
2019-08-29 11:22:09 +00:00
},
rules: {
2019-12-16 08:49:10 +00:00
"@typescript-eslint/no-explicit-any": 0,
"react-hooks/rules-of-hooks": "error",
2019-12-30 07:39:53 +00:00
"@typescript-eslint/no-use-before-define": 0,
2020-03-20 04:05:54 +00:00
"@typescript-eslint/no-var-requires": 0,
"import/no-webpack-loader-syntax": 0,
"no-undef": 0,
"react/prop-types": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
2019-08-29 11:22:09 +00:00
},
settings: {
react: {
pragma: "React",
version: "detect", // Tells eslint-plugin-react to automatically detect the version of React to use
},
},
env: {
browser: true,
node: true,
},
2019-09-09 09:08:54 +00:00
};