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/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 6a00fc5..15ff463 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.1-beta", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 24a3272..72149f6 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.1-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",