-
Notifications
You must be signed in to change notification settings - Fork 587
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
feat: add code linting and prettify #1350
Merged
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
952c1aa
feat: add eslint and prettier config
alexforsyth 860ac2a
fix: auto lint fixes
alexforsyth 716b289
fix: manual configuration and code updates for eslint
alexforsyth ac0a1e4
fix: automatically fixed by eslint
alexforsyth 3ed0d03
fix: properly build, tighten eslint rules
alexforsyth df9de13
fix: tslint building properly
alexforsyth 22c318d
fix: manual linter fixes
alexforsyth c146f6f
fix: merge-commit
alexforsyth 0823304
fix: merge conflict + lint
alexforsyth 69a231b
feat: add prettify command
alexforsyth a525b24
feat: prettify codebase
alexforsyth 64584cc
fix: clean up tsconfig
alexforsyth 1be752d
fix: remove prettier from scripts
alexforsyth 7963f82
Revert "feat: prettify codebase"
alexforsyth 107863f
chore: merging in files
alexforsyth 3d2b012
fix: automatic linting fixes
alexforsyth 0061a72
fix: manual resolution of linter errors and warnings
alexforsyth 9f14d9c
fix: automatic linter fixes round 2
alexforsyth 1fb7062
feat: manual resolution of eslint errors
alexforsyth 93a2beb
fix: clients update from upstream
alexforsyth 7450229
fix: lint fix protocol_tests
alexforsyth a71b037
fix: use exact versions package.json
alexforsyth 33eb6a7
fix: unprettify hooks
alexforsyth bc4ea50
fix: lockfile update
alexforsyth 528597c
Merge branch 'master' into alexforsyth/common-linter
trivikr 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 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,14 @@ | ||
module.exports = { | ||
parser: "@typescript-eslint/parser", // Specifies the ESLint parser | ||
parserOptions: { | ||
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features | ||
sourceType: "module" // Allows for the use of imports | ||
}, | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended" // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
], | ||
rules: { | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
// e.g. "@typescript-eslint/explicit-function-return-type": "off", | ||
} | ||
}; |
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,7 @@ | ||
module.exports = { | ||
semi: true, | ||
trailingComma: "all", | ||
singleQuote: true, | ||
printWidth: 120, | ||
tabWidth: 4 | ||
}; |
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is added by mistake, removed here: 716b289