PromucFlow_constructor/app/client/.eslintrc.js

34 lines
1.0 KiB
JavaScript
Raw Normal View History

/*
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
*/
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: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unexpected-multiline": "on",
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
}
}
};