fennec-fe/.eslintrc.js

46 lines
1.1 KiB
JavaScript
Raw Normal View History

2021-01-30 20:12:48 +08:00
module.exports = {
env: {
browser: true
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
2021-01-30 20:12:48 +08:00
},
project: './tsconfig.eslint.json'
},
rules: {
'react/no-unknown-property': ['error', { ignore: ['class'] }],
'@typescript-eslint/explicit-function-return-type': 'off',
quotes: ['error', 'single'],
'prettier/prettier': ['error', { singleQuote: true }]
},
settings: {
react: {
pragma: 'h',
version: 'detect'
}
},
overrides: [
{
files: ['*.js', '*.ts', '*.tsx'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/interface-name-prefix': 'off'
}
2021-01-30 20:12:48 +08:00
},
]
2021-01-30 20:12:48 +08:00
};