From c015639556c6c92c3e341b43c1dcfe5116fccd35 Mon Sep 17 00:00:00 2001 From: Eliott Vincent Date: Thu, 25 Apr 2024 17:29:24 +0200 Subject: [PATCH] v1.0.77 New rule --- README.md | 1 + package-lock.json | 2 +- package.json | 2 +- recommended-vue.js | 1 + recommended.js | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 833fb9a..82c0227 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ Each item has emojis denoting: | [indent](https://eslint.org/docs/latest/rules/indent) | Enforces 2-space indentation, and specific indentation levels for some nodes | 🟠 | 🟢 | | [for-direction](https://eslint.org/docs/latest/rules/for-direction) | Prevents for-loops to have stop condition that can never be reached | 🟠 | 🟢 | | [key-spacing](https://eslint.org/docs/latest/rules/key-spacing) | Enforces consistent spacing in object literal properties (no space between the key and the colon, one space between the colon and the value) | | 🟢 | +| [keyword-spacing](https://eslint.org/docs/latest/rules/keyword-spacing) | Enforces consistent spacing before and after keywords | 🟠 | 🟢 | | [linebreak-style](https://eslint.org/docs/latest/rules/linebreak-style) | Enforces Unix-style line endings | 🟠 | 🟢 | | [max-len](https://eslint.org/docs/latest/rules/max-len) | Enforces a maximum line length of 80 characters | 🟠 | | [newline-per-chained-call](https://eslint.org/docs/latest/rules/newline-per-chained-call) | Requires a newline after each call in a method chain | | 🟢 | diff --git a/package-lock.json b/package-lock.json index b220f52..25a0be3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-crisp", - "version": "1.0.76", + "version": "1.0.77", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index b03e5d4..dfd903b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-crisp", - "version": "1.0.76", + "version": "1.0.77", "description": "Custom ESLint Rules for Crisp", "author": "Crisp IM SAS", "main": "index.js", diff --git a/recommended-vue.js b/recommended-vue.js index 77cee36..28617cb 100644 --- a/recommended-vue.js +++ b/recommended-vue.js @@ -76,6 +76,7 @@ module.exports = { } ], "key-spacing": ["error", { "beforeColon": false, "afterColon": true }], + "keyword-spacing": "error", "linebreak-style": ["error", "unix"], "newline-per-chained-call": "error", "no-console": "warn", diff --git a/recommended.js b/recommended.js index a0a8e41..cc0f33f 100644 --- a/recommended.js +++ b/recommended.js @@ -77,6 +77,7 @@ module.exports = { ] } ], + "keyword-spacing": "error", "linebreak-style": ["error", "unix"], "max-len": ["error", 80], "no-console": "warn",