-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update eslint config * remove unused files * lint code * update linter setup * update example
- Loading branch information
1 parent
ede4fee
commit bfd459c
Showing
24 changed files
with
2,011 additions
and
1,436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"*.{ts,tsx}": "eslint --fix" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,59 @@ | ||
{ | ||
// only use words from .cspell.json | ||
"cSpell.userWords": [], | ||
"cSpell.enabled": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"// editor": "-------------------------------------", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit", | ||
"source.organizeImports": "never" | ||
}, | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
"editor.formatOnSave": true, | ||
"editor.insertSpaces": true, | ||
"files.exclude": { | ||
"**/node_modules/**": true, | ||
"htmlcov/": true, | ||
".coverage": true, | ||
"coverage.xml": true, | ||
"**/.eslintcache": true, | ||
"yarn-error.log": true | ||
"editor.tabSize": 2, | ||
"eslint.format.enable": true, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[markdown]": { | ||
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint" | ||
}, | ||
"// files": "-------------------------------------", | ||
"files.trimTrailingWhitespace": true, | ||
"files.trimFinalNewlines": true, | ||
"files.insertFinalNewline": true, | ||
"[json]": { | ||
"editor.tabSize": 2 | ||
}, | ||
"[typescript][typescriptreact][javascript][javascriptreact]": { | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"editor.tabSize": 2 | ||
}, | ||
"eslint.workingDirectories": [{ "mode": "auto" }], | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true | ||
"files.associations": { | ||
"*.ignore": "plaintext", | ||
"*.txt": "plaintext", | ||
"*.tsx": "typescriptreact", // Associe .tsx à TypeScript pour React | ||
"*.ts": "typescript" | ||
}, | ||
"files.exclude": { | ||
"**/*.js": { | ||
"when": "$(basename).ts" | ||
} // Cache les fichiers .js générés si vous utilisez TypeScript | ||
}, | ||
"// typescript": "-------------------------------------", | ||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"typescript.validate.enable": true, | ||
"// eslint": "-------------------------------------", | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"html", | ||
"markdown", | ||
"json", | ||
"jsonc", | ||
"yaml" | ||
], | ||
"prettier.enable": true, | ||
"typescript.tsserver.allowLocalPluginLoads": true, | ||
"typescript.tsserver.pluginPaths": ["./"] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.