mirror of
https://github.com/elyby/eslint-plugin.git
synced 2025-05-31 14:11:45 +05:30
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
dfc70896ee | ||
|
ac7d5b9a51 | ||
|
2aa883804e | ||
|
25487e855d | ||
|
a6667fb421 | ||
|
4ba3f330a2 |
@@ -1,6 +1,7 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
'plugin:@elyby/config',
|
||||
'plugin:@elyby/base',
|
||||
'plugin:@elyby/typescript',
|
||||
],
|
||||
|
||||
env: {
|
||||
|
@@ -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"
|
||||
]
|
||||
}
|
||||
|
16
package.json
16
package.json
@@ -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"
|
||||
}
|
||||
}
|
||||
|
@@ -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',
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user