Skip to content

Commit 0e8c190

Browse files
committed
update
1 parent 4c1151c commit 0e8c190

File tree

6 files changed

+12
-18
lines changed

6 files changed

+12
-18
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
</p>
88
<p align="center">ESLint plugin for internationalization with Svelte</p>
99

10+
<h2 align="center">
11+
12+
[Online Demo](https://eslint-online-playground.netlify.app/#https://github.com/intlify/eslint-plugin-svelte/tree/main/playground)
13+
14+
</h2>
15+
1016
## :book: Documentation
1117

1218
See [here](https://github.com/intlify/eslint-plugin-svelte/blob/main/docs/README.md)

docs/README.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22

33
@intlify/eslint-plugin-svelte is ESLint plugin for internationalization with Svelte. It easily integrates some localization features to your Svelte Application.
44

5-
Go to [Get Started](./started.md)
5+
- 👉 Go to [Get Started](./started.md)
66

7-
<eslint-code-block :rules="{ '@intlify/svelte/no-raw-text': 'error' }">
8-
9-
<!-- eslint-skip -->
10-
11-
```html
12-
<!-- ✓ GOOD -->
13-
<h2>{$_('page.subtitle')}</h2>
14-
15-
<!-- ✗ BAD -->
16-
<p>Plain text cannot be replaced by multiple languages.</p>
17-
```
18-
19-
</eslint-code-block>
7+
- 👉 Try it out in [Online Demo](https://eslint-online-playground.netlify.app/#https://github.com/intlify/eslint-plugin-svelte/tree/main/playground)

docs/rules/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Available Rules
22

3-
- :star: mark: the rule which is enabled by the `plugin:@intlify/svelte/recommended` or `*.configs.["flat/recommended"]` preset.
3+
- :star: mark: the rule which is enabled by the `*.configs.["flat/recommended"]` preset.
44
- :black_nib: mark: the rule which is fixable by `eslint --fix` command.
55

66
## Recommended

lib/configs/flat/base.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default [
1212
},
1313
{
1414
name: '@intlify/svelte:base:svelte',
15-
files: ['*.svelte'],
15+
files: ['**/*.svelte', '*.svelte'],
1616
languageOptions: {
1717
parser: parser
1818
}

scripts/update-docs-index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ writeFileSync(
3737
resolve(import.meta.dirname, '../docs/rules/README.md'),
3838
`# Available Rules
3939
40-
- :star: mark: the rule which is enabled by the \`plugin:@intlify/svelte/recommended\` or \`*.configs.["flat/recommended"]\` preset.
40+
- :star: mark: the rule which is enabled by the \`*.configs.["flat/recommended"]\` preset.
4141
- :black_nib: mark: the rule which is fixable by \`eslint --fix\` command.
4242
4343
${withCategories

scripts/update-flat-base-config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default [
1818
},
1919
{
2020
name: '@intlify/svelte:base:svelte',
21-
files: ['*.svelte'],
21+
files: ['**/*.svelte', '*.svelte'],
2222
languageOptions: {
2323
parser: parser,
2424
}

0 commit comments

Comments
 (0)