@zemd/eslint-astro 0.0.1 → 0.0.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/README.md +48 -0
- package/package.json +2 -2
package/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# Shared ESLint config for Astro projects
|
2
|
+
|
3
|
+
[](https://npmjs.com/package/@zemd/eslint-astro)
|
4
|
+
[](https://github.com/zemd/eslint-flat-config)
|
5
|
+
|
6
|
+
This package includes a set of ESLint configurations for Astro projects.
|
7
|
+
|
8
|
+
**The package includes**:
|
9
|
+
|
10
|
+
| Package | Description | Rules | License |
|
11
|
+
| --------------------- | ---------------------------------------------------- | -------------------------------------------------------------- | ---------- |
|
12
|
+
| `eslint-plugin-astro` | ESLint plugin for Astro components | `recommended` | MIT |
|
13
|
+
| `@zemd/eslint-react` | ESlint bundle for linting js/ts and react components | see https://npmjs.com/package/@zemd/eslint-react for more info | Apache 2.0 |
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
```bash
|
18
|
+
npm install --save-dev @zemd/eslint-astro
|
19
|
+
```
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```javascript
|
24
|
+
// eslint.config.js
|
25
|
+
|
26
|
+
import astro from "@zemd/eslint-astro"; // this will include all rules including @zemd/eslint-react
|
27
|
+
// import { astro } from "@zemd/eslint-astro"; // if you want to cherry-pick
|
28
|
+
export default [...astro()];
|
29
|
+
```
|
30
|
+
|
31
|
+
## You might be also interested in
|
32
|
+
|
33
|
+
| Package | Version | Description |
|
34
|
+
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
35
|
+
| [`@zemd/eslint-js`](../js/README.md) | [](https://npmjs.com/package/@zemd/eslint-js) | JavaScript-only rules. |
|
36
|
+
| [`@zemd/eslint-ts`](../ts/README.md) | [](https://npmjs.com/package/@zemd/eslint-ts) | TypeScript rules (includes JS rules from @zemd/eslint-js). |
|
37
|
+
| [`@zemd/eslint-react`](../react/README.md) | [](https://npmjs.com/package/@zemd/eslint-react) | React rules (includes TS rules from `@zemd/eslint-ts` and JS rules from `@zemd/eslint-js`). |
|
38
|
+
| [`@zemd/eslint-rock-stack`](../rock-stack/README.md) | [](https://npmjs.com/package/@zemd/eslint-rock-stack) | Rules for Fullstack projects that include React.js, GraphQL, Playwright, Tailwind(optional), Turbo, Vitest, and Storybook. |
|
39
|
+
| [`@zemd/eslint-next`](../next/README.md) | [](https://npmjs.com/package/@zemd/eslint-next) | Rules for Next.js projects (inherits from `@zemd/eslint-rock-stack`). |
|
40
|
+
| [`@zemd/eslint-astro`](../astro/README.md) | [](https://npmjs.com/package/@zemd/eslint-astro) | Rules for Astro based projects (includes rules `@zemd/eslint-react` by default). |
|
41
|
+
|
42
|
+
## License
|
43
|
+
|
44
|
+
The `@zemd/eslint-astro` is licensed under **Apache-2.0 license** 😇.
|
45
|
+
|
46
|
+
## 💙 💛 Donate
|
47
|
+
|
48
|
+
[](https://u24.gov.ua/)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zemd/eslint-astro",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.3",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"description": "Shared ESLint config for Astro based projects",
|
6
6
|
"keywords": [
|
@@ -50,7 +50,7 @@
|
|
50
50
|
},
|
51
51
|
"dependencies": {
|
52
52
|
"eslint-plugin-astro": "^1.3.1",
|
53
|
-
"@zemd/eslint-react": "1.0.
|
53
|
+
"@zemd/eslint-react": "1.0.23",
|
54
54
|
"@zemd/eslint-common": "1.0.4"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|