Skip to content

Commit daaef0d

Browse files
authored
Merge pull request #419 from ansidev/release/3.1.0
Release v3.1.0
2 parents b4ba684 + 242841a commit daaef0d

File tree

7 files changed

+1619
-1697
lines changed

7 files changed

+1619
-1697
lines changed

.changes/v3.1.0.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## [v3.1.0](https://github.com/ansidev/astro-basic-template/compare/v3.0.0...v3.1.0) (2024-02-26)
2+
3+
### Bug Fixes
4+
5+
- migrate to new eslint config
6+
7+
- regenerate pnpm-lock.yaml
8+
9+
### Dependencies
10+
11+
| Package | Version |
12+
| ---------------------------------- | ------------------------------- |
13+
| `@astrojs/check` | `^0.3.1` `->` `^0.5.0` |
14+
| `@typescript-eslint/eslint-plugin` | Replaced by `typescript-eslint` |
15+
| `@typescript-eslint/parser` | `^6.12.0` `->` `^7.0.0` |
16+
| `eslint` | `^8.54.0` `->` `^8.57.0` |
17+
| `eslint-plugin-astro` | `^0.30.0` `->` `^0.31.4` |
18+
| `eslint-plugin-simple-import-sort` | `^10.0.0` `->` `^12.0.0` |
19+
| `husky` | `^8.0.3` `->` `^9.0.0` |
20+
| `prettier-plugin-astro` | `^0.13.0` |
21+
| `typescript` | `^5.3.2` `->` `^5.3.3` |
22+
| `typescript-eslint` | `^^7.0.2` |
23+
| `vitest` | `^1.0.0` `->` `^1.3.1` |
24+
25+
Full Changelog: [v3.0.0...v3.1.0](https://github.com/ansidev/astro-basic-template/compare/v3.0.0...v3.1.0)

.eslintrc.cjs

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

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
66

7+
## [v3.1.0](https://github.com/ansidev/astro-basic-template/compare/v3.0.0...v3.1.0) (2024-02-26)
8+
9+
### Bug Fixes
10+
11+
- migrate to new eslint config
12+
13+
- regenerate pnpm-lock.yaml
14+
15+
### Dependencies
16+
17+
| Package | Version |
18+
| ---------------------------------- | ------------------------------- |
19+
| `@astrojs/check` | `^0.3.1` `->` `^0.5.0` |
20+
| `@typescript-eslint/eslint-plugin` | Replaced by `typescript-eslint` |
21+
| `@typescript-eslint/parser` | `^6.12.0` `->` `^7.0.0` |
22+
| `eslint` | `^8.54.0` `->` `^8.57.0` |
23+
| `eslint-plugin-astro` | `^0.30.0` `->` `^0.31.4` |
24+
| `eslint-plugin-simple-import-sort` | `^10.0.0` `->` `^12.0.0` |
25+
| `husky` | `^8.0.3` `->` `^9.0.0` |
26+
| `prettier-plugin-astro` | `^0.13.0` |
27+
| `typescript` | `^5.3.2` `->` `^5.3.3` |
28+
| `typescript-eslint` | `^^7.0.2` |
29+
| `vitest` | `^1.0.0` `->` `^1.3.1` |
30+
31+
Full Changelog: [v3.0.0...v3.1.0](https://github.com/ansidev/astro-basic-template/compare/v3.0.0...v3.1.0)
32+
733
## [v3.0.0](https://github.com/ansidev/astro-basic-template/compare/v2.0.0...v3.0.0) (2023-12-06)
834

935
### Dependencies

eslint.config.cjs

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

eslint.config.js

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import jseslint from '@eslint/js'
2+
import tsEslintParser from '@typescript-eslint/parser'
3+
import eslintAstroPlugin from 'eslint-plugin-astro'
4+
import eslintSimpleImportSortPlugin from 'eslint-plugin-simple-import-sort'
5+
import globals from 'globals'
6+
import tseslint from 'typescript-eslint'
7+
8+
const sharedConfigs = {
9+
quotes: 'single',
10+
semicolon: false,
11+
}
12+
13+
export default [
14+
{
15+
ignores: ['.gitignore'],
16+
plugins: {
17+
'simple-import-sort': eslintSimpleImportSortPlugin,
18+
},
19+
languageOptions: {
20+
sourceType: 'module',
21+
ecmaVersion: 2023,
22+
globals: {
23+
...globals.browser,
24+
...globals.node
25+
}
26+
},
27+
rules: {
28+
'comma-spacing': [
29+
'error',
30+
{
31+
'before': false,
32+
'after': true
33+
}
34+
],
35+
'quotes': ['error', sharedConfigs.quotes],
36+
'simple-import-sort/imports': 'error',
37+
'simple-import-sort/exports': 'error',
38+
},
39+
},
40+
{
41+
files: ['src/**/*.astro'],
42+
plugins: {
43+
'astro': eslintAstroPlugin,
44+
},
45+
...tseslint.configs.eslintRecommended,
46+
...{ rules: eslintAstroPlugin.configs.recommended.rules },
47+
languageOptions: {
48+
parser: tsEslintParser,
49+
},
50+
rules: {
51+
'astro/semi': ['error', sharedConfigs.semicolon ? 'always' : 'never'],
52+
}
53+
},
54+
{
55+
files: ['*.ts'],
56+
...jseslint.configs.recommended,
57+
...tseslint.configs.eslintRecommended,
58+
languageOptions: {
59+
parser: tsEslintParser,
60+
}
61+
},
62+
{
63+
files: ['*.mjs'],
64+
...jseslint.configs.recommended,
65+
},
66+
]

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "astro-starter-template",
33
"type": "module",
4-
"version": "3.0.0",
4+
"version": "3.1.0",
55
"private": true,
66
"license": "MIT",
77
"scripts": {
@@ -11,7 +11,7 @@
1111
"preview": "astro preview",
1212
"astro": "astro",
1313
"prepare": "astro telemetry disable && husky install",
14-
"lint:js": "eslint --ext .cjs,.mjs,.ts,.astro --ignore-path .gitignore .",
14+
"lint:js": "eslint .",
1515
"lint:ts": "astro check && tsc --noEmit",
1616
"lint": "pnpm run lint:js && pnpm run lint:ts",
1717
"test": "vitest"
@@ -22,19 +22,21 @@
2222
"astro-purgecss": "^4.0.0"
2323
},
2424
"devDependencies": {
25-
"@astrojs/check": "^0.3.1",
25+
"@astrojs/check": "^0.5.0",
2626
"@commitlint/cli": "^18.4.3",
2727
"@commitlint/config-conventional": "^18.4.3",
2828
"@types/node": "^20.9.3",
29-
"@typescript-eslint/eslint-plugin": "^6.12.0",
30-
"@typescript-eslint/parser": "^6.12.0",
29+
"@typescript-eslint/parser": "^7.0.0",
3130
"commitizen": "^4.3.0",
3231
"dotenv": "^16.3.1",
33-
"eslint": "^8.54.0",
34-
"eslint-plugin-astro": "^0.30.0",
35-
"eslint-plugin-simple-import-sort": "^10.0.0",
36-
"husky": "^8.0.3",
37-
"typescript": "^5.3.2",
38-
"vitest": "^1.0.0"
32+
"eslint": "^8.57.0",
33+
"eslint-plugin-astro": "^0.31.4",
34+
"eslint-plugin-simple-import-sort": "^12.0.0",
35+
"globals": "^14.0.0",
36+
"husky": "^9.0.0",
37+
"prettier-plugin-astro": "^0.13.0",
38+
"typescript": "^5.3.3",
39+
"typescript-eslint": "^7.0.2",
40+
"vitest": "^1.3.1"
3941
}
4042
}

0 commit comments

Comments
 (0)