Skip to content

Commit

Permalink
7.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Jul 6, 2021
1 parent 3cda46b commit 0ee61cc
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
7 changes: 5 additions & 2 deletions docs/rules/no-export-in-script-setup.md
Expand Up @@ -3,13 +3,12 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/no-export-in-script-setup
description: disallow `export` in `<script setup>`
since: v7.13.0
---
# vue/no-export-in-script-setup

> disallow `export` in `<script setup>`
- :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 warns ES module exports in `<script setup>`.
Expand Down Expand Up @@ -49,6 +48,10 @@ Nothing.

[Vue RFCs - 0040-script-setup]: https://github.com/vuejs/rfcs/blob/master/active-rfcs/0040-script-setup.md

## :rocket: Version

This rule was introduced in eslint-plugin-vue v7.13.0

## :mag: Implementation

- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-export-in-script-setup.js)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/script-setup-uses-vars.md
Expand Up @@ -3,12 +3,12 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/script-setup-uses-vars
description: prevent `<script setup>` variables used in `<template>` to be marked as unused
since: v7.13.0
---
# vue/script-setup-uses-vars

> prevent `<script setup>` variables used in `<template>` to be marked as unused
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
- :gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-essential"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/recommended"` and `"plugin:vue/vue3-recommended"`.

ESLint `no-unused-vars` rule does not detect variables in `<script setup>` used in `<template>`.
Expand Down Expand Up @@ -58,6 +58,10 @@ If you are not using `<script setup>` or if you do not use the `no-unused-vars`

- [Vue RFCs - 0040-script-setup](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0040-script-setup.md)

## :rocket: Version

This rule was introduced in eslint-plugin-vue v7.13.0

## :mag: Implementation

- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/script-setup-uses-vars.js)
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/valid-define-emits.md
Expand Up @@ -3,13 +3,12 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/valid-define-emits
description: enforce valid `defineEmits` compiler macro
since: v7.13.0
---
# vue/valid-define-emits

> enforce valid `defineEmits` compiler macro
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>

This rule checks whether `defineEmits` compiler macro is valid.

## :book: Rule Details
Expand Down Expand Up @@ -127,6 +126,10 @@ This rule reports `defineEmits` compiler macros in the following cases:

Nothing.

## :rocket: Version

This rule was introduced in eslint-plugin-vue v7.13.0

## :mag: Implementation

- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/valid-define-emits.js)
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/valid-define-props.md
Expand Up @@ -3,13 +3,12 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/valid-define-props
description: enforce valid `defineProps` compiler macro
since: v7.13.0
---
# vue/valid-define-props

> enforce valid `defineProps` compiler macro
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>

This rule checks whether `defineProps` compiler macro is valid.

## :book: Rule Details
Expand Down Expand Up @@ -127,6 +126,10 @@ This rule reports `defineProps` compiler macros in the following cases:

Nothing.

## :rocket: Version

This rule was introduced in eslint-plugin-vue v7.13.0

## :mag: Implementation

- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/valid-define-props.js)
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-vue",
"version": "7.12.1",
"version": "7.13.0",
"description": "Official ESLint plugin for Vue.js",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 0ee61cc

Please sign in to comment.