Skip to content

Commit

Permalink
feat: install eslint meanwhile.
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed Dec 1, 2022
1 parent 30b9b30 commit 90a3e2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

dist
5 changes: 2 additions & 3 deletions packages/all/add.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { execa } from 'execa'
import { execaSync } from 'execa'
import path from 'path'
import fs from 'fs'

Expand All @@ -16,6 +16,5 @@ pkgInfo.eslintConfig = {

fs.writeFileSync(pkgPath, JSON.stringify(pkgInfo, null, 2) + '\n')


// Install
execa('ni', [ '@lvjiaxuan/eslint-config', '-D' ], { stdio: 'inherit', cwd })
execaSync('ni', [ '@lvjiaxuan/eslint-config', 'eslint', '-D' ], { stdio: 'inherit', cwd })

0 comments on commit 90a3e2c

Please sign in to comment.