From ae80f2ff35fdaf1f1e1a5acfd6c791ac956b06ea Mon Sep 17 00:00:00 2001 From: Aschen Date: Wed, 2 Nov 2022 17:07:02 +0100 Subject: [PATCH] 0.0.7- enable forEach & await rules --- README.md | 3 +-- lib/configs/default.js | 4 ++-- package-lock.json | 9 +++------ package.json | 5 ++++- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 64261f4..74b2991 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Kuzzle Coding Standard 1) Install the plugin ```sh -npm i eslint prettier eslint-plugin-kuzzle --save dev +npm i eslint-plugin-kuzzle --save dev ``` 2) Add `kuzzle` to the plugins section of your `.eslintrc` configuration file and select the default rule set: @@ -39,4 +39,3 @@ npx prettier lib/ test/ features/ --write - `plugin:kuzzle/default`: default rules between all javascript projects - `plugin:kuzzle/node`: rules for Node.js projects - `plugin:kuzzle/typescript`: rules for Typescript projects - diff --git a/lib/configs/default.js b/lib/configs/default.js index b6fc206..81c0185 100644 --- a/lib/configs/default.js +++ b/lib/configs/default.js @@ -54,10 +54,10 @@ module.exports = { "keyword-spacing": ["error", { before: true, after: true }], "object-curly-spacing": ["error", "always"], "comma-spacing": 2, - // "no-return-await": 2, + "no-return-await": 2, // Plugins custom rules - // 'kuzzle/array-foreach': 2, + 'kuzzle/array-foreach': 2, "prettier/prettier": "error", }, plugins: ["prettier"], diff --git a/package-lock.json b/package-lock.json index bcc16c5..79b16a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "eslint-plugin-kuzzle", - "version": "0.0.6", + "version": "0.0.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "eslint-plugin-kuzzle", - "version": "0.0.6", - "license": "ISC", + "version": "0.0.7", + "license": "Apache 2", "dependencies": { "@typescript-eslint/eslint-plugin": "^5.38.0", "@typescript-eslint/parser": "^5.38.0", @@ -18,9 +18,6 @@ "devDependencies": { "eslint-plugin-eslint-plugin": "^5.0.6", "mocha": "^10.0.0" - }, - "engines": { - "node": "14.x || >= 16" } }, "node_modules/@eslint/eslintrc": { diff --git a/package.json b/package.json index 55b87f8..7226c70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-kuzzle", - "version": "0.0.6", + "version": "0.0.7", "description": "Kuzzle Coding Standard", "homepage": "https://github.com/kuzzleio/eslint-plugin-kuzzle", "keywords": [ @@ -14,6 +14,9 @@ "lint": "eslint .", "test": "mocha tests --recursive" }, + "bin": { + "eslint": "./bin/eslint" + }, "dependencies": { "@typescript-eslint/eslint-plugin": "^5.38.0", "@typescript-eslint/parser": "^5.38.0",