-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0dc240b
commit 6f4424f
Showing
5 changed files
with
99 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2019 | ||
}, | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended' | ||
], | ||
rules: { | ||
'@typescript-eslint/camelcase': 0, | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/interface-name-prefix': [ 2, 'always' ], | ||
'@typescript-eslint/generic-type-naming': [ 2, '^G([A-Z][a-zA-Z]*)?$' ], | ||
'@typescript-eslint/no-empty-interface': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
'@typescript-eslint/no-unused-vars': [ | ||
2, | ||
{ | ||
'vars': 'all', | ||
'args': 'none', | ||
'caughtErrors': 'all' | ||
} | ||
], | ||
'indent': [ | ||
'error', | ||
'tab', | ||
{ | ||
'SwitchCase': 1 | ||
} | ||
], | ||
'no-extra-boolean-cast': 0, | ||
'no-sequences': 2, | ||
'no-tabs': 0, | ||
'no-unused-vars': 0, | ||
'semi': [ | ||
'error', | ||
'always' | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# eslint-config-wezom-relax-ts | ||
An ESLint shareable config for Typescript | ||
|
||
[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/WezomAgency/eslint-config-wezom-relax-ts/blob/master/LICENSE) | ||
[![npm](https://img.shields.io/badge/npm-install-orange.svg)](https://www.npmjs.com/package/eslint-config-wezom-relax-ts) | ||
[![WezomAgency](https://img.shields.io/badge/wezom-agency-red.svg)](https://github.com/WezomAgency) | ||
|
||
|
||
> An ESLint [Shareable Config](http://eslint.org/docs/developer-guide/shareable-configs) for Typescript | ||
## The package is in the Alpha version | ||
|
||
> __This package is not stable yet!__ | ||
> __So do not use it in production!__ | ||
> __Rules can be changed!__ | ||
## Install config | ||
|
||
```bash | ||
npm i -D eslint-config-wezom-relax-ts | ||
``` | ||
|
||
## Install peerDependencies | ||
|
||
```bash | ||
npm i -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-flowtype eslint-plugin-import | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "eslint-config-wezom-relax-ts", | ||
"version": "0.3.0-alpha", | ||
"description": "An ESLint shareable config for Typescript", | ||
"main": ".eslintrc.js", | ||
"files": [ | ||
".eslintrc.js" | ||
], | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/WezomAgency/eslint-config-wezom-relax-ts.git" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/WezomAgency/eslint-config-wezom-relax-ts/issues" | ||
}, | ||
"homepage": "https://github.com/WezomAgency/eslint-config-wezom-relax-ts#readme", | ||
"peerDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^2.25.0", | ||
"@typescript-eslint/parser": "^2.25.0", | ||
"eslint-plugin-flowtype": "^4.7.0", | ||
"eslint-plugin-import": "^2.20.1" | ||
} | ||
} |