Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-svelte3

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-svelte3 - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 2.0.1
- Disregard `eol-last` rule
- Disregard `no-unused-expressions` rule in the template
- Fix bug where rules intended to only be ignored in the template were being ignored in the entire file
# v2.0.0

@@ -2,0 +8,0 @@

5

index.js

@@ -221,3 +221,3 @@ 'use strict';

if (ast.html) {
transformed_code += '\n/* eslint-enable *//* eslint indent: 0, quotes: 0, semi: 0 */';
transformed_code += '\n/* eslint-enable *//* eslint-disable indent, no-unused-expressions, quotes, semi */';
// find all expressions in the AST

@@ -273,2 +273,3 @@ walk(ast.html, {

switch (message.ruleId) {
case 'eol-last': return false;
case 'no-labels': return false;

@@ -316,3 +317,3 @@ case 'no-restricted-syntax': return message.nodeType !== 'LabeledStatement';

// fetch settings
const settings = config ? (typeof config.extractConfig === 'function' ? config.extractConfig(options.filename || options).settings : config.settings) || {} : {};
const settings = config && (typeof config.extractConfig === 'function' ? config.extractConfig(options.filename) : config).settings || {};
ignore_warnings = settings['svelte3/ignore-warnings'];

@@ -319,0 +320,0 @@ ignore_styles = settings['svelte3/ignore-styles'];

2

package.json
{
"name": "eslint-plugin-svelte3",
"version": "2.0.0",
"version": "2.0.1",
"description": "An ESLint plugin for Svelte v3 components.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc