Skip to content

Commit

Permalink
fix: "use strict" should not trigger strict mode in es3. (#547)
Browse files Browse the repository at this point in the history
* fix: "use strict" should not trigger strict mode in es3.

fixes eslint/eslint#15456

* chore: add func strict
  • Loading branch information
aladdin-add authored Apr 28, 2022
1 parent e5982ef commit 6c718af
Show file tree
Hide file tree
Showing 7 changed files with 702 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
},
"license": "BSD-2-Clause",
"dependencies": {
"acorn": "^8.7.0",
"acorn-jsx": "^5.3.1",
"acorn": "^8.7.1",
"acorn-jsx": "^5.3.2",
"eslint-visitor-keys": "^3.3.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
"message": "sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options."
};
Loading

0 comments on commit 6c718af

Please sign in to comment.