From 4dbe8922057896b72ee0b94171127f63c7c0fe86 Mon Sep 17 00:00:00 2001 From: ota Date: Mon, 7 Jan 2019 16:09:23 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E2=AD=90=EF=B8=8FNew:=20Add=20`vue/no-rest?= =?UTF-8?q?ricted-syntax`=20rule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #689 --- docs/rules/README.md | 1 + docs/rules/no-restricted-syntax.md | 82 +++++++++++++ lib/index.js | 1 + lib/rules/no-restricted-syntax.js | 9 ++ tests/lib/rules/no-restricted-syntax.js | 152 ++++++++++++++++++++++++ 5 files changed, 245 insertions(+) create mode 100644 docs/rules/no-restricted-syntax.md create mode 100644 lib/rules/no-restricted-syntax.js create mode 100644 tests/lib/rules/no-restricted-syntax.js diff --git a/docs/rules/README.md b/docs/rules/README.md index 103e94196..b37c250a0 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -144,6 +144,7 @@ For example: | [vue/eqeqeq](./eqeqeq.md) | require the use of `===` and `!==` | :wrench: | | [vue/key-spacing](./key-spacing.md) | enforce consistent spacing between keys and values in object literal properties | :wrench: | | [vue/match-component-file-name](./match-component-file-name.md) | require component name property to match its file name | | +| [vue/no-restricted-syntax](./no-restricted-syntax.md) | disallow specified syntax | | | [vue/object-curly-spacing](./object-curly-spacing.md) | enforce consistent spacing inside braces | :wrench: | | [vue/require-direct-export](./require-direct-export.md) | require the component to be directly exported | | | [vue/script-indent](./script-indent.md) | enforce consistent indentation in `