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

eslint-plugin-svelte

Package Overview
Dependencies
Maintainers
2
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-svelte - npm Package Compare versions

Comparing version 2.10.0 to 2.11.0

4

lib/rules/@typescript-eslint/no-unnecessary-condition.js

@@ -79,2 +79,6 @@ "use strict";

type: "suggestion",
deprecated: true,
replacedBy: {
note: "This rule is no longer needed when using svelte-eslint-parser>=v0.19.0.",
},
},

@@ -81,0 +85,0 @@ create(context) {

8

lib/types.d.ts

@@ -42,3 +42,5 @@ import type { JSONSchema4 } from "json-schema";

deprecated?: boolean;
replacedBy?: string[];
replacedBy?: string[] | {
note: string;
};
type: "problem" | "suggestion" | "layout";

@@ -73,3 +75,5 @@ }

deprecated?: boolean;
replacedBy?: string[];
replacedBy?: string[] | {
note: string;
};
type: "problem" | "suggestion" | "layout";

@@ -76,0 +80,0 @@ }

{
"name": "eslint-plugin-svelte",
"version": "2.10.0",
"version": "2.11.0",
"description": "ESLint plugin for Svelte using AST",

@@ -76,3 +76,3 @@ "repository": "git+https://github.com/ota-meshi/eslint-plugin-svelte.git",

"sourcemap-codec": "^1.4.8",
"svelte-eslint-parser": "^0.18.0"
"svelte-eslint-parser": "^0.19.0"
},

@@ -111,3 +111,3 @@ "devDependencies": {

"@types/mocha": "^10.0.0",
"@types/node": "^16.0.0",
"@types/node": "^18.11.0",
"@types/postcss-safe-parser": "^5.0.1",

@@ -154,3 +154,3 @@ "@types/prismjs": "^1.26.0",

"pako": "^2.0.3",
"postcss-nested": "^5.0.6",
"postcss-nested": "^6.0.0",
"prettier": "^2.2.1",

@@ -165,3 +165,3 @@ "prettier-plugin-pkg": "^0.17.0",

"stylelint": "^14.0.0",
"stylelint-config-standard": "^28.0.0",
"stylelint-config-standard": "^29.0.0",
"stylus": "^0.59.0",

@@ -168,0 +168,0 @@ "svelte": "^3.46.1",

@@ -330,3 +330,2 @@ # Introduction

|:--------|:------------|:---|
| [svelte/@typescript-eslint/no-unnecessary-condition](https://ota-meshi.github.io/eslint-plugin-svelte/rules/@typescript-eslint/no-unnecessary-condition/) | disallow conditionals where the type is always truthy or always falsy | :wrench: |
| [svelte/no-inner-declarations](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-inner-declarations/) | disallow variable or `function` declarations in nested blocks | :star: |

@@ -344,2 +343,11 @@ | [svelte/no-trailing-spaces](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-trailing-spaces/) | disallow trailing whitespace at the end of lines | :wrench: |

## Deprecated
- :warning: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
- :innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
| Rule ID | Replaced by |
|:--------|:------------|
| [svelte/@typescript-eslint/no-unnecessary-condition](https://ota-meshi.github.io/eslint-plugin-svelte/rules/@typescript-eslint/no-unnecessary-condition/) | This rule is no longer needed when using svelte-eslint-parser>=v0.19.0. |
<!--RULES_TABLE_END-->

@@ -346,0 +354,0 @@ <!--RULES_SECTION_END-->

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