fennec-fe/.eslintrc.js
Ivan Li 93bb5daf33 feat(overlay): 添加通用组件 overlay。
feat(project): 添加 新增项目界面。
2021-02-13 20:24:15 +08:00

47 lines
1.2 KiB
JavaScript

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
},
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',
'@typescript-eslint/no-non-null-assertion': 'off'
}
},
]
};