Skip to content

Commit

Permalink
improve lint-staged configs
Browse files Browse the repository at this point in the history
  • Loading branch information
sasaplus1 committed Mar 6, 2021
1 parent bc345d3 commit 7209994
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
module.exports = {
'*.+(js|ts)': 'npx eslint --cache --ext .js,.ts',
'*.yml': [
'npx prettier --parser yaml --write',
'git diff --exit-code --quiet'
],
'*.+(js|ts)': ['eslint --cache --ext .js,.ts', 'prettier --check'],
'*.yml': 'prettier --check',
'package.json': [
'npx fixpack',
'npx prettier --parser json-stringify --write',
'git diff --exit-code --quiet'
'npx fixpack --dryRun',
'prettier --check --parser json-stringify'
],
'package-lock.json': 'node -e "process.exitCode = 1;"'
};

1 comment on commit 7209994

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 7209994 Previous: bc345d3 Ratio
deepcopy:fixture1 27470 ops/sec (±2.36%) 23987 ops/sec (±0.71%) 0.87

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.