Skip to content

Commit

Permalink
use eslint-plugin-es5 to enforce ES5 (#107)
Browse files Browse the repository at this point in the history
should guard against newer ES6 syntax that could lead to issues with
some ES5 environments such as:

- Jint - https://github.com/sebastienros/jint
- Duktape
- IE11
- Android pre-5.0 WebView (already past EOL)

as discussed in PR #91 - #91
  • Loading branch information
brodybits committed Aug 18, 2020
1 parent fd030ee commit 3609c88
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.yml
Expand Up @@ -3,6 +3,8 @@ env:
commonjs: true
es2020: true
node: true
plugins:
- es5
# FUTURE TBD:
# extends: 'eslint:recommended'
parserOptions:
Expand Down
2 changes: 2 additions & 0 deletions lib/.eslintrc.yml
@@ -0,0 +1,2 @@
extends:
- 'plugin:es5/no-es2015'
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -41,6 +41,7 @@
"@stryker-mutator/javascript-mutator": "^3.3.1",
"dom-js": "0.0.9",
"eslint": "^7.7.0",
"eslint-plugin-es5": "^1.5.0",
"nodemon": "^2.0.4",
"npm-run-all": "^4.1.5",
"vows": "^0.8.3"
Expand Down

0 comments on commit 3609c88

Please sign in to comment.