Skip to content

Commit

Permalink
chore: release eslint-plugin-svelte (#610)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Nov 6, 2023
1 parent ef5f965 commit 17a460b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
5 changes: 0 additions & 5 deletions .changeset/happy-monkeys-grin.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slimy-jokes-reflect.md

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/no-inline-styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>

## :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.
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 17a460b

Please sign in to comment.