Skip to content

Commit

Permalink
9.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Jan 10, 2024
1 parent 895fc9c commit 4eecc5e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
7 changes: 5 additions & 2 deletions docs/rules/enforce-style-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/enforce-style-attribute
description: enforce or forbid the use of the `scoped` and `module` attributes in SFC top level style tags
since: v9.20.0
---
# vue/enforce-style-attribute

> enforce or forbid the use of the `scoped` and `module` attributes in SFC top level style tags
- :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 allows you to explicitly allow the use of the `scoped` and `module` attributes on your top level style tags.
Expand Down Expand Up @@ -79,6 +78,10 @@ This rule allows you to explicitly allow the use of the `scoped` and `module` at

- `"allow"` (`["scoped" | "module" | "plain"]`) Array of attributes to allow on a top level style tag. The option `plain` is used to allow style tags that have neither the `scoped` nor `module` attributes. Default: `["scoped"]`

## :rocket: Version

This rule was introduced in eslint-plugin-vue v9.20.0

## :mag: Implementation

- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/enforce-style-attribute.js)
Expand Down
16 changes: 12 additions & 4 deletions lib/utils/vue3-export-names.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"getTransitionRawChildren",
"Renderer",
"HydrationRenderer",
"ElementNamespace",
"RootRenderFunction",
"RendererOptions",
"RendererNode",
Expand Down Expand Up @@ -120,7 +121,6 @@
"Directive",
"DirectiveArguments",
"withDirectives",
"DeprecationTypes",
"ComponentCustomOptions",
"RenderFunction",
"ComponentOptionsBase",
Expand All @@ -138,12 +138,15 @@
"provide",
"inject",
"hasInjectionContext",
"PublicProps",
"DefineComponent",
"defineComponent",
"App",
"OptionMergeFunction",
"AppConfig",
"AppContext",
"ObjectPlugin",
"FunctionPlugin",
"Plugin",
"CreateAppFunction",
"TeleportProps",
Expand Down Expand Up @@ -176,6 +179,7 @@
"createStaticVNode",
"createCommentVNode",
"mergeProps",
"ComponentInstance",
"ComponentCustomProps",
"AllowedComponentProps",
"FunctionalComponent",
Expand All @@ -200,10 +204,12 @@
"AsyncComponentOptions",
"defineAsyncComponent",
"defineProps",
"DefineProps",
"defineEmits",
"defineExpose",
"defineOptions",
"defineSlots",
"ModelRef",
"defineModel",
"withDefaults",
"useSlots",
Expand All @@ -212,14 +218,11 @@
"h",
"ssrContextKey",
"useSSRContext",
"warn",
"ErrorCodes",
"callWithErrorHandling",
"callWithAsyncErrorHandling",
"handleError",
"initCustomFormatter",
"devtools",
"setDevtoolsHook",
"HMRRuntime",
"pushScopeId",
"popScopeId",
Expand All @@ -234,6 +237,10 @@
"LegacyConfig",
"CompatVue",
"version",
"warn",
"devtools",
"setDevtoolsHook",
"DeprecationTypes",
"createElementVNode",
"VueElementConstructor",
"defineCustomElement",
Expand All @@ -254,6 +261,7 @@
"withKeys",
"vShow",
"CSSProperties",
"AriaAttributes",
"StyleValue",
"HTMLAttributes",
"AnchorHTMLAttributes",
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-vue",
"version": "9.19.2",
"version": "9.20.0",
"description": "Official ESLint plugin for Vue.js",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 4eecc5e

Please sign in to comment.