Skip to content

Commit

Permalink
fix: Only generate tsconfig.eslint.json if project is TS enabled. (#7)
Browse files Browse the repository at this point in the history
* Fix cache.

* Fix config file.
  • Loading branch information
milesj authored Sep 16, 2019
1 parent 3b565a7 commit f791725
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/nimbus/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ module.exports = function cli(tool) {

// Create a specialized tsconfig for ESLint
tool.getPlugin('driver', 'eslint').onCreateConfigFile.listen(context => {
if (!usingTypeScript) {
return;
}

const configPath = path.join(process.cwd(), 'tsconfig.eslint.json');
const include = [`${typesFolder}/**/*`]; // Always allow global types
let extendsFrom = './tsconfig.json';
Expand Down
2 changes: 1 addition & 1 deletion packages/nimbus/templates/project/dotfiles/gitignore.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ logs/
# Cache
.axe/
.bundle/
.eslintcache/
.happo/
.idea/
.npm/
.vagrant/
.vscode/
.eslintcache
.yarnclean

# Directories
Expand Down

0 comments on commit f791725

Please sign in to comment.