chore: install Prettier code linter #242
This commit is contained in:
parent
77faa8ada6
commit
024dd758e4
2 changed files with 9 additions and 2 deletions
|
|
@ -6,7 +6,8 @@
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"extends": [
|
"extends": [
|
||||||
"airbnb-base"
|
"airbnb-base",
|
||||||
|
"prettier"
|
||||||
],
|
],
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
|
|
@ -14,8 +15,10 @@
|
||||||
"sourceType": "module"
|
"sourceType": "module"
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@typescript-eslint"
|
"@typescript-eslint",
|
||||||
|
"prettier"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"prettier/prettier": ["error"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
app/.prettierrc
Normal file
4
app/.prettierrc
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"printWidth": 100,
|
||||||
|
"singleQuote": true
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue