Skip to content

Commit 7c8f82b

Browse files
authored
@ota-meshi/eslint-plugin-svelte to eslint-plugin-svelte (#174)
1 parent fbe5f60 commit 7c8f82b

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/lib
44
/node_modules
55
/tests/fixtures/**/*.json
6+
/tests/fixtures/**/*.svelte
67
/explorer/dist
78
/explorer/node_modules
89
/explorer-v2/build

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ You can check it on [Online DEMO](https://ota-meshi.github.io/svelte-eslint-pars
1919

2020
The [svelte-eslint-parser] aims to make it easy to create your own rules for the [Svelte] by allowing the template AST to be used in the rules.
2121

22-
The [`@ota-meshi/eslint-plugin-svelte`] is an ESLint plugin that uses the [svelte-eslint-parser]. I have already [implemented some rules].
22+
The [`eslint-plugin-svelte`] is an ESLint plugin that uses the [svelte-eslint-parser]. I have already [implemented some rules].
2323

24-
[`@ota-meshi/eslint-plugin-svelte`]: https://github.com/ota-meshi/eslint-plugin-svelte
24+
[`eslint-plugin-svelte`]: https://github.com/ota-meshi/eslint-plugin-svelte
2525
[implemented some rules]: https://ota-meshi.github.io/eslint-plugin-svelte/rules/
2626

2727
### Benefits of Using AST
2828

2929
- We can create rules using the information contained in the AST.
3030
e.g.
31-
- [@ota-meshi/svelte/no-dupe-else-if-blocks](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-dupe-else-if-blocks/) rule
32-
- [@ota-meshi/svelte/no-at-html-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-html-tags/) rule
33-
- [@ota-meshi/svelte/no-at-debug-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/) rule
31+
- [svelte/no-dupe-else-if-blocks](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-dupe-else-if-blocks/) rule
32+
- [svelte/no-at-html-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-html-tags/) rule
33+
- [svelte/no-at-debug-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/) rule
3434
- Rules that use text work well.
3535
e.g.
3636
- [eol-last](https://eslint.org/docs/rules/eol-last) rule
@@ -39,7 +39,7 @@ The [`@ota-meshi/eslint-plugin-svelte`] is an ESLint plugin that uses the [svelt
3939

4040
### ESLint Plugins Using svelte-eslint-parser
4141

42-
#### [@ota-meshi/eslint-plugin-svelte](https://ota-meshi.github.io/eslint-plugin-svelte/)
42+
#### [eslint-plugin-svelte](https://ota-meshi.github.io/eslint-plugin-svelte/)
4343

4444
ESLint plugin for Svelte.
4545
It provides many unique check rules by using the template AST.
@@ -186,7 +186,7 @@ Example **.vscode/settings.json**:
186186

187187
- [AST.md](./docs/AST.md) is AST specification. You can check it on the [Online DEMO](https://ota-meshi.github.io/svelte-eslint-parser/).
188188
- The parser will generate its own [ScopeManager](https://eslint.org/docs/developer-guide/scope-manager-interface). You can check it on the [Online DEMO](https://ota-meshi.github.io/svelte-eslint-parser/scope).
189-
- I have already [implemented some rules] in the [`@ota-meshi/eslint-plugin-svelte`]. The source code for these rules will be helpful to you.
189+
- I have already [implemented some rules] in the [`eslint-plugin-svelte`]. The source code for these rules will be helpful to you.
190190

191191
## :beers: Contributing
192192

explorer-v2/.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
'plugin:@ota-meshi/+node',
66
'plugin:@ota-meshi/+json',
77
'plugin:@ota-meshi/+prettier',
8-
'plugin:@ota-meshi/svelte/recommended'
8+
'plugin:svelte/recommended'
99
],
1010
parserOptions: {
1111
sourceType: 'module',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"prebuild": "npm run -s clean",
1414
"build": "tsc --project ./tsconfig.build.json",
1515
"clean": "rimraf .nyc_output lib coverage",
16-
"lint": "eslint . --ext .js,.ts,.json",
16+
"lint": "eslint . --ext .js,.ts,.json,.svelte",
1717
"eslint-fix": "npm run lint -- --fix",
1818
"test": "mocha --require ts-node/register \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
1919
"cover": "nyc --reporter=lcov npm run test",
@@ -50,7 +50,6 @@
5050
},
5151
"devDependencies": {
5252
"@ota-meshi/eslint-plugin": "^0.10.0",
53-
"@ota-meshi/eslint-plugin-svelte": "^0.34.0",
5453
"@types/benchmark": "^2.1.1",
5554
"@types/chai": "^4.3.0",
5655
"@types/eslint": "^8.0.0",
@@ -73,6 +72,7 @@
7372
"eslint-plugin-node-dependencies": "^0.8.0",
7473
"eslint-plugin-prettier": "^4.0.0",
7574
"eslint-plugin-regexp": "^1.5.0",
75+
"eslint-plugin-svelte": "^2.0.0",
7676
"eslint-plugin-svelte3": "^4.0.0",
7777
"eslint-plugin-vue": "^9.0.0",
7878
"estree-walker": "^3.0.0",

0 commit comments

Comments
 (0)