Skip to content

Commit

Permalink
Merge pull request #70 from Houdou/master
Browse files Browse the repository at this point in the history
💥 Drop node 10 & Fix security alert & upgrade dev deps
  • Loading branch information
Houdou authored Feb 23, 2022
2 parents 9fd4142 + 2272d5d commit ecc5abd
Show file tree
Hide file tree
Showing 5 changed files with 1,365 additions and 3,794 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "aftership",
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"env": {
"jest": true
},
Expand Down
100 changes: 0 additions & 100 deletions .github/workflows/ci.yaml

This file was deleted.

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"main": "dist/index.js",
"engines": {
"node": ">= 10"
"node": ">= 12"
},
"scripts": {
"lint": "eslint --ext .js .",
Expand All @@ -35,18 +35,19 @@
"pug": "^3.0.2"
},
"devDependencies": {
"@babel/cli": "^7.7.5",
"@babel/core": "^7.7.5",
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
"@babel/preset-env": "^7.7.6",
"eslint": "^6.7.2",
"eslint-config-aftership": "^5.0.0",
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.5",
"@babel/eslint-parser": "^7.17.0",
"@babel/plugin-proposal-object-rest-spread": "^7.17.3",
"@babel/preset-env": "^7.16.11",
"eslint": "^8.9.0",
"eslint-config-aftership": "^7.0.0",
"husky": "^2.3.0",
"jest": "^27.4.7"
"jest": "^27.5.1"
},
"husky": {
"hooks": {
"pre-push": "yarn test & yarn audit"
"pre-push": "yarn test && yarn audit; [[ $? -ge 8 ]] && exit 1 || exit 0"
}
},
"license": "MIT"
Expand Down
5 changes: 0 additions & 5 deletions src/utils/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ module.exports = ({
});

require('ajv-errors')(ajv, ajvErrorsOptions);
// jsonPointers was set to true when require ajv-errors package,
// but if true, details.path in error message will not be complete
// to handle this, set it to ajvOptions value or false when require have been done
/* eslint no-underscore-dangle: ["error", { "allow": ["_opts"] }] */
// ajv._opts.jsonPointers = ajvOptions.jsonPointers || false;

// See https://github.com/eslint/eslint/issues/12117
// eslint-disable-next-line
Expand Down
Loading

0 comments on commit ecc5abd

Please sign in to comment.