Skip to content

Commit 2e654e3

Browse files
committed
add sample .eslintrc to readme
1 parent dc66c5a commit 2e654e3

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,29 @@ npm install eslint-plugin-svelte3
1919

2020
Then add `svelte3` to the `plugins` array in your `.eslintrc.*`.
2121

22-
## Usage
22+
For example:
23+
24+
```json
25+
{
26+
"parserOptions": {
27+
"ecmaVersion": 2019,
28+
"sourceType": "module"
29+
},
30+
"env": {
31+
"es6": true,
32+
"browser": true
33+
},
34+
"plugins": [
35+
"svelte3"
36+
],
37+
"rules": {
38+
39+
},
40+
"settings": {
41+
42+
}
43+
}
44+
```
2345

2446
This plugin needs to be able to `require('svelte/compiler')`. If ESLint, this plugin, and Svelte are all installed locally in your project, this should not be a problem.
2547

0 commit comments

Comments
 (0)