Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit e255ec8

Browse files
committed
feat(typescript): add new eslint-plugin-typescript rules
1 parent 098534e commit e255ec8

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

packages/eslint-config-typescript/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ module.exports = {
6161
// https://github.com/nzakas/eslint-plugin-typescript
6262
'typescript/adjacent-overload-signatures': 'error',
6363
'typescript/class-name-casing': 'error',
64+
'typescript/explicit-function-return-type': 'off',
6465
'typescript/explicit-member-accessibility': 'error',
6566
'typescript/interface-name-prefix': 'error',
6667
'typescript/member-delimiter-style': 'off',
@@ -71,6 +72,7 @@ module.exports = {
7172
'typescript/no-empty-interface': 'error',
7273
'typescript/no-explicit-any': 'off',
7374
'typescript/no-namespace': ['error', {allowDefinitionFiles: true}],
75+
'typescript/no-non-null-assertion': 'off',
7476
'typescript/no-parameter-properties': 'off',
7577
'typescript/no-triple-slash-reference': 'error',
7678
'typescript/no-type-alias': 'off',

yarn.lock

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@
99
"@commitlint/config-conventional" "^6.0.4"
1010
lodash.merge "^4.6.0"
1111

12+
"@anvilabs/eslint-config@file:./packages/eslint-config":
13+
version "0.0.0-development"
14+
dependencies:
15+
babel-eslint "^8.2.2"
16+
eslint-config-airbnb-base "^12.1.0"
17+
eslint-config-prettier "^2.9.0"
18+
eslint-import-resolver-babel-module "^4.0.0"
19+
eslint-plugin-babel "^4.1.2"
20+
eslint-plugin-codebox "^2.0.2"
21+
eslint-plugin-eslint-comments "^2.0.2"
22+
eslint-plugin-flowtype "^2.46.1"
23+
eslint-plugin-import "2.8.0"
24+
eslint-plugin-jest "^21.15.0"
25+
eslint-plugin-lodash-fp "^2.1.3"
26+
eslint-plugin-no-use-extend-native "^0.3.12"
27+
eslint-plugin-prettier "^2.6.0"
28+
eslint-plugin-promise "^3.7.0"
29+
eslint-plugin-unicorn "^4.0.2"
30+
1231
"@babel/code-frame@7.0.0-beta.42", "@babel/code-frame@^7.0.0-beta.35", "@babel/code-frame@^7.0.0-beta.40":
1332
version "7.0.0-beta.42"
1433
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.42.tgz#a9c83233fa7cd06b39dc77adbb908616ff4f1962"

0 commit comments

Comments
 (0)