-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
626 changed files
with
42,446 additions
and
9,321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/built/local/** | ||
/tests/** | ||
/lib/** | ||
/src/lib/*.generated.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"warnOnUnsupportedTypeScriptVersion": false, | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"env": { | ||
"browser": false, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", "jsdoc", "no-null", "import" | ||
], | ||
"rules": { | ||
"@typescript-eslint/adjacent-overload-signatures": "error", | ||
"@typescript-eslint/array-type": "error", | ||
|
||
"camelcase": "off", | ||
"@typescript-eslint/camelcase": ["error", { "properties": "never", "allow": ["^[A-Za-z][a-zA-Za-z]+_[A-Za-z]+$"] }], | ||
|
||
"@typescript-eslint/class-name-casing": "error", | ||
"@typescript-eslint/consistent-type-definitions": ["error", "interface"], | ||
"@typescript-eslint/interface-name-prefix": "error", | ||
"@typescript-eslint/no-inferrable-types": "error", | ||
"@typescript-eslint/no-misused-new": "error", | ||
"@typescript-eslint/no-this-alias": "error", | ||
"@typescript-eslint/prefer-for-of": "error", | ||
"@typescript-eslint/prefer-function-type": "error", | ||
"@typescript-eslint/prefer-namespace-keyword": "error", | ||
|
||
"quotes": "off", | ||
"@typescript-eslint/quotes": ["error", "double", { "avoidEscape": true, "allowTemplateLiterals": true }], | ||
|
||
"semi": "off", | ||
"@typescript-eslint/semi": "error", | ||
|
||
"@typescript-eslint/triple-slash-reference": "error", | ||
"@typescript-eslint/type-annotation-spacing": "error", | ||
"@typescript-eslint/unified-signatures": "error", | ||
|
||
// scripts/eslint/rules | ||
"object-literal-surrounding-space": "error", | ||
"no-type-assertion-whitespace": "error", | ||
"type-operator-spacing": "error", | ||
"only-arrow-functions": ["error", { | ||
"allowNamedFunctions": true , | ||
"allowDeclarations": true | ||
}], | ||
"no-double-space": "error", | ||
"boolean-trivia": "error", | ||
"no-in-operator": "error", | ||
"simple-indent": "error", | ||
"debug-assert": "error", | ||
"no-keywords": "error", | ||
|
||
// eslint-plugin-import | ||
"import/no-extraneous-dependencies": ["error", { "optionalDependencies": false }], | ||
|
||
// eslint-plugin-no-null | ||
"no-null/no-null": "error", | ||
|
||
// eslint-plugin-jsdoc | ||
"jsdoc/check-alignment": "error", | ||
|
||
// eslint | ||
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }], | ||
"constructor-super": "error", | ||
"curly": ["error", "multi-line"], | ||
"dot-notation": "error", | ||
"eqeqeq": "error", | ||
"linebreak-style": ["error", "windows"], | ||
"new-parens": "error", | ||
"no-caller": "error", | ||
"no-duplicate-case": "error", | ||
"no-duplicate-imports": "error", | ||
"no-empty": "error", | ||
"no-eval": "error", | ||
"no-extra-bind": "error", | ||
"no-fallthrough": "error", | ||
"no-new-func": "error", | ||
"no-new-wrappers": "error", | ||
"no-return-await": "error", | ||
"no-restricted-globals": ["error", | ||
{ "name": "setTimeout" }, | ||
{ "name": "clearTimeout" }, | ||
{ "name": "setInterval" }, | ||
{ "name": "clearInterval" }, | ||
{ "name": "setImmediate" }, | ||
{ "name": "clearImmediate" } | ||
], | ||
"no-sparse-arrays": "error", | ||
"no-template-curly-in-string": "error", | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "error", | ||
"no-undef-init": "error", | ||
"no-unsafe-finally": "error", | ||
"no-unused-expressions": ["error", { "allowTernary": true }], | ||
"no-unused-labels": "error", | ||
"no-var": "error", | ||
"object-shorthand": "error", | ||
"prefer-const": "error", | ||
"prefer-object-spread": "error", | ||
"quote-props": ["error", "consistent-as-needed"], | ||
"space-in-parens": "error", | ||
"unicode-bom": ["error", "never"], | ||
"use-isnan": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint" | ||
], | ||
|
||
"unwantedRecommendations": [ | ||
"ms-vscode.vscode-typescript-tslint-plugin" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"eslint.validate": [ | ||
{ | ||
"language": "typescript", | ||
"autoFix": true | ||
} | ||
], | ||
"eslint.options": { | ||
"rulePaths": ["../scripts/eslint/built/rules/"], | ||
"ext": [".ts"] | ||
}, | ||
"eslint.workingDirectories": ["./src", "./scripts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LCX SchemaVersion="6.0" Name="E:\A\_work\326\s\VS\TypeScriptTasks\bin\Release\Targets\ProjectItemsSchema.xaml" PsrId="22" FileType="1" SrcCul="en-US" TgtCul="zh-CN" xmlns="http://schemas.microsoft.com/locstudio/2006/6/lcx"> | ||
<OwnedComments> | ||
<Cmt Name="Dev" /> | ||
<Cmt Name="LcxAdmin" /> | ||
<Cmt Name="Rccx" /> | ||
</OwnedComments> | ||
<Settings Name="@vsLocTools@\default.lss" Type="Lss" /> | ||
<Item ItemId=";<ContentType>" ItemType="0" PsrId="210" Leaf="false"> | ||
<Disp Icon="Str" Disp="true" LocTbl="false" /> | ||
<Item ItemId="0;typescriptcompile@ContentType@DisplayName" ItemType="47;XML:Attr:DisplayName" PsrId="210" Leaf="true"> | ||
<Str Cat="AppData"> | ||
<Val><![CDATA[TypeScript file]]></Val> | ||
<Tgt Cat="AppData" Stat="Loc" Orig="New"> | ||
<Val><![CDATA[TypeScript 文件]]></Val> | ||
</Tgt> | ||
</Str> | ||
<Disp Icon="Str" /> | ||
</Item> | ||
</Item> | ||
<Item ItemId=";<ItemType>" ItemType="0" PsrId="210" Leaf="false"> | ||
<Disp Icon="Str" Disp="true" LocTbl="false" /> | ||
<Item ItemId="0;typescriptcompile@ItemType@DisplayName" ItemType="47;XML:Attr:DisplayName" PsrId="210" Leaf="true"> | ||
<Str Cat="AppData"> | ||
<Val><![CDATA[TypeScript file]]></Val> | ||
<Tgt Cat="AppData" Stat="Loc" Orig="New"> | ||
<Val><![CDATA[TypeScript 文件]]></Val> | ||
</Tgt> | ||
</Str> | ||
<Disp Icon="Str" /> | ||
</Item> | ||
</Item> | ||
</LCX> |
Oops, something went wrong.