2018-07-12 11:50:47 +02:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2022-03-31 12:07:52 +02:00
|
|
|
parser: 'babel-eslint',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2017,
|
|
|
|
sourceType: 'module'
|
|
|
|
},
|
2018-07-12 11:50:47 +02:00
|
|
|
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: {
|
2022-03-31 12:07:52 +02:00
|
|
|
react: {
|
|
|
|
version: 'detect'
|
|
|
|
}
|
2018-09-12 10:40:12 +02:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
2022-03-31 12:07:52 +02:00
|
|
|
files: [
|
|
|
|
'.eslintrc.js',
|
|
|
|
'config/webpack/**/*.js',
|
|
|
|
'babel.config.js',
|
|
|
|
'postcss.config.js'
|
|
|
|
],
|
|
|
|
env: {
|
|
|
|
node: true
|
|
|
|
}
|
2022-02-02 17:16:50 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
files: ['**/*.ts', '**/*.tsx'],
|
2022-03-31 12:07:52 +02:00
|
|
|
parser: '@typescript-eslint/parser',
|
2022-02-02 17:16:50 +01:00
|
|
|
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',
|
2022-02-24 17:20:17 +01:00
|
|
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
|
|
'@typescript-eslint/no-unused-vars': '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
|
|
|
};
|