@ololoepepe/eslint-config 0.1.2 → 0.1.3
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 +15 -0
- package/README.md +8 -4
- package/package.json +1 -1
- package/src/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to this project are documented in this file. The format is
|
|
|
4
4
|
based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this
|
|
5
5
|
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.1.3] - 2026-07-02
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **base:** the `shared-node-browser` globals (`fetch`, `URL`,
|
|
12
|
+
`structuredClone`, `TextEncoder`, `setTimeout`, `queueMicrotask`,
|
|
13
|
+
`AbortController`, `crypto`, …) — the modern platform APIs available in **both**
|
|
14
|
+
Node and the browser. Referencing them no longer trips `no-undef`, regardless
|
|
15
|
+
of which environment layer (if any) is applied. Browser- and Node-*only*
|
|
16
|
+
globals are still added by the `/react` and `/node` layers, respectively.
|
|
17
|
+
Added tests covering the shared globals and confirming the base stays neutral
|
|
18
|
+
for environment-only globals.
|
|
19
|
+
|
|
7
20
|
## [0.1.2] - 2026-07-02
|
|
8
21
|
|
|
9
22
|
### Fixed
|
|
@@ -71,5 +84,7 @@ A major modernization of the config. **This release contains breaking changes.**
|
|
|
71
84
|
- JSX parsing in the base config: `@babel/eslint-parser@8` no longer enables JSX
|
|
72
85
|
via `ecmaFeatures.jsx` alone; it now uses `babelOptions.parserOpts.plugins`.
|
|
73
86
|
|
|
87
|
+
[0.1.3]: https://gitlab.void-walkers.com/libs/eslint-config/-/releases/v0.1.3
|
|
88
|
+
[0.1.2]: https://gitlab.void-walkers.com/libs/eslint-config/-/releases/v0.1.2
|
|
74
89
|
[0.1.1]: https://gitlab.void-walkers.com/libs/eslint-config/-/releases/v0.1.1
|
|
75
90
|
[0.1.0]: https://gitlab.void-walkers.com/libs/eslint-config/-/releases/v0.1.0
|
package/README.md
CHANGED
|
@@ -41,10 +41,14 @@ The package is **environment-neutral by default** and ships environment layers
|
|
|
41
41
|
on top of it:
|
|
42
42
|
|
|
43
43
|
- **`@ololoepepe/eslint-config`** — the base config. Language + style + import +
|
|
44
|
-
promise + correctness rules.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
promise + correctness rules. Beyond standard ES globals it defines the
|
|
45
|
+
**globals shared by Node and the browser** (`fetch`, `URL`, `structuredClone`,
|
|
46
|
+
`TextEncoder`, `setTimeout`, `queueMicrotask`, `AbortController`, `crypto`, …
|
|
47
|
+
the `shared-node-browser` set) — modern platform APIs available in every
|
|
48
|
+
runtime. No Node- or browser-*only* globals, and no environment-specific rules.
|
|
49
|
+
Use this directly for environment-agnostic code, or as the base for an
|
|
50
|
+
environment-specific config (e.g. a frontend/JSX config that adds browser
|
|
51
|
+
globals and React rules).
|
|
48
52
|
- **`@ololoepepe/eslint-config/node`** — the base **plus** a Node layer: Node
|
|
49
53
|
globals and [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n).
|
|
50
54
|
Use this for Node.js libraries and applications.
|
package/package.json
CHANGED