eslint-plugin-svelte3
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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 @@ |
@@ -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']; |
{ | ||
"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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19083
300