Skip to content

Commit

Permalink
feat: next import rules (#13)
Browse files Browse the repository at this point in the history
* fix: next import rules

* fix: execute stdio inherit
  • Loading branch information
JulienMartel authored Sep 21, 2023
1 parent 46ffd70 commit 5f5d8fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion next.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import'],
Expand All @@ -7,7 +8,7 @@ module.exports = {
},
'import/resolver': {
typescript: {
alwaysTryTypes: true // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
alwaysTryTypes: true
}
}
},
Expand All @@ -28,6 +29,7 @@ module.exports = {
}
],
'import/extensions': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.tsx'] }],
'react/jsx-props-no-spreading': 'off',
Expand Down
1 change: 1 addition & 0 deletions node.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import'],
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function installDependency(packageManager: PackageManager) {
console.log(`📦 Installing dependencies...`)

try {
execSync(installCommand)
execSync(installCommand, { stdio: 'inherit' })
} catch (error) {
console.error(error)
}
Expand Down

0 comments on commit 5f5d8fd

Please sign in to comment.