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:
parent
3eafd990cb
commit
3413b22ac2
6 changed files with 70 additions and 20 deletions
17
.eslintrc.js
17
.eslintrc.js
|
@ -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
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue