57eb3d317b
feat: tailwindcss + mobx + apollo.
46 lines
1.1 KiB
JavaScript
46 lines
1.1 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'
|
|
}
|
|
},
|
|
]
|
|
};
|