Skip to content

Commit

Permalink
feat(eslint-config): remove __dirname and __filename in globals
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Sep 19, 2023
1 parent 84c69bb commit 2b7cf18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-ghosts-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@git-validator/eslint-config": patch
---

feat(eslint-config): remove `__dirname` and `__filename` in globals
1 change: 1 addition & 0 deletions packages/eslint-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ A strict eslint config for better code quality. Based on [standard.js](https://g
- One-line of config.
- Work well with Prettier without conflicts.
- Designed to work with TypeScript, NestJS and React out-of-box.
- Modern. ESM first.

## Usage

Expand Down
2 changes: 0 additions & 2 deletions packages/eslint-config/src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export default [
globals: {
...globals["shared-node-browser"],
...globals.browser, // TODO Optimize it. Node code should not use browser's objects.
__dirname: false, // TODO Remove it
__filename: false, // TODO Remove it
},
},
linterOptions: {
Expand Down

0 comments on commit 2b7cf18

Please sign in to comment.