Skip to content

Commit

Permalink
Switch to ESLint and remove Grunt.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Feb 3, 2020
1 parent f76cfdd commit 8294f7f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 116 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/build/
/node_modules/
/vendor/
/wordpress/
13 changes: 13 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"env": {
"es6": true,
"browser": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017
},
"plugins": [
"json"
]
}
25 changes: 0 additions & 25 deletions .jshintrc

This file was deleted.

81 changes: 0 additions & 81 deletions Gruntfile.js

This file was deleted.

17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,29 @@
"author": {
"name": "Pronamic",
"email": "info@pronamic.nl",
"url": "http://www.pronamic.nl/"
"url": "https://www.pronamic.nl/"
},
"contributors": [
{
"name": "Remco Tolsma",
"email": "info@remcotolsma.nl",
"url": "http://www.remcotolsma.nl/"
"url": "https://www.remcotolsma.nl/"
}
],
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/wp-pay-gateways/adyen/issues"
},
"homepage": "http://www.wp-pay.org/gateways/adyen/",
"homepage": "https://www.wp-pay.org/gateways/adyen/",
"scripts": {
"babel": "babel ./js/src -d ./js/dist --source-maps"
"babel": "babel ./js/src -d ./js/dist --source-maps",
"eslint": "eslint . --ext .json --ext .js"
},
"devDependencies": {
"@babel/cli": "^7.8.3",
"@babel/core": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"grunt": "^1.0.4",
"grunt-babel": "^8.0.0",
"grunt-contrib-jshint": "^2.1.0",
"grunt-phpcs": "^0.4.0",
"grunt-phplint": "0.1.0",
"grunt-phpmd": "^0.1.1"
"eslint": "^6.3.0",
"eslint-plugin-json": "^1.4.0"
}
}

0 comments on commit 8294f7f

Please sign in to comment.