Skip to content

Commit

Permalink
refactor(dependencies): update dependencies and add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Feb 18, 2019
1 parent 53e38c4 commit ebf62c4
Show file tree
Hide file tree
Showing 2 changed files with 380 additions and 17 deletions.
34 changes: 31 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,35 @@
"scripts": {
"test": "jest",
"test-coverage": "cross-env NODE_ENV=test jest --coverage",
"test-watch": "cross-env NODE_ENV=test jest --watchAll"
"test-watch": "cross-env NODE_ENV=test jest --watchAll",
"lint": "eslint ./*.js"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"eslintConfig": {
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"quotes": [
"error",
"single"
]
}
},
"keywords": [
"jsdoc",
"static",
Expand Down Expand Up @@ -71,15 +93,21 @@
"micromatch": "^3.1.10",
"mkdirp": "^0.5.1",
"rimraf": "^2.6.3",
"yargs": "^12.0.5"
"yargs": "^13.2.1"
},
"devDependencies": {
"eslint": "^5.14.0",
"husky": "^1.3.1",
"jest": "^24.1.0",
"lint-staged": "^8.1.3"
},
"lint-staged": {
"**/*.{js,jsx,css,scss,json,ts,vue}": [
"**/*.{css,scss,json}": [
"prettier --write",
"git add"
],
"**/*.{js,jsx,ts,tsx}": [
"eslint",
"prettier --write",
"git add"
]
Expand Down
Loading

0 comments on commit ebf62c4

Please sign in to comment.