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 Bogdan
commit e149476cf8
6 changed files with 76 additions and 3 deletions

View file

@ -49,7 +49,8 @@ module.exports = {
'react-hooks',
'simple-import-sort',
'import',
'@typescript-eslint'
'@typescript-eslint',
'prettier'
],
settings: {
@ -352,12 +353,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',
{