Skip to content
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

Remove overrides #184

Merged
merged 1 commit into from
Jun 14, 2020
Merged

Remove overrides #184

merged 1 commit into from
Jun 14, 2020

Conversation

pohnemus
Copy link
Collaborator

Cleaning up some overrides.

These are actually duplicated in this repository so removed them from the index file:

  • 'max-lines-per-function': 'off',
  • 'max-nested-callbacks': 'off',
  • 'max-statements': 'off',
  • 'no-undefined': 'off',
  • 'no-unused-expressions': 'off',
  • 'no-unused-vars': 'off',

This has been deprecated in favor of padding-line-between-statements:

  • 'newline-after-var': 'off',

This has also been totally deprecated:

  • 'no-process-env': 'off',

@tclindner tclindner merged commit ce039d5 into master Jun 14, 2020
@tclindner tclindner deleted the remove-rules branch June 14, 2020 01:04
@@ -82,14 +82,6 @@ module.exports = {
'jest/valid-expect': 'error',
'jest/valid-title': 'error',
'max-lines': 'off',
'max-lines-per-function': 'off',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought, we might want to add max-lines-per-function, max-statements, max-nested-callbacks, and no-undefined back in. It is useful in tests to check if something is undefined. It is also useful to nest describe and test blocks. What do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree they are useful but they are already set in files in the rules folder which I think covers us - right?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is the overrides section for test files only. If we want the rule disabled for tests we will need to add it here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh I missed that. And that makes sense to add back in sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants