Skip to content

Commit

Permalink
build(npm): update dependencies and build config
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDJM committed Sep 27, 2021
1 parent ebc0eed commit 8df1f52
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 38 deletions.
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "cz-conventional-changelog"
}
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
13 changes: 4 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,15 @@ module.exports = {
es6: true,
node: true,
},
extends: [
"standard",
"plugin:jsdoc/recommended",
"plugin:prettier/recommended",
],
plugins: ["prettier", "jsdoc"],
extends: ["standard", "plugin:jsdoc/recommended", "prettier"],
plugins: ["jsdoc"],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parserOptions: {
ecmaVersion: 2018,
},
rules: {
"prettier/prettier": "error",
},
ignorePatterns: ["!.*.js"],
rules: {},
};
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo committing as $(git config user.name)
npx lint-staged
11 changes: 0 additions & 11 deletions .huskyrc.js

This file was deleted.

3 changes: 3 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
"*.js": ["eslint --fix", "prettier --write"],
};
11 changes: 10 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
module.exports = {
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: false,
quoteProps: "as-needed",
trailingComma: "es5",
arrowParens: "avoid",
bracketSpacing: true,
arrowParens: "always",
htmlWhitespaceSensitivity: "css",
vueIndentScriptAndStyle: false,
endOfLine: "lf",
};
36 changes: 19 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
"index.js"
],
"scripts": {
"commit": "npx git cz",
"lint": "npx eslint --ext .js --ignore-path .gitignore .",
"fix": "npm run lint -- --fix",
"commit": "git cz",
"lint": "npm run eslint && npm run prettier",
"eslint": "eslint --ext .js --fix --ignore-path .gitignore .",
"prettier": "prettier '**/*.js' --write --ignore-path .gitignore",
"prerelease": "npm run lint",
"release": "npx standard-version"
"release": "git add index.js && standard-version -a",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand All @@ -29,20 +31,20 @@
},
"homepage": "https://github.com/coldfrontlabs/standard-version-updater-yaml#readme",
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"commitizen": "^4.2.1",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsdoc": "^30.4.0",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"commitizen": "^4.2.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.1.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^36.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"husky": "^4.3.0",
"prettier": "^2.1.1",
"eslint-plugin-promise": "^5.1.0",
"husky": "^7.0.2",
"lint-staged": "^11.1.2",
"prettier": "^2.2.1",
"standard-version": "^9.0.0"
},
"peerDependencies": {
Expand Down

0 comments on commit 8df1f52

Please sign in to comment.