chore(build): Build/linting infrastructure updates. (#276)

* Move npm/linting config files to root directory
* Apply prettier/eslint autofixes
* Update CONTRIBUTING.md
This commit is contained in:
Josh Dick
2021-07-11 19:19:55 -04:00
committed by GitHub
parent 4bd214fbcb
commit d954737e00
15 changed files with 4885 additions and 2461 deletions

45
package.json Normal file
View File

@@ -0,0 +1,45 @@
{
"name": "onedark.vim-builder",
"version": "1.0.0",
"description": "Builds the onedark.vim Vim colorscheme and associated files",
"main": "build.js",
"scripts": {
"build": "node build/build.js",
"test": "npm run lint && node build/build.js check",
"prepare": "husky install",
"lint": "run-p eslint:check prettier:check",
"lint:fix": "run-s eslint:fix prettier:fix",
"eslint:check": "eslint '**/*.js'",
"eslint:fix": "eslint --fix '**/*.js'",
"prettier:check": "prettier --check '**/*.{js,json,md}'",
"prettier:fix": "prettier --write '**/*.{js,json,md}'"
},
"author": {
"name": "Josh Dick",
"email": "josh@joshdick.net",
"url": "http://joshdick.net"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/joshdick/onedark.vim.git"
},
"devDependencies": {
"eslint": "^7.30.0",
"husky": "^6.0.0",
"lint-staged": "^11.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2"
},
"dependencies": {
"termcolors": "0.7.3"
},
"lint-staged": {
"*.{js,json,md}": [
"prettier --check"
],
"*.{js}": [
"eslint"
]
}
}