demarches-normaliennes/.eslintrc.js

53 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

module.exports = {
root: true,
2022-06-17 12:36:21 +02:00
parser: '@typescript-eslint/parser',
globals: {
2022-02-02 17:16:50 +01:00
process: true,
gon: true
},
plugins: ['prettier', 'react-hooks'],
2022-02-02 17:16:50 +01:00
extends: [
'eslint:recommended',
'prettier',
'plugin:react/recommended',
'plugin:react-hooks/recommended'
],
env: {
2018-10-16 10:49:00 +02:00
es6: true,
browser: true
},
rules: {
'prettier/prettier': 'error',
2022-02-02 17:16:50 +01:00
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
2023-09-01 11:04:34 +02:00
'react/prop-types': 'off',
'react/no-deprecated': 'off'
},
settings: {
2022-06-17 12:36:21 +02:00
react: { version: 'detect' }
2018-09-12 10:40:12 +02:00
},
overrides: [
{
2022-08-31 14:49:53 +02:00
files: ['.eslintrc.js', 'vite.config.ts', 'postcss.config.js'],
2022-06-17 12:36:21 +02:00
env: { node: true }
2022-02-02 17:16:50 +01:00
},
{
files: ['**/*.ts', '**/*.tsx'],
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'prettier'
],
rules: {
'prettier/prettier': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'error'
}
2018-09-12 10:40:12 +02:00
}
]
};