New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-svelte

Package Overview
Dependencies
Maintainers
0
Versions
117
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 3.0.1 to 3.0.2

2

lib/main.d.ts

@@ -17,3 +17,3 @@ import './rule-types.js';

name: "eslint-plugin-svelte";
version: "3.0.1";
version: "3.0.2";
};

@@ -20,0 +20,0 @@ export declare const processors: {

export declare const name = "eslint-plugin-svelte";
export declare const version = "3.0.1";
export declare const version = "3.0.2";

@@ -5,2 +5,2 @@ // IMPORTANT!

export const name = 'eslint-plugin-svelte';
export const version = '3.0.1';
export const version = '3.0.2';

@@ -20,2 +20,14 @@ import { createRule } from '../utils/index.js';

}
function isModuleScript(node) {
// <script context="module">
if (node.key.name === 'context' &&
node.value.some((v) => v.type === 'SvelteLiteral' && v.value === 'module')) {
return true;
}
// <script module>
if (node.key.name === 'module' && node.value.length === 0) {
return true;
}
return false;
}
export default createRule('valid-prop-names-in-kit-pages', {

@@ -47,5 +59,3 @@ meta: {

// except for <script context="module">
isScript = !node.attributes.some((a) => a.type === 'SvelteAttribute' &&
a.key.name === 'context' &&
a.value.some((v) => v.type === 'SvelteLiteral' && v.value === 'module'));
isScript = !node.attributes.some((a) => a.type === 'SvelteAttribute' && isModuleScript(a));
},

@@ -52,0 +62,0 @@ // </script>

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

@@ -5,0 +5,0 @@ "repository": "git+https://github.com/sveltejs/eslint-plugin-svelte.git",

@@ -241,3 +241,3 @@ <!--DOCS_IGNORE_START-->

This project follows [Semantic Versioning](https://semver.org/). Unlike [ESLint’s versioning policy](https://github.com/eslint/eslint#semantic-versioning-policy), new rules may be added in minor releases. If these new rules cause unwanted warnings, you can disable them.
This project follows [Semantic Versioning](https://semver.org/). Unlike [ESLint’s versioning policy](https://github.com/eslint/eslint#semantic-versioning-policy), new rules may be added to the recommended config in minor releases. If these rules cause unwanted warnings, you can disable them.

@@ -244,0 +244,0 @@ <!--DOCS_IGNORE_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