Skip to content

Commit 54d3045

Browse files
committed
refactor(projects): move eslint-flat-config to repository
1 parent 406b8f8 commit 54d3045

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+10146
-2785
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Editor configuration, see http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true

.eslintrc

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

.gitattributes

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
"*.vue" eol=lf
21
"*.js" eol=lf
32
"*.ts" eol=lf
43
"*.jsx" eol=lf
@@ -7,10 +6,16 @@
76
"*.cts" eol=lf
87
"*.mjs" eol=lf
98
"*.mts" eol=lf
10-
"*.json" eol=lf
119
"*.html" eol=lf
1210
"*.css" eol=lf
11+
"*.vue" eol=lf
12+
"*.json" eol=lf
1313
"*.less" eol=lf
1414
"*.scss" eol=lf
1515
"*.sass" eol=lf
1616
"*.styl" eol=lf
17+
"*.svelte" eol=lf
18+
"*.md" eol=lf
19+
"*.yml" eol=lf
20+
"*.astro" eol=lf
21+
"*.mdx" eol=lf

.github/workflows/release.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,46 @@
11
name: Release
22

3-
permissions:
4-
contents: write
5-
63
on:
74
push:
85
tags:
96
- "v*"
107

118
jobs:
129
release:
10+
permissions:
11+
id-token: write
12+
contents: write
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
1818

19-
- uses: actions/setup-node@v3
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v2
21+
22+
- name: Set node
23+
uses: actions/setup-node@v3
2024
with:
21-
node-version: 18.x
25+
node-version: lts/*
26+
cache: pnpm
27+
registry-url: "https://registry.npmjs.org"
2228

2329
- run: npx githublogen
2430
env:
2531
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
32+
33+
- name: Install Dependencies
34+
run: pnpm install --no-frozen-lockfile
35+
36+
- name: PNPM build
37+
run: pnpm run build
38+
39+
- name: Publish to NPM
40+
run: pnpm -r publish --access public --no-git-checks
41+
env:
42+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
43+
NPM_CONFIG_PROVENANCE: true
44+
45+
- name: Sync Npmmirror
46+
run: npx syncmirror

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,3 @@ stats.html
2828
*.njsproj
2929
*.sln
3030
*.sw?
31-
32-
package-lock.json
33-
yarn.lock
34-
pnpm-lock.yaml

.prettierrc

Whitespace-only changes.

.vscode/extensions.json

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

.vscode/settings.json

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.fixAll.eslint": "explicit"
3+
"source.fixAll.eslint": "explicit",
4+
"source.organizeImports": "never"
45
},
5-
"editor.fontLigatures": true,
6+
"eslint.experimental.useFlatConfig": true,
67
"editor.formatOnSave": false,
7-
"editor.quickSuggestions": {
8-
"strings": true
9-
},
10-
"editor.tabSize": 2,
11-
"eslint.validate": ["svelte", "astro", "json"],
12-
"files.associations": {
13-
"*.env.*": "dotenv",
14-
"*.svg": "html"
15-
},
16-
"files.eol": "\n",
17-
"[html][css][less][scss][sass][markdown][yaml][yml][jsonc]": {
18-
"editor.defaultFormatter": "esbenp.prettier-vscode",
19-
"editor.formatOnSave": true
20-
}
8+
"eslint.validate": [
9+
"svelte",
10+
"astro",
11+
"html",
12+
"css",
13+
"less",
14+
"scss",
15+
"json",
16+
"jsonc",
17+
"yaml",
18+
"yml",
19+
"markdown",
20+
"toml"
21+
],
22+
"prettier.enable": false
2123
}

0 commit comments

Comments
 (0)