PromucFlow_constructor/app/client/.eslintrc.js

28 lines
858 B
JavaScript
Raw Normal View History

2019-08-29 11:22:09 +00:00
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ["react", "@typescript-eslint", "prettier"],
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: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
ecmaFeatures: {
jsx: true // Allows for the parsing of JSX
}
},
rules: {
2019-09-09 09:08:54 +00:00
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0
2019-08-29 11:22:09 +00:00
},
settings: {
react: {
pragma: "React",
2019-08-29 11:22:09 +00:00
version: "detect" // Tells eslint-plugin-react to automatically detect the version of React to use
}
}
2019-09-09 09:08:54 +00:00
};