jarrodldavis / eslint-plugin-svelte Goto Github PK
View Code? Open in Web Editor NEWExperimental ESLint parser and plugin for Svelte v3 templates
License: MIT License
Experimental ESLint parser and plugin for Svelte v3 templates
License: MIT License
indent
rule overrideno-labels
/no-unused-labels
rule overrides)Location: 07.implicit
> 01.store-auto-subscription
> 02.self-declared
> 04.if.svelte
This template is importing a store when it should be self declaring one.
https://twitter.com/_jayphelps/status/1120502305172983808
Reactive declarations are only supported at the top level of the <script>
block, so ESLint-reported problems for the no-labels
/no-unused-labels
shouldn't be suppressed for labeled statements inside blocks.
indent
rule overrideno-labels
/no-unused-labels
rule overrides)Add templates for exercising class attributes and directives
The parser converter is missing tokens for non-shorthand let
directive names.
Location: 06.directives
> 03.bindings
> 12.video.svelte
A trivial thing, but the source should be video.mp4
instead of audio.mp3
07.implicit
01.store-auto-subscription
01.imported
06.else.svelte
02.self-declared
06.else.svelte
09.unused
04.actions
01.unquoted-identifier.svelte.json
02.double-quoted-identifier.svelte.json
03.single-quoted-identifier.svelte.json
05.animation
01.unquoted-identifier.svelte.json
02.double-quoted-identifier.svelte.json
03.single-quoted-identifier.svelte.json
07.event-handlers
02.unquoted-identifier.svelte.json
03.double-quoted-identifier.svelte.json
04.single-quoted-identifier.svelte.json
05.unquoted-inline.svelte.json
06.double-quoted-inline.svelte.json
07.single-quoted-inline.svelte.json
09.transitions
01.bidirectional
01.unquoted-identifier.svelte.json
02.double-quoted-identifier.svelte.json
03.single-quoted-identifier.svelte.json
01.in
01.unquoted-identifier.svelte.json
02.double-quoted-identifier.svelte.json
03.single-quoted-identifier.svelte.json
01.out
01.unquoted-identifier.svelte.json
02.double-quoted-identifier.svelte.json
03.single-quoted-identifier.svelte.json
indent
rule overrideno-labels
/no-unused-labels
rule overrides)Currently, if a template number is changed (e.g. 03.key-expression.svelte
-> 04.key-expression.svelte
), baselines for that template are not marked as missing and thus not renamed in update mode
Add templates for exercising undefined variables for compact and catch-less await blocks
Location: 06.directives
> 03.bindings
> 08.radio.svelte
group
bindings for radio
inputs should be a primitive value, not an array.
It turns out @debug
tags are not actually tokenized by Espree, so the converter parser is missing tokens for their identifiers.
Ampersat-prefixed key identifiers for each blocks are duplicately tokenized by the converter parser.
{#each posts as title, @title}
<p>{title}</p>
{/each}
Else sub-blocks of each blocks do not have access to context or index declarations, so the referencer definitions should reflect that
indent
rule overrideno-labels
/no-unused-labels
rule overrides)In the referencer, determine if using ParameterDefinition
is more appropriate for e.g. each block contexts and let directives
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.