Skip to content

Commit

Permalink
feat: major bump and added ts eslint support
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 28, 2020
1 parent 0898227 commit d7a85a6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/general/stack_trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ StackTrace.getStackTrace = function(completeStack) {
var result = [];

try {
// tries to acess an attribute in an undefined value to raise an exception
// tries to access an attribute in an undefined value to raise an exception
// eslint-disable-next-line no-unused-expressions,no-undef
invalid.invalid;
} catch (exception) {
Expand Down
25 changes: 14 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"license": "Apache-2.0",
"author": "Hive Solutions",
"main": "index.js",
"types": "types/index.d.ts",
"typings": "types/index.d.ts",
"files": [
Expand All @@ -28,7 +29,6 @@
"test/**/*.js",
"types/**/*.d.ts"
],
"main": "index.js",
"scripts": {
"build": "gulp build",
"docs": "gulp docs",
Expand All @@ -42,25 +42,28 @@
"watch": "gulp watch"
},
"devDependencies": {
"eslint": "^6.6.0",
"eslint-config-hive": "^0.2.0",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@typescript-eslint/parser": "^4.11.0",
"eslint": "^7.16.0",
"eslint-config-hive": "^0.5.1",
"fancy-log": "^1.3.3",
"gulp": "^4.0.2",
"gulp-cli": "^2.2.0",
"gulp-cli": "^2.3.0",
"gulp-count": "^1.0.0",
"gulp-cssnano": "^2.1.3",
"gulp-eslint": "^6.0.0",
"gulp-jsdoc3": "^2.0.0",
"gulp-jsdoc3": "^3.0.0",
"gulp-mocha": "^7.0.2",
"gulp-replace": "^1.0.0",
"gulp-size": "^3.0.0",
"gulp-terser": "^1.2.0",
"gulp-terser": "^2.0.0",
"gulp-watch": "^5.0.1",
"mocha": "^6.2.2",
"mocha": "^8.2.1",
"mocha-cli": "^1.0.1",
"npm-check-updates": "^3.1.25",
"prettier": "^1.18.2",
"prettier-config-hive": "^0.1.1",
"sort-package-json": "^1.22.1"
"npm-check-updates": "^10.2.5",
"prettier": "^2.2.1",
"prettier-config-hive": "^0.1.7",
"sort-package-json": "^1.48.0",
"typescript": "^4.1.3"
}
}
5 changes: 5 additions & 0 deletions types/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extends: ["hive", "eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"]
};

0 comments on commit d7a85a6

Please sign in to comment.