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

build(eslint): enable linting hidden folders #401

Merged
merged 1 commit into from
Oct 2, 2019

Conversation

markov00
Copy link
Member

@markov00 markov00 commented Oct 2, 2019

Summary

ESlint by default ignore folders with a name that start with a dot like .storybook and .playground.
This will un-ignore those folders allowing eslint capabilities on editor also on these folders.
see eslint/eslint#8429 (comment)

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

  • [ ] Any consumer-facing exports were added to src/index.ts (and stories only import from ../src except for test data & storybook)
  • [ ] This was checked for cross-browser compatibility, including a check against IE11
  • [ ] Proper documentation or storybook story was added for features that require explanation or tutorials
  • [ ] Unit tests were updated or added to match the most common scenarios
  • Each commit follows the convention

ESlint by default ignore folders with a name that start with a dot like .storybook and .playground.
This will un-ignore those folders allowing eslint capabilities on editor also on these folders.
@markov00 markov00 requested a review from nickofthyme October 2, 2019 13:17
@markov00 markov00 added the chore label Oct 2, 2019
@codecov-io
Copy link

codecov-io commented Oct 2, 2019

Codecov Report

Merging #401 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #401   +/-   ##
=======================================
  Coverage   98.25%   98.25%           
=======================================
  Files          38       38           
  Lines        2814     2814           
  Branches      666      666           
=======================================
  Hits         2765     2765           
  Misses         44       44           
  Partials        5        5

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79cd100...25b8746. Read the comment docs.

Copy link
Collaborator

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

Nice I didn't think this would work! 🎉

@nickofthyme
Copy link
Collaborator

PS this was my solution 👇

// settings.json
{
  "eslint.workingDirectories": [
    { "directory": "/Users/nicholaspartridge/Documents/repos/elastic-charts/.playground", 
  "changeProcessCWD": true },
    { "directory": "/Users/nicholaspartridge/Documents/repos/elastic-charts/.storybook", 
  "changeProcessCWD": true }
  ],
}

@markov00 markov00 merged commit fd94b1e into elastic:master Oct 2, 2019
@markov00 markov00 deleted the eslint-unignore-dot-folders branch October 2, 2019 15:19
@markov00
Copy link
Member Author

markov00 commented Oct 7, 2019

🎉 This PR is included in version 13.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants