From d21fd0268e8f43fcd42fcd2c0208b9cfd36b5fe5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 6 Nov 2023 14:02:11 +0000 Subject: [PATCH] chore: release eslint-plugin-svelte --- .changeset/happy-monkeys-grin.md | 5 ----- .changeset/slimy-jokes-reflect.md | 5 ----- CHANGELOG.md | 8 ++++++++ docs/rules/no-inline-styles.md | 7 +++++-- package.json | 2 +- src/meta.ts | 2 +- 6 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 .changeset/happy-monkeys-grin.md delete mode 100644 .changeset/slimy-jokes-reflect.md diff --git a/.changeset/happy-monkeys-grin.md b/.changeset/happy-monkeys-grin.md deleted file mode 100644 index 883c87397..000000000 --- a/.changeset/happy-monkeys-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'eslint-plugin-svelte': minor ---- - -feat: added the no-inline-styles rule diff --git a/.changeset/slimy-jokes-reflect.md b/.changeset/slimy-jokes-reflect.md deleted file mode 100644 index 6059a1c90..000000000 --- a/.changeset/slimy-jokes-reflect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"eslint-plugin-svelte": minor ---- - -feat: use eslint-compat-utils diff --git a/CHANGELOG.md b/CHANGELOG.md index 989ceb183..c84d8f2ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # eslint-plugin-svelte +## 2.35.0 + +### Minor Changes + +- [#608](https://github.com/sveltejs/eslint-plugin-svelte/pull/608) [`ff28fd3`](https://github.com/sveltejs/eslint-plugin-svelte/commit/ff28fd328254a0b7327078a878c9486f4db1b7c8) Thanks [@marekdedic](https://github.com/marekdedic)! - feat: added the no-inline-styles rule + +- [#605](https://github.com/sveltejs/eslint-plugin-svelte/pull/605) [`ef5f965`](https://github.com/sveltejs/eslint-plugin-svelte/commit/ef5f965024935c9bf6224450243223066789501e) Thanks [@ota-meshi](https://github.com/ota-meshi)! - feat: use eslint-compat-utils + ## 2.34.1 ### Patch Changes diff --git a/docs/rules/no-inline-styles.md b/docs/rules/no-inline-styles.md index 8d20e1ab5..8a1064ab9 100644 --- a/docs/rules/no-inline-styles.md +++ b/docs/rules/no-inline-styles.md @@ -3,14 +3,13 @@ pageClass: 'rule-details' sidebarDepth: 0 title: 'svelte/no-inline-styles' description: 'disallow attributes and directives that produce inline styles' +since: 'v2.35.0' --- # svelte/no-inline-styles > disallow attributes and directives that produce inline styles -- :exclamation: **_This rule has not been released yet._** - ## :book: Rule Details This rule reports all attributes and directives that would compile to inline styles. This is mainly useful when adding Content Security Policy to your app, as having inline styles requires the `style-src: 'unsafe-inline'` directive, which is generally discouraged and unsafe. @@ -63,6 +62,10 @@ This rule reports all attributes and directives that would compile to inline sty - [CSP documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) +## :rocket: Version + +This rule was introduced in eslint-plugin-svelte v2.35.0 + ## :mag: Implementation - [Rule source](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/src/rules/no-inline-styles.ts) diff --git a/package.json b/package.json index 031e89143..b56140b3f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-svelte", - "version": "2.34.1", + "version": "2.35.0", "description": "ESLint plugin for Svelte using AST", "repository": "git+https://github.com/sveltejs/eslint-plugin-svelte.git", "homepage": "https://sveltejs.github.io/eslint-plugin-svelte", diff --git a/src/meta.ts b/src/meta.ts index a909d1b32..7521a1cc2 100644 --- a/src/meta.ts +++ b/src/meta.ts @@ -2,4 +2,4 @@ // This file has been automatically generated, // in order to update its content execute "pnpm run update" export const name = 'eslint-plugin-svelte' as const; -export const version = '2.34.1' as const; +export const version = '2.35.0' as const;