-
Notifications
You must be signed in to change notification settings - Fork 10
Feature/setup project #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4485d4a
Initialize TypeScript project
abbesBenayache 96d60b4
add Prettier code formatter
abbesBenayache c9ed088
add Eslint
abbesBenayache d2472ef
add eslint-config-prettier
abbesBenayache 40dffe1
add some ESLint rules
abbesBenayache 3d8fcbe
add debug script commands
abbesBenayache a31a4b1
update compilation configuration
abbesBenayache c0347be
update package.json and .eslintrc options
abbesBenayache 140d5ef
Update package.json
abbesBenayache File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,19 @@ | ||
| { | ||
| "plugins": [ | ||
| "@typescript-eslint", // mandatory typescript plugin | ||
| "sonarjs" // sonar plugin for code analysis | ||
| ], | ||
| "extends": [ | ||
| "airbnb-base", // use instead on eslint recommended as a stricter alternative | ||
| "airbnb-typescript/base", // airbnb rules overrides for typescript | ||
| "plugin:@typescript-eslint/recommended", | ||
| "plugin:sonarjs/recommended", // sonar | ||
| "prettier" // compatibility with prettier (disable conflicting rules) NB: this is the `eslint-config-prettier` it should not be duplicated | ||
| ], | ||
| "parser": "@typescript-eslint/parser", | ||
| "parserOptions": { | ||
| "ecmaVersion": "latest", | ||
| "sourceType": "module" | ||
| }, | ||
| "rules": {} | ||
| } |
This file contains hidden or 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,21 @@ | ||
| # Compiled output | ||
| /dist | ||
| /demo | ||
| # Dependency directories | ||
| /node_modules | ||
|
|
||
| # IDE files | ||
| /.vscode | ||
| /.idea | ||
|
|
||
| # Miscellaneous | ||
| /.DS_Store | ||
| /.env | ||
| /*.log | ||
| /*.env | ||
|
|
||
| # TypeScript specific | ||
| *.tsbuildinfo | ||
|
|
||
| # sonar output | ||
| .scannerwork | ||
This file contains hidden or 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,11 @@ | ||
| { | ||
abbesBenayache marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "printWidth": 80, | ||
| "tabWidth": 2, | ||
| "useTabs": false, | ||
| "semi": true, | ||
| "singleQuote": true, | ||
| "trailingComma": "es5", | ||
| "bracketSpacing": true, | ||
| "arrowParens": "always", | ||
| "endOfLine": "lf" | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.