Skip to content
Permalink
Browse files
chore(package/scripts): add lint:licenses (#155)
  • Loading branch information
Fdawgs committed Nov 29, 2021
1 parent 6532486 commit 37612646c91e564d0d05de6fbcc5eede0563b7eb
Showing with 87 additions and 83 deletions.
  1. +2 −0 .github/workflows/ci.yml
  2. +1 −1 .husky/pre-commit
  3. +84 −82 package.json
@@ -43,6 +43,8 @@ jobs:
run: npm run lint
- name: Run Prettier
run: npm run lint:prettier:ci
- name: Run License Checker
run: npm run lint:licenses
- name: Compile TypeScript Definition File
run: npm run build

@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint:prettier:ci && npm test
npm run lint:prettier:ci && npm run lint:licenses && npm test
@@ -1,84 +1,86 @@
{
"name": "node-unrtf",
"version": "2.0.5",
"description": "Asynchronous node.js wrapper for the UnRTF RTF conversion program",
"keywords": [
"async",
"converter",
"html",
"latex",
"ps",
"rtf",
"rtf-converter",
"rtf-to-html",
"rtf-to-latex",
"rtf-to-ps",
"rtf-to-text",
"rtf-to-wpml",
"text",
"txt",
"unrtf",
"wpml"
],
"main": "src/index.js",
"repository": "git+https://github.com/Fdawgs/node-unrtf.git",
"homepage": "https://github.com/Fdawgs/node-unrtf",
"bugs": {
"url": "https://github.com/Fdawgs/node-unrtf/issues"
},
"license": "MIT",
"author": "Frazer Smith <frazer.dev@outlook.com>",
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"build": "tsc",
"doc": "tsc && jsdoc2md src/index.js > API.md && npm run lint:prettier",
"jest": "jest --detectOpenHandles --runInBand",
"jest:coverage": "jest --coverage --runInBand",
"lint": "eslint . --cache --ext js,jsx --ignore-path .gitignore",
"lint:prettier": "prettier . --write --ignore-unknown",
"lint:prettier:ci": "prettier . --check --ignore-unknown",
"prepare": "husky install && rm -rf .git/hooks && ln -s ../.husky .git/hooks",
"test": "npm run lint && npm run jest"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"jest": {
"clearMocks": true,
"coverageReporters": [
"text",
"lcovonly"
],
"resetMocks": true,
"testEnvironment": "node",
"testTimeout": 10000
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jest": "^25.2.2",
"eslint-plugin-jsdoc": "^37.0.3",
"eslint-plugin-promise": "^5.1.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-security-node": "^1.0.14",
"husky": "^7.0.4",
"is-html": "^2.0.0",
"jest": "^27.3.1",
"jsdoc-to-markdown": "^7.1.0",
"prettier": "2.4.1",
"typescript": "^4.4.4"
},
"dependencies": {
"file-type": "^16.5.3",
"semver": "^7.3.5",
"upath": "^2.0.1"
}
"name": "node-unrtf",

Check warning on line 2 in package.json

GitHub Actions / Typo CI

unrtf

"unrtf" is a typo. Did you mean "unroof"?
"version": "2.0.5",
"description": "Asynchronous node.js wrapper for the UnRTF RTF conversion program",
"keywords": [
"async",
"converter",
"html",
"latex",
"ps",
"rtf",
"rtf-converter",
"rtf-to-html",
"rtf-to-latex",
"rtf-to-ps",
"rtf-to-text",
"rtf-to-wpml",

Check warning on line 17 in package.json

GitHub Actions / Typo CI

rtf-to-wpml

"rtf-to-wpml" is a typo. Did you mean "rtf-to-wpm"?

Check warning on line 17 in package.json

GitHub Actions / Typo CI

wpml

"wpml" is a typo. Did you mean "wpm"?
"text",
"txt",
"unrtf",

Check warning on line 20 in package.json

GitHub Actions / Typo CI

unrtf

"unrtf" is a typo. Did you mean "unroof"?
"wpml"

Check warning on line 21 in package.json

GitHub Actions / Typo CI

wpml

"wpml" is a typo. Did you mean "wpm"?
],
"main": "src/index.js",
"repository": "git+https://github.com/Fdawgs/node-unrtf.git",

Check warning on line 24 in package.json

GitHub Actions / Typo CI

unrtf

"unrtf" is a typo. Did you mean "unroof"?
"homepage": "https://github.com/Fdawgs/node-unrtf",

Check warning on line 25 in package.json

GitHub Actions / Typo CI

unrtf

"unrtf" is a typo. Did you mean "unroof"?
"bugs": {
"url": "https://github.com/Fdawgs/node-unrtf/issues"

Check warning on line 27 in package.json

GitHub Actions / Typo CI

unrtf

"unrtf" is a typo. Did you mean "unroof"?
},
"license": "MIT",
"author": "Frazer Smith <frazer.dev@outlook.com>",
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"build": "tsc",
"doc": "tsc && jsdoc2md src/index.js > API.md && npm run lint:prettier",
"jest": "jest --detectOpenHandles --runInBand",
"jest:coverage": "jest --coverage --runInBand",
"lint": "eslint . --cache --ext js,jsx --ignore-path .gitignore",
"lint:licenses": "license-checker --direct --onlyAllow=\"0BSD;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;MIT;Unlicense\" --production --summary",

Check warning on line 40 in package.json

GitHub Actions / Typo CI

Unlicense

"Unlicense" is a typo. Did you mean "Unlicensed"?
"lint:prettier": "prettier . --write --ignore-unknown",
"lint:prettier:ci": "prettier . --check --ignore-unknown",
"prepare": "husky install && rm -rf .git/hooks && ln -s ../.husky .git/hooks",
"test": "npm run lint && npm run jest"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"jest": {
"clearMocks": true,
"coverageReporters": [
"text",
"lcovonly"
],
"resetMocks": true,
"testEnvironment": "node",
"testTimeout": 10000
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jest": "^25.2.2",
"eslint-plugin-jsdoc": "^37.0.3",
"eslint-plugin-promise": "^5.1.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-security-node": "^1.0.14",
"husky": "^7.0.4",
"is-html": "^2.0.0",
"jest": "^27.3.1",
"jsdoc-to-markdown": "^7.1.0",
"license-checker": "^25.0.1",
"prettier": "2.4.1",
"typescript": "^4.4.4"
},
"dependencies": {
"file-type": "^16.5.3",
"semver": "^7.3.5",
"upath": "^2.0.1"

Check warning on line 84 in package.json

GitHub Actions / Typo CI

upath

"upath" is a typo. Did you mean "path"?
}
}

0 comments on commit 3761264

Please sign in to comment.