mirror of
https://github.com/desktop/desktop
synced 2024-10-04 07:09:26 +00:00
update rules to use renamed plugin
This commit is contained in:
parent
5de3f87394
commit
fb631ec299
|
@ -1,7 +1,7 @@
|
|||
root: true
|
||||
parser: '@typescript-eslint/parser'
|
||||
plugins:
|
||||
- typescript
|
||||
- '@typescript-eslint'
|
||||
- babel
|
||||
- react
|
||||
- json
|
||||
|
@ -20,23 +20,23 @@ rules:
|
|||
# PLUGINS #
|
||||
###########
|
||||
# TYPESCRIPT
|
||||
typescript/interface-name-prefix:
|
||||
'@typescript-eslint/interface-name-prefix':
|
||||
- error
|
||||
- always
|
||||
typescript/no-angle-bracket-type-assertion: error
|
||||
typescript/explicit-member-accessibility: error
|
||||
typescript/no-unused-vars: error
|
||||
typescript/no-use-before-define:
|
||||
'@typescript-eslint/no-angle-bracket-type-assertion': error
|
||||
'@typescript-eslint/explicit-member-accessibility': error
|
||||
'@typescript-eslint/no-unused-vars':
|
||||
- error
|
||||
- args: 'none'
|
||||
'@typescript-eslint/no-use-before-define':
|
||||
- error
|
||||
- functions: false
|
||||
variables: false
|
||||
typedefs: false
|
||||
## blocked by https://github.com/nzakas/eslint-plugin-typescript/pull/23
|
||||
# typescript/member-ordering: error
|
||||
##
|
||||
## blocked by https://github.com/nzakas/eslint-plugin-typescript/issues/41
|
||||
# typescript/type-annotation-spacing: error
|
||||
##
|
||||
|
||||
'@typescript-eslint/type-annotation-spacing': error
|
||||
|
||||
# Babel
|
||||
babel/no-invalid-this: error
|
||||
|
@ -48,6 +48,8 @@ rules:
|
|||
react/jsx-key: error
|
||||
react/jsx-no-bind: error
|
||||
react/no-string-refs: error
|
||||
react/jsx-uses-vars: error
|
||||
react/jsx-uses-react: error
|
||||
|
||||
###########
|
||||
# BUILTIN #
|
||||
|
|
Loading…
Reference in a new issue