Skip to content

Commit

Permalink
Lint the UMD bundle based on ES3 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Mar 14, 2020
1 parent 4fbfdd1 commit a3f6e76
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
11 changes: 2 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
"amd": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
},
"plugins": [
"import"
],
"extends": [
"plugin:import/errors"
]
"ecmaVersion": 3
}
}
12 changes: 12 additions & 0 deletions modules/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
},
"plugins": [
"import"
],
"extends": [
"plugin:import/errors"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"lint": "eslint modules/*.js test/*.js",
"test-node": "npm run prepare-tests && qunit-cli test/*.js",
"test-browser": "npm run prepare-tests && npm i karma-phantomjs-launcher && karma start",
"bundle": "rollup --config",
"bundle": "rollup --config && eslint underscore.js",
"bundle-treeshake": "cd test-treeshake && npx rollup@latest --config",
"prepare-tests": "npm run bundle && npm run bundle-treeshake",
"minify": "uglifyjs underscore.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
Expand Down

0 comments on commit a3f6e76

Please sign in to comment.