1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

fixed prettier, eslint?

This commit is contained in:
muerwre 2019-08-07 15:48:17 +07:00
parent 3eafd990cb
commit 3413b22ac2
6 changed files with 70 additions and 20 deletions

View file

@ -1,21 +1,21 @@
module.exports = {
extends: ['airbnb', 'airbnb-base', 'plugin:@typescript-eslint/recommended'],
extends: ['airbnb', 'airbnb-base', 'plugin:@typescript-eslint/recommended', 'prettier'],
// "parser": "babel-eslint",
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
jsx: true
},
project: './tsconfig.json',
project: './tsconfig.json'
},
plugins: ['@typescript-eslint', 'react', 'jsx-a11y', 'import', 'react-hooks'],
plugins: ['@typescript-eslint', 'react', 'jsx-a11y', 'import', 'react-hooks', 'prettier'],
settings: {
'import/resolver': {
// node: {
// extensions: ['.js', '.jsx', '.ts', '.tsx'],
// },
typescript: {},
},
typescript: {}
}
},
rules: {
indent: ['error', 2],
@ -48,11 +48,12 @@ module.exports = {
'import/prefer-default-export': 0,
'no-return-await': 0,
'prefer-promise-reject-errors': 0,
'import/order': 0
},
globals: {
document: false,
window: false,
HTMLInputElement: false,
HTMLDivElement: false,
},
HTMLDivElement: false
}
};