Skip to content

Commit

Permalink
fix eslint config path generation
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberCookie committed Jan 7, 2022
1 parent f66b1d7 commit 14a90bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions bin/init_project.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function main(isGlobal) {
paths[alias][0] = replaceDevPathWithSiegel(paths[alias][0], ...replacementArgs)
}

clientTSConfig.include.push(
INIT_PATHS.siegelDemoAppShift && clientTSConfig.include.push(
clientTSConfig.include.pop()
.replace(`${INIT_PATHS.siegelDemoAppShift}/`, '')
)
Expand All @@ -104,7 +104,11 @@ function main(isGlobal) {
// Extend Eslint jsons
const ESLintConfig = JSON.parse(readFileSync(INIT_PATHS.userESLint, 'utf8'))

ESLintConfig.extends.push(INIT_PATHS.siegelEsLint)
ESLintConfig.extends.push(
INIT_PATHS.siegelEsLint[0] == '.' || INIT_PATHS.siegelEsLint[0] == '/'
? INIT_PATHS.siegelEsLint
: `./${INIT_PATHS.siegelEsLint}`
)
ESLintConfig.ignorePatterns.pop()
ESLintConfig.rules = {}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "siegel",
"version": "0.11.10",
"version": "0.11.11",
"homepage": "https://github.com/CyberCookie/siegel",
"url": "https://github.com/CyberCookie/siegel",
"bugs": "https://github.com/CyberCookie/siegel/issues",
Expand Down

0 comments on commit 14a90bd

Please sign in to comment.