Skip to content

Commit 9d0223d

Browse files
Version Packages (#552)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 40fef30 commit 9d0223d

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

ā€Ž.changeset/funny-chicken-ring.mdā€Ž

Lines changed: 0 additions & 5 deletions
This file was deleted.

ā€ŽCHANGELOG.mdā€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# eslint-plugin-astro
22

3+
## 1.7.0
4+
5+
### Minor Changes
6+
7+
- [#550](https://github.com/ota-meshi/eslint-plugin-astro/pull/550) [`40fef30`](https://github.com/ota-meshi/eslint-plugin-astro/commit/40fef30d6c118e6fbb19684a2801c5ee7cec91aa) Thanks [@jp-knj](https://github.com/jp-knj)! - add `astro/no-prerender-export-outside-pages` rule that disallow `prerender` export outside of pages/ directory
8+
39
## 1.6.0
410

511
### Minor Changes

ā€ŽREADME.mdā€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ These rules relate to possible syntax or logic errors in Astro component code:
416416
| [astro/no-deprecated-astro-resolve](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-resolve/) | disallow using deprecated `Astro.resolve()` | ⭐ |
417417
| [astro/no-deprecated-getentrybyslug](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-getentrybyslug/) | disallow using deprecated `getEntryBySlug()` | ⭐ |
418418
| [astro/no-exports-from-components](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-exports-from-components/) | disallow value export | |
419+
| [astro/no-prerender-export-outside-pages](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-prerender-export-outside-pages/) | disallow `prerender` export outside of pages/ directory | |
419420
| [astro/no-unused-define-vars-in-style](https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-define-vars-in-style/) | disallow unused `define:vars={...}` in `style` tag | ⭐ |
420421
| [astro/valid-compile](https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/) | disallow warnings when compiling. | ⭐ |
421422

ā€Ždocs/rules.mdā€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ These rules relate to possible syntax or logic errors in Astro component code:
2020
| [astro/no-deprecated-astro-resolve](./rules/no-deprecated-astro-resolve.md) | disallow using deprecated `Astro.resolve()` | ⭐ |
2121
| [astro/no-deprecated-getentrybyslug](./rules/no-deprecated-getentrybyslug.md) | disallow using deprecated `getEntryBySlug()` | ⭐ |
2222
| [astro/no-exports-from-components](./rules/no-exports-from-components.md) | disallow value export | |
23+
| [astro/no-prerender-export-outside-pages](./rules/no-prerender-export-outside-pages.md) | disallow `prerender` export outside of pages/ directory | |
2324
| [astro/no-unused-define-vars-in-style](./rules/no-unused-define-vars-in-style.md) | disallow unused `define:vars={...}` in `style` tag | ⭐ |
2425
| [astro/valid-compile](./rules/valid-compile.md) | disallow warnings when compiling. | ⭐ |
2526

ā€Ždocs/rules/no-prerender-export-outside-pages.mdā€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "astro/no-prerender-export-outside-pages"
33
description: "disallow `prerender` export outside of pages/ directory"
4+
since: "v1.7.0"
45
---
56

67
# astro/no-prerender-export-outside-pages
@@ -44,6 +45,10 @@ If your project doesn't use hybrid rendering or if all files under `src/pages/`
4445
- [Astro Docs: On-demand Rendering](https://docs.astro.build/en/guides/on-demand-rendering/)
4546
- [Astro Docs: `prerender` export](https://docs.astro.build/en/reference/routing-reference/#prerender)
4647

48+
## šŸš€ Version
49+
50+
This rule was introduced in eslint-plugin-astro v1.7.0
51+
4752
## šŸ” Implementation
4853

4954
- [Rule source](https://github.com/ota-meshi/eslint-plugin-astro/blob/main/src/rules/no-prerender-export-outside-pages.ts)

ā€Žpackage.jsonā€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-astro",
3-
"version": "1.6.0",
3+
"version": "1.7.0",
44
"description": "ESLint plugin for Astro component",
55
"main": "lib/index.js",
66
"module": "lib/index.mjs",

0 commit comments

Comments
Ā (0)
⚔