From 580ffa26fa533c6e2cef2330965609ca879b118d Mon Sep 17 00:00:00 2001 From: "Xin Du (Clark)" Date: Mon, 11 May 2020 10:34:33 +0100 Subject: [PATCH] fix: remove require-func-head from recommend close #93 --- README.md | 5 +++++ docs/rules/require-func-head.md | 2 -- lib/configs/recommended.js | 3 +-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0434e3b..762633b 100644 --- a/README.md +++ b/README.md @@ -103,4 +103,9 @@ Include all the below rules, as well as all priority rules in above categories, | | Rule ID | Description | |:---|:--------|:------------| | | [nuxt/no-timing-in-fetch-data](./docs/rules/no-timing-in-fetch-data.md) | Disallow `setTimeout/setInterval` in `asyncData/fetch` | + +### Other Rules + +| | Rule ID | Description | +|:---|:--------|:------------| | | [nuxt/require-func-head](./docs/rules/require-func-head.md) | Enforce `head` property in component to be a function. | diff --git a/docs/rules/require-func-head.md b/docs/rules/require-func-head.md index 005fbf0..013a19b 100644 --- a/docs/rules/require-func-head.md +++ b/docs/rules/require-func-head.md @@ -2,8 +2,6 @@ > enforce `head` property in component to be a function. -- :gear: This rule is included in `"plugin:nuxt/recommended"`. - ## Rule Details This rule is enforcing `head` property in component to be a function. diff --git a/lib/configs/recommended.js b/lib/configs/recommended.js index 4d1b137..2de652d 100644 --- a/lib/configs/recommended.js +++ b/lib/configs/recommended.js @@ -1,7 +1,6 @@ module.exports = { extends: require.resolve('./base.js'), rules: { - 'nuxt/no-timing-in-fetch-data': 'error', - 'nuxt/require-func-head': 'error' + 'nuxt/no-timing-in-fetch-data': 'error' } }