@foray1010/eslint-config 7.7.1 → 7.7.2
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.
- package/CHANGELOG.md +6 -0
- package/package.json +2 -2
- package/presets/node.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.7.2](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.7.1...@foray1010/eslint-config@7.7.2) (2022-10-01)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **eslint-config:** allow **dirname and **filename in node.js ([14bf0bd](https://github.com/foray1010/common-presets/commit/14bf0bdbc29e20de085ea772529a415633980f22))
|
|
11
|
+
|
|
6
12
|
## [7.7.1](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.7.0...@foray1010/eslint-config@7.7.1) (2022-10-01)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@foray1010/eslint-config",
|
|
4
|
-
"version": "7.7.
|
|
4
|
+
"version": "7.7.2",
|
|
5
5
|
"homepage": "https://github.com/foray1010/common-presets/tree/master/packages/eslint-config#readme",
|
|
6
6
|
"bugs": "https://github.com/foray1010/common-presets/issues",
|
|
7
7
|
"repository": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "1fae3d076965b166094c89e62957cdb81e78338e"
|
|
60
60
|
}
|
package/presets/node.js
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
module.exports = {
|
|
5
5
|
plugins: ['eslint-plugin-n'],
|
|
6
6
|
globals: {
|
|
7
|
+
// used in commonjs and typescript
|
|
8
|
+
__dirname: 'readonly',
|
|
9
|
+
// used in commonjs and typescript
|
|
10
|
+
__filename: 'readonly',
|
|
7
11
|
// hack to mute no-undef error, and show n/prefer-global/buffer error instead
|
|
8
12
|
Buffer: 'readonly',
|
|
9
13
|
// hack to mute no-undef error, and show n/prefer-global/process error instead
|