forked from sveltejs/eslint-plugin-svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename package to eslint-plugin-svelte (sveltejs#160)
* Rename package to eslint-plugin-svelte * fix script * fix wf * Use yarn * format * fix wf * add mig guide * Update FUNDING.yml * update
- Loading branch information
Showing
63 changed files
with
476 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
# These are supported funding model platforms | ||
|
||
github: ota-meshi | ||
# patreon: # Replace with a single Patreon username | ||
# open_collective: # Replace with a single Open Collective username | ||
# ko_fi: # Replace with a single Ko-fi username | ||
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
# liberapay: # Replace with a single Liberapay username | ||
# issuehunt: # Replace with a single IssueHunt username | ||
# otechie: # Replace with a single Otechie username | ||
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] | ||
github: [ota-meshi, JounQin] | ||
open_collective: rxts | ||
patreon: 1stG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,7 @@ dist | |
.tern-port | ||
|
||
## repo | ||
/yarn.lock | ||
/lib | ||
/.svelte-kit | ||
/build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Migration Guide | ||
|
||
## From `eslint-plugin-svelte` v1 To v2 | ||
|
||
`eslint-plugin-svelte` v1 was an alias for [eslint-plugin-svelte3], but `eslint-plugin-svelte` v2 is now an independent eslint-plugin. | ||
|
||
If you want the previous behavior, replace it with [eslint-plugin-svelte3]. | ||
|
||
[eslint-plugin-svelte3]: https://github.com/sveltejs/eslint-plugin-svelte3 | ||
|
||
## From `@ota-meshi/eslint-plugin-svelte` | ||
|
||
`@ota-meshi/eslint-plugin-svelte` has been renamed to `eslint-plugin-svelte`. | ||
Therefore, you need to replace the package name, and the presets, rules, and settings specified in the configuration. | ||
|
||
- `package.json` | ||
Replace the package name. | ||
|
||
```diff | ||
- "@ota-meshi/eslint-plugin-svelte": "^0.X.X" | ||
+ "eslint-plugin-svelte": "^X.X.X" | ||
``` | ||
|
||
- `.eslintrc.*` | ||
Replace `@ota-meshi/svelte` with `svelte` as a string. | ||
Examples: | ||
|
||
- Presets | ||
|
||
```diff | ||
"extends": [ | ||
- "plugin:@ota-meshi/svelte/recommended" | ||
+ "plugin:svelte/recommended" | ||
], | ||
``` | ||
|
||
- Rules | ||
|
||
```diff | ||
"rules": { | ||
- "@ota-meshi/svelte/no-dupe-else-if-blocks": "error", | ||
+ "svelte/no-dupe-else-if-blocks": "error", | ||
- "@ota-meshi/svelte/button-has-type": "error", | ||
+ "svelte/button-has-type": "error", | ||
}, | ||
``` | ||
|
||
- `settings` | ||
|
||
```diff | ||
"settings": { | ||
- "@ota-meshi/svelte": { ... } | ||
+ "svelte": { ... } | ||
}, | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.