2020-04-26 11:36:41 +02:00
|
|
|
module.exports = {
|
2020-04-26 22:41:06 +02:00
|
|
|
root: true,
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true, // Allows for the parsing of JSX
|
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
'@typescript-eslint',
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
|
|
|
|
},
|
|
|
|
},
|
2020-04-26 11:36:41 +02:00
|
|
|
extends: [
|
2020-04-26 22:41:06 +02:00
|
|
|
'plugin:react/recommended',
|
|
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
|
|
'@typescript-eslint/no-use-before-define': 'off',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
|
|
'react/prop-types': 'off',
|
|
|
|
quotes: ['error', 'single'],
|
|
|
|
'comma-dangle': ['error', 'always-multiline'],
|
|
|
|
'array-bracket-newline': ['error', 'consistent'],
|
|
|
|
'quote-props': ['error', 'as-needed'],
|
2020-04-27 16:47:32 +02:00
|
|
|
'indent': ['warn', 'tab'],
|
2020-04-27 16:50:45 +02:00
|
|
|
semi: ["error", "always"],
|
2020-04-26 22:41:06 +02:00
|
|
|
},
|
|
|
|
}
|