Skip to content

Consolidate strict rule definition between airbnb and airbnb-base #1962

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 3 commits into from
Aug 10, 2019

Conversation

edmorley
Copy link
Contributor

See individual commit messages for more details.

Fixes #1582.

Previously `rules/strict.js` was only used by `eslint-config-airbnb`
and not base. This change reduces the duplication, and means the rule
is now set to 'never' as opposed to the ESLint default of 'safe'.

For users that left the `sourceType` at this preset's default of
`module` this change will be a no-op, since in module-mode the
`strict` rule always behaves as though 'never' had been set.

See:
https://eslint.org/docs/rules/strict#options
Since the file is now imported in base instead.

Fixes airbnb#1582.
Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

LGTM, but i'm going to hold off merging this until other semver-major changes are ready.

@edmorley edmorley force-pushed the cleanup-strict-rule branch from b24ffd5 to fee92ba Compare June 23, 2019 19:51
@edmorley
Copy link
Contributor Author

I've rebased on master to resolve the conflicts, given the next major release is likely to be not too far out :-)

@ljharb ljharb force-pushed the cleanup-strict-rule branch from fee92ba to ad0c44c Compare August 10, 2019 02:06
Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

'use time to merge;'

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

Successfully merging this pull request may close these issues.

Consolidating strict rule definition between airbnb and airbnb-base
2 participants