Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
chore: update dev dependencies
Browse files Browse the repository at this point in the history
* Update ESLint related dev dependencies
* Improve ESLint configurations
* Replace "eslint-config-airbnb" with "eslint-config-airbnb-base"
* Drop "eslint-plugin-jsx-a11y"
* Drop "eslint-plugin-react"
* Fixed linting errors
* Replace "jasmine-node" with "jasmine"
* Update babel related dev dependencies
* Move "babel-plugin-add-header-comment" to "devDependencies"
* Update nodemon
* Update node package scripts
* Update Travis CI to use Node 8
  • Loading branch information
erisu committed Aug 28, 2019
1 parent e5370c4 commit 478b454
Show file tree
Hide file tree
Showing 9 changed files with 246 additions and 252 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"presets": [
"es2015"
"@babel/preset-env"
],
"plugins": [
["add-header-comment", {
Expand Down
15 changes: 7 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"extends": "airbnb",
"extends": "airbnb-base",
"parser": "babel-eslint",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
"rules": {
"spaced-comment": 0,
"no-console": 0,
"no-unused-expressions": [2, { "allowShortCircuit": true }]
"no-unused-expressions": [2, { "allowShortCircuit": true }],
"class-methods-use-this": 0
},
"env": {
"node": true,
"mocha": true,
"browser": true
"browser": true
},
"globals": {
"cordova": false
}
}
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: node_js
node_js:
- '4'
node_js: 8
branches:
only:
- master
Expand Down
28 changes: 13 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,25 @@
"scripts": {
"build": "babel src/js --out-dir www",
"build:watch": "nodemon -w ./src/js -e js -x npm run build",
"eslint": "node node_modules/.bin/eslint src/js",
"jasmine": "jasmine-node --color spec",
"eslint": "eslint src/js",
"jasmine": "jasmine --config=spec/unit.json",
"precommit-msg": "echo 'Pre-commit checks...' && exit 0",
"test": "npm run build && npm run jasmine"
"test": "npm run build && npm run eslint && npm run jasmine"
},
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-core": "^6.10.4",
"babel-eslint": "^6.1.0",
"babel-preset-es2015": "^6.9.0",
"eslint": "^2.13.1",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.9.2",
"eslint-plugin-jsx-a11y": "^1.5.3",
"eslint-plugin-react": "^5.2.2",
"jasmine-node": "1.14.5",
"nodemon": "^1.9.2",
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"babel-eslint": "^10.0.3",
"babel-plugin-add-header-comment": "^1.0.3",
"eslint": "^6.2.2",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.18.2",
"jasmine": "^3.4.0",
"nodemon": "^1.19.1",
"pluginpub": "^0.0.9"
},
"dependencies": {
"babel-plugin-add-header-comment": "^1.0.3",
"install": "^0.8.2"
}
}
2 changes: 2 additions & 0 deletions spec/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
env:
jasmine: true
Loading

0 comments on commit 478b454

Please sign in to comment.