File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ An ESLint plugin for Svelte v3 components.
8
8
- Variable references in your template or in store auto-subscriptions are handled when linting for unused variables
9
9
- Self-assignments are always allowed, as this is an official pattern for manually triggering reactive updates
10
10
- Unused labels called ` $ ` are always allowed, as this is the syntax for reactive assignments
11
+ - Experimental opt-in linting of template expressions in addition to the script blocks
11
12
12
13
## Installation
13
14
@@ -79,6 +80,14 @@ This can be `true` or `false` or a function that accepts an object of attributes
79
80
80
81
The default is to not ignore any styles.
81
82
83
+ ### ` svelte3/lint-template `
84
+
85
+ ** Experimental! Requires at least Svelte 3.2.0!**
86
+
87
+ This can be ` true ` or ` false ` or a function that accepts a file path and returns whether this plugin should also lint its template expressions.
88
+
89
+ The default is to not lint any expressions in the template.
90
+
82
91
## Using the CLI
83
92
84
93
It's probably a good idea to make sure you can lint from the command line before proceeding with configuring your editor.
You can’t perform that action at this time.
0 commit comments