Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
chore: check for duplicate deps when yarn.lock changes
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Oct 31, 2021
1 parent c20259e commit e5a0b0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ module.exports = {
'commonjs',
'cts',
'ctx',
'dedupe',
'dotenv',
'enum',
'esm',
Expand Down
15 changes: 10 additions & 5 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@ const { extensions } = require('./.vscode/settings.json')['eslint.options']
*/

module.exports = {
/**
* Linting command rules.
*/
[`*.{${extensions.map(ext => ext.slice(1)).join()}}`]: [
'yarn fix:style',
'git add -A'
],

/**
* Formatting command rules.
*/
'*': ['yarn fix:format', 'git add -A'],

/**
* Linting command rules.
* Local integrity check.
*/
[`*.{${extensions.map(ext => ext.slice(1)).join()}}`]: [
'yarn fix:style',
'git add -A'
]
'yarn.lock': ['yarn check:dedupe']
}

0 comments on commit e5a0b0d

Please sign in to comment.