-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3334 from marcalexiei/typescript-poc
- Loading branch information
Showing
509 changed files
with
15,971 additions
and
8,589 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
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,175 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/errors", | ||
"plugin:import/typescript" | ||
], | ||
"env": { | ||
"es6": true | ||
}, | ||
"plugins": [ | ||
"prettier", | ||
"import" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"settings": { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [ | ||
".ts" | ||
] | ||
}, | ||
"import/resolver": { | ||
"typescript": { | ||
"alwaysTryTypes": true, | ||
"project": "./tsconfig.json" | ||
} | ||
} | ||
}, | ||
"rules": { | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": [ | ||
"builtin", | ||
"external", | ||
"internal", | ||
"parent", | ||
"sibling", | ||
"index" | ||
], | ||
"pathGroups": [ | ||
{ | ||
"pattern": "config/**", | ||
"group": "internal" | ||
}, | ||
{ | ||
"pattern": "model/**", | ||
"group": "internal" | ||
}, | ||
{ | ||
"pattern": "parse/**", | ||
"group": "internal" | ||
}, | ||
{ | ||
"pattern": "shared/**", | ||
"group": "internal" | ||
}, | ||
{ | ||
"pattern": "types/**", | ||
"group": "internal" | ||
}, | ||
{ | ||
"pattern": "utils/**", | ||
"group": "internal" | ||
}, | ||
{ | ||
"pattern": "view/**", | ||
"group": "internal" | ||
} | ||
], | ||
"newlines-between": "always", | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
} | ||
} | ||
], | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
"arrowParens": "avoid", | ||
"trailingComma": "none" | ||
} | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"no-mixed-spaces-and-tabs": [ | ||
"error", | ||
"smart-tabs" | ||
], | ||
"no-class-assign": "error", | ||
"no-cond-assign": "off", | ||
"no-const-assign": "error", | ||
"no-constant-condition": [ | ||
"error", | ||
{ | ||
"checkLoops": false | ||
} | ||
], | ||
"no-control-regex": "off", | ||
"no-this-before-super": "error", | ||
"no-var": "error", | ||
"object-shorthand": [ | ||
"error", | ||
"always" | ||
], | ||
"one-var": [ | ||
"error", | ||
{ | ||
"initialized": "never" | ||
} | ||
], | ||
"prefer-arrow-callback": "error", | ||
"prefer-const": "error", | ||
"no-useless-escape": 0, | ||
"no-console": "error", | ||
"no-dupe-class-members": "off", | ||
|
||
// TODO add @typescript-eslint/naming-convention rule | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-empty-function": [ | ||
"error", | ||
{ | ||
"allow": [ | ||
"methods" | ||
] | ||
} | ||
], | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/explicit-function-return-type": [ | ||
"warn", | ||
{ | ||
"allowExpressions": true | ||
} | ||
], | ||
"@typescript-eslint/ban-types": [ | ||
"error", | ||
{ | ||
"types": { | ||
"Function": false | ||
}, | ||
"extendDefaults": true | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
// disable typescript rules for JS files | ||
"files": [ | ||
"**/*.js" | ||
], | ||
"rules": { | ||
"no-dupe-class-members": "error", | ||
"@typescript-eslint/naming-convention": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/camelcase": "off", | ||
"@typescript-eslint/no-this-alias": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off" | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -23,3 +23,6 @@ perf/control/* | |
|
||
# Log files | ||
*.log | ||
|
||
# Documentation | ||
docs |
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 @@ | ||
{ | ||
"default": true, | ||
"ul-indent": { | ||
"indent": 2 | ||
}, | ||
"no-multiple-blanks": { | ||
"maximum": 2 | ||
}, | ||
"no-trailing-punctuation": { | ||
"punctuation": "" | ||
}, | ||
"line-length": false | ||
} |
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 @@ | ||
save-dev=true |
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 |
---|---|---|
@@ -1 +1 @@ | ||
8 | ||
12 |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- '8' | ||
- '12' | ||
cache: | ||
directories: | ||
- node_modules | ||
|
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,7 @@ | ||
{ | ||
"recommendations": [ | ||
"editorconfig.editorconfig", | ||
"dbaeumer.vscode-eslint", | ||
"davidanson.vscode-markdownlint" | ||
], | ||
} |
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
Oops, something went wrong.