Skip to content

Commit

Permalink
0.0.7- enable forEach & await rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Aschen authored and sebtiz13 committed Jul 24, 2023
1 parent b83b661 commit ae80f2f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

4 changes: 2 additions & 2 deletions lib/configs/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
9 changes: 3 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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",
Expand Down

0 comments on commit ae80f2f

Please sign in to comment.