Skip to content

Commit

Permalink
move lint staged config to javascript file (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Jan 19, 2022
1 parent 76134b7 commit 33f1722
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 6 additions & 0 deletions lint-staged.config.js
@@ -0,0 +1,6 @@
module.exports = {
'*.js': (filenames) => `eslint --fix ${filenames.join(' ')}`,
'*.{md,json,yml,yaml}': (filenames) =>
`prettier --write ${filenames.join(' ')}`,
'action.js|lib/**/*.js': () => 'ncc build action.js --target es2021',
}
8 changes: 0 additions & 8 deletions package.json
Expand Up @@ -62,13 +62,5 @@
"index.js",
"lib/**"
]
},
"lint-staged": {
"*.js": [
"eslint --fix"
],
"*.{json,css,md}": [
"prettier --write"
]
}
}

0 comments on commit 33f1722

Please sign in to comment.