Skip to content

Commit

Permalink
config(deps): updated the dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fenying committed Dec 14, 2020
1 parent 6cd0486 commit adc795e
Show file tree
Hide file tree
Showing 25 changed files with 1,434 additions and 1,371 deletions.
124 changes: 101 additions & 23 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"brace-style": "off",
"@typescript-eslint/brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"camelcase": "off",
"@typescript-eslint/camelcase": ["error", {
"properties": "always",
"genericType": "always",
"ignoreDestructuring": false
}],
"@typescript-eslint/ban-types": ["error", {
"types": {

Expand Down Expand Up @@ -69,7 +64,6 @@
"@typescript-eslint/prefer-regexp-exec": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/no-extra-parens": "off",
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/no-extra-non-null-assertion": "error",
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/no-for-in-array": "error",
Expand All @@ -85,11 +79,7 @@
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"func-call-spacing": "off",
"@typescript-eslint/func-call-spacing": ["error", "never"],
"@typescript-eslint/no-namespace": ["error", {

"allowDeclarations": true,
"allowDefinitionFiles": true
}],
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/consistent-type-assertions": ["error", {
"assertionStyle": "as"
}],
Expand All @@ -101,6 +91,7 @@
"caughtErrors": "all"
}],
"no-unused-expressions": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-unused-expressions": ["error"],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": ["error"],
Expand All @@ -109,16 +100,14 @@
"@typescript-eslint/comma-spacing": ["error"],
"@typescript-eslint/unified-signatures": ["error"],
"semi": "off",
"prefer-const": "off",
"@typescript-eslint/semi": ["error"],
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unnecessary-type-assertion": ["error"],
"@typescript-eslint/no-unnecessary-type-arguments": ["error"],
"@typescript-eslint/unbound-method": ["error"],
"@typescript-eslint/type-annotation-spacing": ["error"],
"@typescript-eslint/no-unnecessary-condition": ["off"],
"@typescript-eslint/no-magic-numbers": ["off", {
"ignoreEnums": true
}],
"@typescript-eslint/no-unnecessary-boolean-literal-compare": ["warn"],
"@typescript-eslint/member-ordering": ["off"],
"@typescript-eslint/no-this-alias": [
Expand All @@ -128,10 +117,6 @@
"allowedNames": ["_this"]
}
],
"@typescript-eslint/member-naming": ["error", {
"private": "^_",
"protected": "^_"
}],
"@typescript-eslint/no-explicit-any": ["off", {
"fixToUnknown": true,
"ignoreRestArgs": true
Expand All @@ -152,10 +137,103 @@
"requireLast": true
}
}],
"@typescript-eslint/interface-name-prefix": ["warn", {
"prefixWithI": "always",
"allowUnderscorePrefix": false
}],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase"],
"leadingUnderscore": "forbid"
},
{
"selector": "parameter",
"format": ["camelCase"]
},
{
"selector": "property",
"format": ["snake_case"],
"filter": {
// you can expand this regex to add more allowed names
"regex": "^(target_id|target_type|payer_account|date_type|date_start|date_end|page_type|max_id|min_id|sort_order|sort_by|filter_by|filter_id|http_status_code|http_status_msg|redirect_uri|expires_in|input_token|access_token|refresh_token|grant_type|token_type|client_id|client_secret)$",
"match": true
}
},
{
"selector": "property",
"format": ["snake_case", "camelCase"],
"filter": {
// you can expand this regex as you find more cases that require quoting that you want to allow
"regex": "\\?$",
"match": true
}
},
{
"selector": "memberLike",
"modifiers": ["private"],
"format": ["camelCase"],
"leadingUnderscore": "require"
},
{
"selector": "memberLike",
"modifiers": ["protected"],
"format": ["camelCase"],
"leadingUnderscore": "require"
},
{
"selector": "memberLike",
"modifiers": ["private", "static"],
"format": [],
"custom": {
"regex": "^_\\$[^_]",
"match": true
}
},
{
"selector": "memberLike",
"modifiers": ["protected", "static"],
"format": [],
"custom": {
"regex": "^_\\$[^_]",
"match": true
}
},
{
"selector": "enumMember",
"format": ["UPPER_CASE"]
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"]
},
{
"selector": "typeParameter",
"format": ["PascalCase"],
"prefix": ["T"]
},
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
},
{
"selector": "class",
"format": ["PascalCase"]
},
{
"selector": "enum",
"format": ["PascalCase"],
"custom": {
"regex": "^E[A-Z]",
"match": true
}
},
{
"selector": "typeAlias",
"format": ["PascalCase"]
}
],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"no-multiple-empty-lines": ["error", {"max": 1, "maxEOF": 0, "maxBOF": 0}],
"no-trailing-spaces": "error",
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes Logs

## v0.3.3

- config(deps): updated the dependencies.

## v0.3.2

- feat(client): allow customized API name wrapper.
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
'encoder',
'decoder',
'router',
'deps',
'doc',
'lint',
'branch',
Expand Down
Loading

0 comments on commit adc795e

Please sign in to comment.