6 Commits

Author SHA1 Message Date
ErickSkrauch
dfc70896ee Bump version 2019-12-16 14:53:04 +03:00
ErickSkrauch
ac7d5b9a51 Merge pull request #1 from elyby/dependabot/npm_and_yarn/eslint-utils-1.4.3
Bump eslint-utils from 1.3.1 to 1.4.3
2019-12-16 14:16:02 +03:00
dependabot[bot]
2aa883804e Bump eslint-utils from 1.3.1 to 1.4.3
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.3.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-16 11:14:02 +00:00
ErickSkrauch
25487e855d Fix lint 2019-12-16 14:13:21 +03:00
ErickSkrauch
a6667fb421 Upgrade configuration to be compatible with eslint 6 and latest changes in the eslint-typescript 2019-12-16 13:59:31 +03:00
ErickSkrauch
4ba3f330a2 Fix base config name in the README 2019-06-03 14:16:46 +03:00
5 changed files with 1356 additions and 1612 deletions

View File

@@ -1,6 +1,7 @@
module.exports = {
extends: [
'plugin:@elyby/config',
'plugin:@elyby/base',
'plugin:@elyby/typescript',
],
env: {

View File

@@ -24,7 +24,7 @@ simply add the `plugin:@elyby/base` configuration to the `extends` block:
```json
{
"extends": [
"plugin:@elyby/config"
"plugin:@elyby/base"
]
}
```
@@ -45,7 +45,7 @@ Then add the `plugin:@elyby/react` configuration to the `extends` block:
```json
{
"extends": [
"plugin:@elyby/config",
"plugin:@elyby/base",
"plugin:@elyby/react"
]
}
@@ -67,7 +67,7 @@ Then add the `plugin:@elyby/react` configuration to the `extends` block:
```json
{
"extends": [
"plugin:@elyby/config",
"plugin:@elyby/base",
"plugin:@elyby/typescript"
]
}

View File

@@ -1,6 +1,6 @@
{
"name": "@elyby/eslint-plugin",
"version": "0.2.0",
"version": "0.3.0",
"description": "Shareable ESLint config for the Ely.by's projects",
"author": {
"name": "erickskrauch",
@@ -30,19 +30,21 @@
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.4",
"@babel/preset-typescript": "^7.3.3",
"@elyby/eslint-plugin": "^0.1.0",
"@elyby/eslint-plugin": "^0.2.0",
"@types/eslint": "^4.16.6",
"@types/estree": "^0.0.39",
"@types/estree": "^0.0.40",
"@types/node": "^12.0.2",
"@typescript-eslint/eslint-plugin": "^1.9.1",
"@typescript-eslint/parser": "^1.9.0",
"eslint": "^5.16.0",
"jest": "^24.8.0",
"typescript": "^3.4.5"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "^1.9.1-alpha.12",
"@typescript-eslint/parser": "^1.9.0",
"eslint": ">=5.16.0",
"@typescript-eslint/eslint-plugin": "^2.11.0",
"@typescript-eslint/parser": "^2.11.0",
"eslint": "^6.0.0",
"eslint-plugin-react": "^7.13.0",
"eslint-plugin-react-hooks": "^1.6.0"
"eslint-plugin-react-hooks": "^1.6.0 | ^2.0.0"
}
}

View File

@@ -5,7 +5,7 @@ const config: Linter.Config = {
// @ts-ignore
plugins: [
'@typescript-eslint',
'@typescript-eslint/eslint-plugin',
],
overrides: [
@@ -24,35 +24,39 @@ const config: Linter.Config = {
'react/prop-types': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': ['error', 'generic'],
'@typescript-eslint/array-type': ['error', {
default: 'generic',
readonly: 'generic',
}],
'@typescript-eslint/camelcase': 'error',
'@typescript-eslint/class-name-casing': 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/explicit-member-accessibility': 'error',
'@typescript-eslint/func-call-spacing': 'error',
'@typescript-eslint/indent': 'error',
'@typescript-eslint/interface-name-prefix': ['error', 'never'],
'@typescript-eslint/member-delimiter-style': 'error',
'@typescript-eslint/no-angle-bracket-type-assertion': 'error',
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-extra-parens': ['warn', 'all', {
nestedBinaryExpressions: false,
ignoreJSX: 'multi-line',
}],
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-inferrable-types': ['error', {
ignoreParameters: true,
}],
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-object-literal-type-assertion': 'error',
'@typescript-eslint/no-parameter-properties': 'error',
'@typescript-eslint/no-triple-slash-reference': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/no-useless-constructor': 'warn',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-for-of': 'warn',
'@typescript-eslint/prefer-interface': 'error',
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/semi': 'error',
'@typescript-eslint/triple-slash-reference': 'error',
'@typescript-eslint/type-annotation-spacing': 'error',
},
},

2925
yarn.lock

File diff suppressed because it is too large Load Diff