-
Notifications
You must be signed in to change notification settings - Fork 378
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
Moving fully to eslint, removing prettier #1024
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
2d03506
Combining lint rules into one .eslintrc.js file, removing prettier, mβ¦
filmaj f661ff7
Update eslint-config-airbnb-typescript to v12 from v8 - eliminates peβ¦
filmaj d3f8e47
Use main tsconfig for mocha test run.
filmaj 7dbf5a2
Add a src/types-specific rule for allowing type properties to be nameβ¦
filmaj a0e4517
Accept both camel and snake case for src/types/**/*.ts type properties.
filmaj 31156fb
Fix import ordering in files - passes import/order lint rules.
filmaj df80a44
Fix indentation linter warnings
filmaj 7fad415
Fix ban-types linter errors
filmaj 2a136ec
Do not use generators to iterate over arrays, use array iterators insβ¦
filmaj d2e26ad
Remove extraneous interface, ignore unused type
filmaj cc9ffb5
Fixing lint errors for "no-use-before-define" rule.
filmaj 1eebc5b
Fix missing function return types
filmaj 81bdcd1
Export a function by default in modules
filmaj 90cc33c
No multiple empty lines
filmaj abdafa5
Fixing space after block comment.
filmaj f1d06ca
Disable property-on-param reassignment warning for test helper code
filmaj bbabb64
Fixing no-undef-init rules
filmaj cc545b8
Fixing no-shadow lint rule failures.
filmaj 84a8e7e
Fix object-shorthand lint rule failures.
filmaj e98755d
Fix failing no-empty-pattern rule; reuse the `noop` test handler wherβ¦
filmaj 5fb8a1f
Fix arrow-body-style lint failures.
filmaj 695540e
Fix max length of line
filmaj c7909df
Remove type-specific snake_case naming rules and subsume into global β¦
filmaj fc8f4d5
Formatting, max-len and newline fixes
filmaj 62341a8
Formating, fixing unary operators, spacing, addressing one-off lint fβ¦
filmaj a3f95b1
Remove unneeded package.json run scripts.
filmaj 40bc25d
Disable the only occurrences of no-nested-ternary - but is this the rβ¦
filmaj 47ea9c8
Attempt at rewriting nested ternary payload assignment into a switch.
filmaj df0a65f
Specify type of payload when processing events
filmaj ec00e2a
Turn off no-inferrable-types linting rule
filmaj 04bb01f
Tweak the operator-linebreak lint rule: forbid line breaks around theβ¦
filmaj a3df370
Expand allowed source directories where one may reach into their subdβ¦
filmaj 60e81e9
Remove strict-boolean-expressions rule. This rule effectively preventβ¦
filmaj 03bfdff
Disable max-classes-per-file rule.
filmaj 1523503
Enum members should use PascalCase.
filmaj 29ecb16
Add test-specific ruleset and disable prefer-arrow-callback for tests.
filmaj 7fd5213
Allow unused vars and args to exist if they have a leading underscoreβ¦
filmaj edd9490
Fix lint error for missing accessibility modifier on class methods
filmaj 600546b
Fix lint errors for operator linebreaks.
filmaj b2cc2a5
Ignore import lint rules around use of require for importing package.β¦
filmaj 97c708c
Fixing consistent-return linter warnings.
filmaj 9cdc81d
Removing no-longer-needed eslint ignore directives, making explicit tβ¦
filmaj 814aec5
Removing no longer needed tslint directives.
filmaj bcb5d85
Remove unnecessary dependency
filmaj c0a57ac
Fix @typescript-eslint/ban-types linter failure
filmaj bafe97e
Fixing up bad merge
filmaj 3914689
New lint fixes for new test file.
filmaj feb7f79
Move an eslint dependency to devDependencies.
filmaj a0104e6
Remove unnecessary type declaration / fix linter warning
filmaj File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
I am not a vscode user so I can't speak to these settings, could someone who uses vscode opine on this?
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.
@filmaj I think that disabling these is fine so far. One thing I'm slightly frustrated is that this works also for the example app projects under
examples
but the errors are not relevant. If we can disable this settings forexamples
at least, it would be helpful for maintainers.