Skip to content

fix(hygen): fixes hygen + eslint bug#288

Merged
mikemfleming merged 2 commits intocision:masterfrom
mikemfleming:TS-283
Dec 16, 2020
Merged

fix(hygen): fixes hygen + eslint bug#288
mikemfleming merged 2 commits intocision:masterfrom
mikemfleming:TS-283

Conversation

@mikemfleming
Copy link
Copy Markdown
Contributor

resolves #283

Generating a new component and committing it would fail on the pre commit lint step. This updates makes the following updates:

  • Generating a new component creates a ts story file instead of js
  • Excludes example and src/stories from estlint

Copy link
Copy Markdown
Contributor

@pixelbandito pixelbandito left a comment

Choose a reason for hiding this comment

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

One super teeny thing

Comment thread .eslintignore Outdated
/dist
/node_modules
/example
/src/stories No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small, but would you please add a newline at the end of this file?
And while you're at it, configure your editor to do it on save.

Comment thread .eslintrc
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
project: "tsconfig.json"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WAT

Comment thread _templates/component/new/story.js.t
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.

Components generated with hygen break pre commit hook

3 participants