Skip to content

Commit

Permalink
refactor: use ECMAScript modules (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n authored Dec 31, 2024
1 parent 600069b commit 26178f6
Show file tree
Hide file tree
Showing 5 changed files with 1,045 additions and 209 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"document": "readonly"
},
"parserOptions": {
"sourceType": "script"
"ecmaVersion": 2022,
"sourceType": "module"
},
"extends": [
"eslint-config-airbnb-base",
Expand Down
2 changes: 1 addition & 1 deletion examples/ignore-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const shouldIgnoreError = (error) => {
return false;
};

module.exports = shouldIgnoreError;
export default shouldIgnoreError;
Loading

0 comments on commit 26178f6

Please sign in to comment.