Add Prettier to format TypeScript files

(cherry picked from commit de56862bb97b092c5fc44359caf3b2abdbcfdf96)
This commit is contained in:
Mark McDowall
2023-01-08 00:26:33 -08:00
committed by Qstick
parent 545d47b05c
commit 2cd1679918
6 changed files with 76 additions and 3 deletions

View File

@@ -45,7 +45,8 @@ module.exports = {
'react-hooks',
'simple-import-sort',
'import',
'@typescript-eslint'
'@typescript-eslint',
'prettier'
],
settings: {
@@ -348,12 +349,17 @@ module.exports = {
project: './tsconfig.json'
},
extends: [
'prettier'
],
rules: Object.assign(typescriptEslintRecommended.rules, {
'no-shadow': 'off',
// These should be enabled after cleaning things up
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/explicit-function-return-type': 'off',
'react/prop-types': 'off',
'prettier/prettier': 'error',
'simple-import-sort/imports': [
'error',
{