From 49216ad3ed16304e75e92d11b5951acb80828554 Mon Sep 17 00:00:00 2001 From: waynzh Date: Fri, 22 Nov 2024 23:59:37 +0800 Subject: [PATCH 1/4] feat: add slot-name-casing rule --- docs/rules/index.md | 1 + docs/rules/slot-name-casing.md | 88 +++++++++++++++++ lib/index.js | 1 + lib/rules/slot-name-casing.js | 82 ++++++++++++++++ tests/lib/rules/slot-name-casing.js | 143 ++++++++++++++++++++++++++++ 5 files changed, 315 insertions(+) create mode 100644 docs/rules/slot-name-casing.md create mode 100644 lib/rules/slot-name-casing.js create mode 100644 tests/lib/rules/slot-name-casing.js diff --git a/docs/rules/index.md b/docs/rules/index.md index d280011f1..63b6a35f6 100644 --- a/docs/rules/index.md +++ b/docs/rules/index.md @@ -283,6 +283,7 @@ For example: | [vue/require-typed-ref](./require-typed-ref.md) | require `ref` and `shallowRef` functions to be strongly typed | | :hammer: | | [vue/restricted-component-names](./restricted-component-names.md) | enforce using only specific in component names | | :warning: | | [vue/script-indent](./script-indent.md) | enforce consistent indentation in `