From a61dc50cad8073d29f28cf17a78896961ffae08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D1=83=D1=82=D1=87=D0=B5=D0=BD=D0=BA=D0=BE=20=D0=9E?= =?UTF-8?q?=D0=BB=D0=B5=D0=B3?= Date: Thu, 17 Sep 2020 21:57:01 +0300 Subject: [PATCH 1/2] 1.2.0-beta. Extend @typescript-eslint/naming-convention rule --- .eslintrc.js | 6 +++++- package-lock.json | 2 +- package.json | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 55a6fcb..b884897 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -93,7 +93,11 @@ module.exports = { }, { selector: 'enum', - format: ['PascalCase'] + format: ['PascalCase'], + custom: { + regex: '[a-z]List$', + match: true + } } ], '@typescript-eslint/no-empty-interface': 0, diff --git a/package-lock.json b/package-lock.json index 6a00fc5..15e7234 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "eslint-config-wezom-relax-ts", - "version": "1.1.0-beta", + "version": "1.2.0-beta", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 24a3272..3a27e4c 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "name": "eslint-config-wezom-relax-ts", - "version": "1.1.0-beta", + "version": "1.2.0-beta", "description": "An ESLint shareable config for Typescript", "main": ".eslintrc.js", "files": [ ".eslintrc.js" ], "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "prettier": ".eslintrc.js --check --write" }, "repository": { "type": "git", From c08cbcd109c05a5009e8a7ae392e8879f56e1419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D1=83=D1=82=D1=87=D0=B5=D0=BD=D0=BA=D0=BE=20=D0=9E?= =?UTF-8?q?=D0=BB=D0=B5=D0=B3?= Date: Thu, 17 Sep 2020 22:19:40 +0300 Subject: [PATCH 2/2] 1.2.1-beta. Update README description --- README.md | 5 +++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 227c803..7ae3211 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,8 @@ npm i -D eslint-config-wezom-relax-ts ```bash npm i -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-flowtype eslint-plugin-import ``` + +## Rules + +ESLint configuration and list of rules can be viewed in the source file [.eslintrc.js file](https://github.com/WezomAgency/eslint-config-wezom-relax-ts/blob/master/.eslintrc.js). +Detailed description each of rule see on [`@typescript-eslint/typescript-eslint` docs](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin/docs). diff --git a/package-lock.json b/package-lock.json index 15e7234..15ff463 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "eslint-config-wezom-relax-ts", - "version": "1.2.0-beta", + "version": "1.2.1-beta", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3a27e4c..72149f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-wezom-relax-ts", - "version": "1.2.0-beta", + "version": "1.2.1-beta", "description": "An ESLint shareable config for Typescript", "main": ".eslintrc.js", "files": [