-
Notifications
You must be signed in to change notification settings - Fork 59
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
chore(tsc): exclude test/stories/mock files only from build #451
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"exclude": [ | ||
// files excluded from the build, we can not put it inro default tsconfig | ||
// as it will screw VSCode IntelliSence | ||
"**/test", | ||
"**/mocks", | ||
"**/__mocks__", | ||
"**/__stories__", | ||
"src/**/*.spec.*", | ||
"src/**/*.test.*", | ||
"src/**/*.mock.*", | ||
"src/**/*.stories.*" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"exclude": [ | ||
// files excluded from the build, we can not put it inro default tsconfig | ||
// as it will screw VSCode IntelliSence | ||
"**/test", | ||
"**/mocks", | ||
"**/__mocks__", | ||
"**/__stories__", | ||
"src/**/*.spec.*", | ||
"src/**/*.test.*", | ||
"src/**/*.mock.*", | ||
"src/**/*.stories.*" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,9 @@ | |
"noImplicitOverride": false | ||
}, | ||
"references": [{ "path": "../../plugins/components" }], | ||
"include": ["src/**/*"] | ||
"include": [ | ||
"src/**/*", | ||
// TODO: *.json could be removed when tsconfig.build.json would be properly consumed by webpack | ||
"src/**/*.json" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just wonder isn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🙃 I know it's sound funky, but no |
||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wonder what is the difference? I saw in the code sometimes we use theme and sometimes use _theme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'_' prefix let compiler now that even though this parameter is not in use at tis point, we want to keep it named in code. Otherwise eslint will complain about unused parameter.
None of used variables should have
_
prefix. If variable is not used we can either delete it or add _ prefix.I decided to add prefix here, as I know that I will use it in my next PR :)