Skip to content

Commit a9e5428

Browse files
authored
Rename package to eslint-plugin-svelte (#160)
* Rename package to eslint-plugin-svelte * fix script * fix wf * Use yarn * format * fix wf * add mig guide * Update FUNDING.yml * update
1 parent 4bfcd8e commit a9e5428

Some content is hidden

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

63 files changed

+476
-463
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// "forwardPorts": [],
2323

2424
// Use 'postCreateCommand' to run commands after the container is created.
25-
"postCreateCommand": "npm install --legacy-peer-deps",
25+
"postCreateCommand": "yarn install",
2626

2727
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
2828
"remoteUser": "node"

.github/FUNDING.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# These are supported funding model platforms
22

3-
github: ota-meshi
4-
# patreon: # Replace with a single Patreon username
5-
# open_collective: # Replace with a single Open Collective username
6-
# ko_fi: # Replace with a single Ko-fi username
7-
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-
# liberapay: # Replace with a single Liberapay username
10-
# issuehunt: # Replace with a single IssueHunt username
11-
# otechie: # Replace with a single Otechie username
12-
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
3+
github: [ota-meshi, JounQin]
4+
open_collective: rxts
5+
patreon: 1stG

.github/workflows/GHPages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- uses: actions/setup-node@v3
1414
- name: Install And Build
1515
run: |+
16-
npm install --legacy-peer-deps
17-
npm run build
16+
yarn install
17+
yarn build
1818
export NODE_OPTIONS="--max-old-space-size=8192"
19-
npm run docs:build
19+
yarn docs:build
2020
- name: Deploy
2121
uses: peaceiris/actions-gh-pages@v3
2222
with:

.github/workflows/NodeCI.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,22 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
- name: Install Packages
16-
run: npm install --legacy-peer-deps
16+
run: yarn install
1717
- name: Lint
18-
run: npm run lint
18+
run: |+
19+
yarn build
20+
yarn lint
1921
build:
2022
runs-on: ubuntu-latest
2123
steps:
2224
- uses: actions/checkout@v3
2325
- uses: actions/setup-node@v3
2426
- name: Install Packages
25-
run: npm install --legacy-peer-deps
27+
run: yarn install
2628
- name: Build
2729
run: |+
28-
npm run update
29-
npm run build
30+
yarn update
31+
yarn build
3032
test:
3133
name: "Test for ESLint ${{ matrix.eslint }} on ${{ matrix.node }} OS: ${{matrix.os}}"
3234
runs-on: ${{ matrix.os }}
@@ -44,10 +46,10 @@ jobs:
4446
node-version: ${{ matrix.node }}
4547
- name: Install ESLint ${{ matrix.eslint }}
4648
run: |+
47-
npm i -D eslint@${{ matrix.eslint }} --legacy-peer-deps
48-
npx rimraf node_modules
49+
yarn add -D eslint@${{ matrix.eslint }} --ignore-engines
50+
rm -rf node_modules
4951
if: matrix.eslint != 8
5052
- name: Install Packages
51-
run: npm install --legacy-peer-deps
53+
run: yarn install --ignore-engines
5254
- name: Test
53-
run: npm test
55+
run: yarn test

.github/workflows/NpmPublish.yml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ dist
101101
.tern-port
102102

103103
## repo
104+
/yarn.lock
104105
/lib
105106
/.svelte-kit
106107
/build

README.md

Lines changed: 54 additions & 50 deletions
Large diffs are not rendered by default.

docs-svelte-kit/.eslintrc.cjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// eslint-disable-next-line no-undef -- ignore
22
module.exports = {
3-
extends: ["plugin:@ota-meshi/svelte/recommended"],
3+
extends: ["plugin:svelte/recommended"],
44
env: {
55
browser: true,
66
es2022: true,
@@ -9,11 +9,11 @@ module.exports = {
99
sourceType: "module",
1010
},
1111
rules: {
12-
"@ota-meshi/svelte/no-target-blank": "error",
13-
"@ota-meshi/svelte/button-has-type": "error",
14-
"@ota-meshi/svelte/no-useless-mustaches": "error",
15-
"@ota-meshi/svelte/prefer-class-directive": "error",
16-
"@ota-meshi/svelte/prefer-style-directive": "error",
17-
"@ota-meshi/svelte/spaced-html-comment": "error",
12+
"svelte/no-target-blank": "error",
13+
"svelte/button-has-type": "error",
14+
"svelte/no-useless-mustaches": "error",
15+
"svelte/prefer-class-directive": "error",
16+
"svelte/prefer-style-directive": "error",
17+
"svelte/spaced-html-comment": "error",
1818
},
1919
}

docs-svelte-kit/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
property="og:image"
1616
content="https://ota-meshi.github.io/eslint-plugin-svelte/favicon.png"
1717
/>
18-
<meta property="og:site_name" content="@ota-meshi/eslint-plugin-svelte" />
18+
<meta property="og:site_name" content="eslint-plugin-svelte" />
1919
<meta
2020
property="og:description"
2121
content="ESLint plugin for Svelte using AST"

docs-svelte-kit/src/lib/components/ESLintPlayground.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
})
2323
2424
const DEFAULT_CODE =
25-
`<!-- Welcome to @ota-meshi/eslint-plugin-svelte -->
25+
`<!-- Welcome to eslint-plugin-svelte -->
2626
<script>
2727
let a = 1;
2828
let b = 2;

0 commit comments

Comments
 (0)