chore: configure and format file

This commit is contained in:
鲁树人 2023-05-15 21:04:45 +01:00
parent 2ee3eaed0e
commit 80fbef6359
5 changed files with 1040 additions and 619 deletions

View File

@ -7,7 +7,7 @@ module.exports = {
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
"prettier"
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
@ -15,4 +15,4 @@ module.exports = {
rules: {
'react-refresh/only-export-components': 'warn',
},
}
};

2
.prettierignore Normal file
View File

@ -0,0 +1,2 @@
dist/

View File

@ -7,6 +7,7 @@
"start": "vite",
"build": "tsc && vite build",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier -w .",
"preview": "vite preview"
},
"dependencies": {
@ -42,6 +43,7 @@
},
"prettier": {
"singleQuote": true,
"printWidth": 120
"printWidth": 120,
"tabWidth": 2
}
}

File diff suppressed because it is too large Load Diff