Skip to content

Commit

Permalink
chore(package): move prettier config to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Mar 3, 2021
1 parent 8b51b55 commit 8a20a35
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 91 deletions.
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"endOfLine": "lf",
"semi": true,
"tabWidth": 4,
"useTabs": true
}
7 changes: 3 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"files.eol": "\n",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"javascript.updateImportsOnFileMove.enabled": "always",
"npm.packageManager": "npm",
"prettier.arrowParens": "always",
"prettier.endOfLine": "lf",
"prettier.tabWidth": 4,
"prettier.useTabs": true,
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false
}
168 changes: 81 additions & 87 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,89 +1,83 @@
{
"name": "node-unrtf",
"version": "1.0.8",
"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": ">=10.22.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 \"**/!(CHANGELOG.md|package.json)\" --write --ignore-path .gitignore --ignore-unknown",
"lint:prettier:ci": "prettier \"**/!(CHANGELOG.md|package.json)\" --check --ignore-path .gitignore --ignore-unknown",
"test": "npm run lint && npm run jest"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "npm test && npm run lint:prettier:ci && npm run doc"
}
},
"jest": {
"clearMocks": true,
"coverageReporters": [
"text",
"lcovonly"
],
"resetMocks": true,
"testEnvironment": "node",
"testTimeout": 10000
},
"prettier": {
"endOfLine": "lf",
"semi": true,
"tabWidth": 4,
"useTabs": true
},
"devDependencies": {
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"eslint": "^7.17.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-jsdoc": "^32.0.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-security": "^1.4.0",
"husky": "~4",
"is-html": "^2.0.0",
"jest": "^26.6.3",
"jsdoc-to-markdown": "^7.0.0",
"prettier": "2.2.1",
"typescript": "^4.1.3"
}
"name": "node-unrtf",
"version": "1.0.8",
"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": ">=10.22.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 \"**/!(CHANGELOG.md|package.json)\" --write --ignore-path .gitignore --ignore-unknown",
"lint:prettier:ci": "prettier \"**/!(CHANGELOG.md|package.json)\" --check --ignore-path .gitignore --ignore-unknown",
"test": "npm run lint && npm run jest"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "npm test && npm run lint:prettier:ci && npm run doc"
}
},
"jest": {
"clearMocks": true,
"coverageReporters": [
"text",
"lcovonly"
],
"resetMocks": true,
"testEnvironment": "node",
"testTimeout": 10000
},
"devDependencies": {
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"eslint": "^7.17.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-jsdoc": "^32.0.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-security": "^1.4.0",
"husky": "~4",
"is-html": "^2.0.0",
"jest": "^26.6.3",
"jsdoc-to-markdown": "^7.0.0",
"prettier": "2.2.1",
"typescript": "^4.1.3"
}
}

0 comments on commit 8a20a35

Please sign in to comment.