UNPKG

5.3 kBMarkdownView Raw
1# 3.1.2
2
3- Silence some incorrect `unsafe-member-access` errors - see README for current limitations
4
5# 3.1.1
6
7- Fix erroneous errors from two-way binding in TypeScript components
8- Fix erroneous warnings from the removal of `import`s in TypeScript components
9
10# 3.1.0
11
12- Add TypeScript support
13
14# 3.0.0
15
16- Breaking change: Node 10+ is now required
17 - There are no specific changes yet that will not work on Node 8, but tests will no longer be run on Node 8, and there are no guarantees about it
18- Fix erroneous `no-unused-vars` for variables that are assigned to in the template, but are only used in the script
19
20# 2.7.3
21
22- Fix mishandling of blocks whose last line consists of only the expected indentation
23
24# 2.7.2
25
26- Fix regression when using `linebreak-style` with Windows line endings
27
28# 2.7.1
29
30- Named code blocks were in fact a breaking change, sorry!
31- They're now disabled by default, but can be enabled with `svelte3/named-blocks`
32
33# 2.7.0
34
35- Expose the parts of each linted component as separate named code blocks `module.js`, `instance.js`, and `template.js`
36
37# 2.6.0
38
39- Add `svelte3/compiler` setting to allow overriding which instance of the Svelte compiler is used
40
41# 2.5.0
42
43- Fix `let:` handling on regular elements as well
44- Separate `then` and `catch` scopes in `{#await}`
45
46# 2.4.2
47
48- Fix handling of the scope created by `let:` directives
49
50# 2.4.1
51
52- Fix attribute parsing edge case in `svelte3/ignore-styles` callback
53
54# 2.4.0
55
56- Respect `no-self-assign` rule unless self-assignment is to a top-level variable known to the compiler
57- Better handling of identifiers containing unicode characters
58
59# 2.3.0
60
61- Respect `quotes` rule unless inside a template expression which is inside an attribute or directive enclosed in quotes
62- Respect `no-unused-expressions` rule again (which is now safe thanks to a previous refactor)
63
64# 2.2.2
65
66- Stop using inline configuration comments internally, to avoid issues with `--no-inline-config` and `--report-unused-disable-directives`
67
68# 2.2.1
69
70- Handle `then` and `catch` scope in `{#await}`
71
72# 2.2.0
73
74- Enforce semicolon rules in template expressions
75- Fix parsing of template expressions that are object literals
76- Don't produce multiple messages for template expressions wrapped in parentheses
77
78# 2.1.0
79
80- Preserve linting messages about labels other than `$`
81
82# 2.0.2
83
84- Actually fix ignoring of rules in the template
85
86# 2.0.1
87
88- Disregard `eol-last` rule
89- Disregard `no-unused-expressions` rule in the template
90- Fix bug where rules intended to only be ignored in the template were being ignored in the entire file
91
92# v2.0.0
93
94- Require Svelte v3.2+ and ESLint 6+
95- Reworked configuration:
96 - `svelte3/enabled` has been removed in favor of registering a `svelte3/svelte3` processor that you need to enable on files
97 - `svelte3/ignore-warnings` now only takes a callback which is passed the warning object
98 - `svelte3/compiler-options` now only takes a compiler options object
99 - `svelte3/ignore-styles` now only takes a preprocessor-style callback
100 - `svelte3/lint-template` has been removed, and template linting is now always enabled
101
102# v1.2.3
103
104- Fix a weird edge case where fixes to problems could be lost in certain cases
105
106# v1.2.2
107
108- Internal improvements to AST walk
109
110# v1.2.1
111
112- Avoid mutating the AST while linting, which can have adverse effects
113
114# v1.2.0
115
116- Pass a second argument to the `svelte3/ignore-warnings` function that contains the entire warning object
117- Disregard `no-labels` rule and `no-restricted-syntax` rule in places where it disallows labels
118
119# v1.1.0
120
121- Experimental support for linting expressions in the template, behind the `svelte3/lint-template` setting. This feature requires Svelte 3.2.0
122
123# v1.0.0
124
125- Svelte v3 release party!
126
127# v0.4.7
128
129- Fix regression with specifying an array of warnings to ignore
130
131# v0.4.6
132
133- Add `svelte3/compiler-options` setting to control how the compiler is called during linting
134
135# v0.4.5
136
137- Proper fix for not wiping tag names that begin with `<style`
138
139# v0.4.4
140
141- With `svelte3/ignore-warnings`, don't wipe elements whose tag names merely begin with `<style`
142- The plugin is now published to npm
143
144# v0.4.3
145
146- Better handling for files linted in Windows/CRLF `linebreak-style`
147
148# v0.4.2
149
150- Work around issues caused by ESLint issues with fixes that replace more of the file than necessary
151
152# v0.4.1
153
154- Make sure fixes for issues at the beginning and end of the scripts do not change text outside of the scripts
155
156# v0.4.0
157
158- Reworked configuration to be more flexible:
159 - `svelte3/ignore` has been renamed to `svelte3/ignore-warnings`
160 - `svelte3/extensions` has been removed and `svelte3/enabled` has been added (which works differently but is more powerful)
161- `svelte3/ignore-styles` has been added as an immediate solution for components with styles written in something other than normal CSS
162
163# v0.3.0
164
165- Support and require at least beta 4
166
167# v0.2.3
168
169- Add `svelte3/ignore` setting for ignoring specific compiler warnings
170
171# v0.2.2
172
173- Include the position of the end of a compiler error message, when available
174
175# v0.2.1
176
177- Don't warn about `export let`s with default values and no other reassignments when using `prefer-const`
178
179# v0.2.0
180
181- Add handling of store auto-subscriptions and other injected variables
182- Require alpha 21
183
184# v0.1.0
185
186- Initial release