Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Remove extra keys that are invalid in eslintrc #358

Merged
merged 1 commit into from
Oct 13, 2017
Merged

Remove extra keys that are invalid in eslintrc #358

merged 1 commit into from
Oct 13, 2017

Conversation

eliperelman
Copy link
Member

@eliperelman eliperelman commented Oct 12, 2017

Fixes #356.

@eliperelman eliperelman requested a review from a team October 12, 2017 17:42
Copy link
Member

@edmorley edmorley left a comment

Choose a reason for hiding this comment

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

Looks good! Perhaps we should add a manual eslint invocation to the Travis run that would catch this? It needn't necessarily lint all the same files but iirc there's a validate config eslint option? (On mobile, so not sure)

"yarn lint --fix",
"git add"
],
"packages/neutrino/bin/neutrino": [
Copy link
Member

Choose a reason for hiding this comment

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

Should this be .../bin/* for parity with the include entry in .neutrinorc.js ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Everything in bin is already caught by *.js previously, so I thought this would cover the only other file.

@@ -15,8 +15,7 @@ const reduceToTrueKeys = reduce((acc, key) => assoc(key, true, acc), {});
const getEslintRcConfig = pipe(
getEslintOptions,
clone,
assoc('useEslintrc', true),
omit(['failOnError', 'emitWarning', 'emitError']),
omit(['failOnError', 'emitWarning', 'emitError', 'cwd', 'useEslintrc', 'fix', 'extensions']),
Copy link
Member

Choose a reason for hiding this comment

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

@eliperelman
Copy link
Member Author

@edmorley I like that idea! I've implemented something rudimentary that should be usable by Travis.

@eliperelman eliperelman requested a review from a team October 12, 2017 18:55
@eliperelman eliperelman merged commit 62945b6 into neutrinojs:master Oct 13, 2017
@edmorley
Copy link
Member

The Travis tests look great!

Could you also add the new eslintrc.js files to those package's .npmignore, so they are not bundled?

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

Successfully merging this pull request may close these issues.

2 participants