eslint-plugin-yenz 2.2.0-beta.2 → 2.2.0
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/README.md +4 -1
- package/package.json +2 -2
- package/test/fixtures.ts +6 -0
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ class Foo { bar = () => {} }
|
|
|
124
124
|
## Preset Configurations
|
|
125
125
|
|
|
126
126
|
- `**recommended**` - Enables `type-ordering` as error and `no-loops` as warning
|
|
127
|
-
- `**all**` - Enables
|
|
127
|
+
- `**all**` - Enables `type-ordering`, `no-loops`, and `no-named-arrow-functions` as errors
|
|
128
128
|
|
|
129
129
|
# Release Procedure
|
|
130
130
|
|
|
@@ -134,14 +134,17 @@ class Foo { bar = () => {} }
|
|
|
134
134
|
4. Add code samples in `test/` that intentionally fail your new or updated rules to confirm they are caught.
|
|
135
135
|
5. Commit and push your changes, then open a PR.
|
|
136
136
|
6. **Bump to a pre-release version and publish a beta:**
|
|
137
|
+
|
|
137
138
|
```bash
|
|
138
139
|
yarn version --pre[major|minor|patch] --preid beta
|
|
139
140
|
npm publish --tag beta # or alpha, rc
|
|
140
141
|
```
|
|
142
|
+
|
|
141
143
|
Users can test it with:
|
|
142
144
|
7. After review, **merge your branch into `main`**.
|
|
143
145
|
8. Open a version bump PR against `main` and merge it in.
|
|
144
146
|
9. **Publish the stable release** from `main`:
|
|
147
|
+
|
|
145
148
|
```bash
|
|
146
149
|
yarn version --[major|minor|patch]
|
|
147
150
|
npm publish
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-yenz",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Adds custom rules that Jens likes",
|
|
5
5
|
"repository": "https://github.com/JensAstrup/eslint-plugin-yenz",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"eslint": "^10.0.1",
|
|
24
|
-
"typescript": "^
|
|
24
|
+
"typescript": "^6.0.3",
|
|
25
25
|
"typescript-eslint": "^8.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
package/test/fixtures.ts
CHANGED
|
@@ -47,3 +47,9 @@ export class ExportClass { method() { return 1; } } // expect-error yenz/export-
|
|
|
47
47
|
export type FixtureExportType = 1 // expect-error yenz/export-at-end-of-file // fix: type FixtureExportType = 1
|
|
48
48
|
|
|
49
49
|
export interface FixtureExportIface { n: number } // expect-error yenz/export-at-end-of-file // fix: interface FixtureExportIface { n: number }
|
|
50
|
+
|
|
51
|
+
// Should pass (export-at-end-of-file — specifier exports and non-exported decls only):
|
|
52
|
+
function notExported() {}
|
|
53
|
+
function someExisting() {}
|
|
54
|
+
export { someExisting }
|
|
55
|
+
export { foo } from './other'
|