File tree 6 files changed +12
-18
lines changed
6 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 7
7
</p >
8
8
<p align =" center " >ESLint plugin for internationalization with Svelte</p >
9
9
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
+
10
16
## :book : Documentation
11
17
12
18
See [ here] ( https://github.com/intlify/eslint-plugin-svelte/blob/main/docs/README.md )
Original file line number Diff line number Diff line change 2
2
3
3
@intlify/eslint-plugin-svelte is ESLint plugin for internationalization with Svelte. It easily integrates some localization features to your Svelte Application.
4
4
5
- Go to [ Get Started] ( ./started.md )
5
+ - 👉 Go to [ Get Started] ( ./started.md )
6
6
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 )
Original file line number Diff line number Diff line change 1
1
# Available Rules
2
2
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.
4
4
- :black_nib : mark: the rule which is fixable by ` eslint --fix ` command.
5
5
6
6
## Recommended
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default [
12
12
} ,
13
13
{
14
14
name : '@intlify/svelte:base:svelte' ,
15
- files : [ '*.svelte' ] ,
15
+ files : [ '**/*.svelte' , '* .svelte'] ,
16
16
languageOptions : {
17
17
parser : parser
18
18
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ writeFileSync(
37
37
resolve ( import . meta. dirname , '../docs/rules/README.md' ) ,
38
38
`# Available Rules
39
39
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.
41
41
- :black_nib: mark: the rule which is fixable by \`eslint --fix\` command.
42
42
43
43
${ withCategories
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default [
18
18
},
19
19
{
20
20
name: '@intlify/svelte:base:svelte',
21
- files: ['*.svelte'],
21
+ files: ['**/*.svelte', '* .svelte'],
22
22
languageOptions: {
23
23
parser: parser,
24
24
}
You can’t perform that action at this time.
0 commit comments