23 lines
775 B
JavaScript
23 lines
775 B
JavaScript
module.exports = {
|
|
plugins: ['unused-imports', 'simple-import-sort'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:react/jsx-runtime',
|
|
'plugin:react-hooks/recommended',
|
|
'@electron-toolkit/eslint-config-ts/recommended',
|
|
'@electron-toolkit/eslint-config-prettier'
|
|
],
|
|
rules: {
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'unused-imports/no-unused-imports': 'error',
|
|
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
|
|
'react/prop-types': 'off',
|
|
'simple-import-sort/imports': 'error',
|
|
'simple-import-sort/exports': 'error',
|
|
'react/no-is-mounted': 'off',
|
|
'prettier/prettier': ['error', { endOfLine: 'auto' }]
|
|
}
|
|
}
|