Skip to content

Instantly share code, notes, and snippets.

@vanholler
Last active July 5, 2020 14:45
Show Gist options
  • Save vanholler/3306a0b2e0c9113deabfbe3eaf632c4a to your computer and use it in GitHub Desktop.
Save vanholler/3306a0b2e0c9113deabfbe3eaf632c4a to your computer and use it in GitHub Desktop.
Base template config for node.js project with pre-commit
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "rimraf ./dist && babel -d ./dist ./src -s && node dist/main.js",
"dev": "node dev.js",
"lint:js": "eslint ./src",
"lint-staged": "lint-staged",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vanholler/...."
},
"author": "Mikhnevich Artiom",
"license": "ISC",
"homepage": "https://github.com/vanholler/....",
"bugs": {
"url": "https://github.com/vanholler/...."
},
"devDependencies": {
"babel-register": "^6.26.0",
"eslint": "^7.2.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.21.2",
"lint-staged": "^10.2.11",
"pre-commit": "^1.2.2"
},
"dependencies": {
"@babel/core": "^7.10.4",
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"rimraf": "^3.0.2"
},
"eslintConfig": {
"root": true,
"extends": [
"airbnb-base",
"prettier"
],
"env": {
"node": true
}
},
"lint-staged": {
"*.js": "eslint"
},
"pre-commit": "lint-staged",
"babel": {
"presets": [
[
"env",
{
"targets": {
"node": "current"
}
}
]
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment