Skip to content

Commit

Permalink
chore: improve tooling (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jan 16, 2024
1 parent 35cf047 commit bd65cba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,6 +2,7 @@ logs
*.log
npm-debug.log*
.eslintcache
.cspellcache

/coverage
/dist
Expand Down
5 changes: 4 additions & 1 deletion lint-staged.config.js
@@ -1,4 +1,7 @@
module.exports = {
"*": ["prettier --write --ignore-unknown", "cspell --no-must-find-files"],
"*": [
"prettier --cache --write --ignore-unknown",
"cspell --cache --no-must-find-files",
],
"*.js": ["eslint --cache --fix"],
};
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -22,14 +22,14 @@
"build": "cross-env NODE_ENV=production babel src -d dist --copy-files",
"commitlint": "commitlint --from=master",
"security": "npm audit --production",
"lint:prettier": "prettier --list-different .",
"lint:prettier": "prettier --cache --list-different .",
"lint:js": "eslint --cache .",
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
"lint": "npm-run-all -l -p \"lint:**\"",
"test:only": "cross-env NODE_ENV=test jest",
"fix:js": "npm run lint:js -- --fix",
"fix:prettier": "npm run lint:prettier -- --write",
"fix": "npm-run-all -l fix:js fix:prettier",
"lint:spelling": "cspell \"**/*.*\"",
"test:watch": "npm run test:only -- --watch",
"test:manual": "npm run build && webpack-dev-server test/manual/src/index.js --open --config test/manual/webpack.config.js",
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
Expand Down

0 comments on commit bd65cba

Please sign in to comment.