demarches-normaliennes/.eslintrc.js

52 lines
1.2 KiB
JavaScript
Raw 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',
2022-02-02 17:16:50 +01:00
'react/prop-types': 'off'
},
settings: {
2022-06-17 12:36:21 +02:00
react: { version: 'detect' }
2018-09-12 10:40:12 +02:00
},
overrides: [
{
2022-06-17 12:36:21 +02:00
files: ['.eslintrc.js', 'vite.config.ts'],
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
}
]
};