2024-10-13 09:57:11 +07:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2021: true
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:react/recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended'
|
|
|
|
],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 'latest',
|
|
|
|
sourceType: 'module'
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
'react',
|
|
|
|
'@typescript-eslint'
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: 'detect'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
2024-10-13 11:01:14 +07:00
|
|
|
"react/prop-types": "off"
|
|
|
|
|
2024-10-13 09:57:11 +07:00
|
|
|
}
|
2024-10-13 11:01:14 +07:00
|
|
|
|
|
|
|
|
2024-10-13 09:57:11 +07:00
|
|
|
}
|