Formatage eslint lors de la sauvegarde

pull/2093/head
Jérémy Rialland 2022-04-04 15:49:00 +02:00 committed by Jérémy Rialland
parent 5b713d1371
commit a0f49a7eae
2 changed files with 7 additions and 3 deletions

View File

@ -1,12 +1,16 @@
{
"editor.formatOnSave": true,
"spellright.language": ["fr", "en"],
"spellright.documentTypes": ["yaml", "git-commit", "markdown"],
"typescript.tsdk": "node_modules/typescript/lib",
"editor.tabSize": 2,
"eslint.enable": true,
"cSpell.words": ["mycompanyinfrance", "smarttag"],
"search.exclude": {
"**/dist": true
},
"eslint.enable": true,
"eslint.format.enable": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}

View File

@ -20,7 +20,7 @@
"lint:eslint:fix": "yarn lint:eslint --fix",
"lint:prettier": "yarn run prettier --check \"**/*.{js,jsx,ts,tsx,yaml,yml}\"",
"lint:prettier:fix": "yarn lint:prettier --write",
"lint:fix": "yarn lint:eslint:fix && yarn lint:prettier:fix",
"lint:fix": "yarn lint:eslint:fix ; yarn lint:prettier:fix",
"lint": "yarn lint:eslintrc && yarn lint:eslint && yarn lint:prettier",
"postinstall": "yarn workspaces foreach -piv --exclude site run prepack",
"test": "yarn workspaces foreach run test",