Skip to content

Commit

Permalink
0.3.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
OlehDutchenko committed May 1, 2020
1 parent 0dc240b commit 6f4424f
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .eslintrc.js
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'
]
}
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.idea/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Wezom
Copyright (c) 2020 Wezom Agency

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
26 changes: 25 additions & 1 deletion README.md
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
```
29 changes: 29 additions & 0 deletions package.json
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"
}
}

0 comments on commit 6f4424f

Please sign in to comment.