PromucFlow_constructor/app/client/.eslintrc.js
2019-08-29 16:52:09 +05:30

23 lines
715 B
JavaScript

module.exports = {
parser: '@typescript-eslint/parser',
// plugins: ['@typescript-eslint', 'react'],
extends: [
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
'plugin:@typescript-eslint/recommended'
],
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: {
"@typescript-eslint/explicit-function-return-type": "off",
},
settings: {
react: {
version: "detect" // Tells eslint-plugin-react to automatically detect the version of React to use
}
}
};