2018-07-12 11:50:47 +02:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2019-03-13 15:31:59 +01:00
|
|
|
parser: 'babel-eslint',
|
2018-07-12 11:50:47 +02:00
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2017,
|
|
|
|
sourceType: 'module'
|
|
|
|
},
|
|
|
|
globals: {
|
2022-02-02 17:16:50 +01:00
|
|
|
process: true,
|
|
|
|
gon: true
|
2018-07-12 11:50:47 +02:00
|
|
|
},
|
2019-03-13 15:31:59 +01:00
|
|
|
plugins: ['prettier', 'react-hooks'],
|
2022-02-02 17:16:50 +01:00
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'prettier',
|
|
|
|
'plugin:react/recommended',
|
|
|
|
'plugin:react-hooks/recommended'
|
|
|
|
],
|
2018-07-12 11:50:47 +02:00
|
|
|
env: {
|
2018-10-16 10:49:00 +02:00
|
|
|
es6: true,
|
2018-07-12 11:50:47 +02:00
|
|
|
browser: true
|
|
|
|
},
|
|
|
|
rules: {
|
2019-03-13 15:31:59 +01:00
|
|
|
'prettier/prettier': 'error',
|
2022-02-02 17:16:50 +01:00
|
|
|
'react-hooks/rules-of-hooks': 'error',
|
2022-02-22 13:14:11 +01:00
|
|
|
'react-hooks/exhaustive-deps': 'error',
|
2022-02-02 17:16:50 +01:00
|
|
|
'react/prop-types': 'off'
|
2019-03-13 15:31:59 +01:00
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: 'detect'
|
|
|
|
}
|
2018-09-12 10:40:12 +02:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
2022-02-02 17:16:50 +01:00
|
|
|
files: [
|
|
|
|
'.eslintrc.js',
|
|
|
|
'config/webpack/**/*.js',
|
|
|
|
'babel.config.js',
|
|
|
|
'postcss.config.js'
|
|
|
|
],
|
2018-09-12 10:40:12 +02:00
|
|
|
env: {
|
|
|
|
node: true
|
|
|
|
}
|
2022-02-02 17:16:50 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ['@typescript-eslint'],
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:react-hooks/recommended',
|
|
|
|
'prettier'
|
2022-02-22 13:14:11 +01:00
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
'prettier/prettier': 'error',
|
|
|
|
'react-hooks/rules-of-hooks': 'error',
|
2022-02-23 13:37:18 +01:00
|
|
|
'react-hooks/exhaustive-deps': 'error',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'error'
|
2022-02-22 13:14:11 +01:00
|
|
|
}
|
2018-09-12 10:40:12 +02:00
|
|
|
}
|
|
|
|
]
|
2018-07-12 11:50:47 +02:00
|
|
|
};
|