Skip to content

Commit

Permalink
add cursory eslint run
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbot committed Apr 13, 2018
1 parent 74ae9a1 commit dc05e19
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"sourceType": "module"
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
"jsnext:main": "index.js",
"repository": "shawnbot/topogram",
"scripts": {
"lint": "eslint index.js src/**/*.js",
"prebuild": "rm -rf build && mkdir build",
"build": "rollup -c",
"pretest": "npm run build",
"pretest": "npm run lint && npm run build",
"test": "tape 'test/*.js'",
"prepublishOnly": "npm test && npm run minify",
"minify": "uglifyjs build/topogram.js -c -m -o build/topogram.min.js"
Expand All @@ -30,6 +31,7 @@
"topojson-client": "^3.0.0"
},
"devDependencies": {
"eslint": "^4.19.1",
"rollup": "0.27",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
Expand Down

0 comments on commit dc05e19

Please sign in to comment.