@andrewt03/eslint-typescript-rules 0.0.25 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -131,7 +131,7 @@ module.exports = [
131
131
  ];
132
132
  ```
133
133
 
134
- ### Alternative - `ESModules`
134
+ #### Alternative - `ESModules`
135
135
 
136
136
  - **Note:** In `ESModules`, the `__dirname` variable is not available. As a fix, in most cases, we can leverage `process.cwd()` in this case since the `ESLint` file configuration is typically written at the top-level of a project. However, if this does not work, some alternatives can be found in this [StackOverflow](https://stackoverflow.com/questions/46745014/alternative-for-dirname-in-node-js-when-using-es6-modules) post.
137
137
 
@@ -168,7 +168,7 @@ export default [
168
168
  parser: tseslint.parser,
169
169
  parserOptions: {
170
170
  projectService: true,
171
- tsconfigRootDir: new URL(".", import.meta.url).pathname,
171
+ tsconfigRootDir: process.cwd(),
172
172
 
173
173
  // React-Specific (Omit if not necessary)
174
174
  ecmaFeatures: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrewt03/eslint-typescript-rules",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "Recommended ESLint Rules for general TypeScript, Node.js/Express.js, Angular, and React.js Projects",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",