Skip to content

Commit a5eeeea

Browse files
authored
Merge pull request #145 from nodkz/typescript-refacto
Typescript migration
2 parents b4254de + c9a1a98 commit a5eeeea

File tree

72 files changed

+1904
-9006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1904
-9006
lines changed

.babelrc

Lines changed: 0 additions & 19 deletions
This file was deleted.

.eslintrc

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,47 @@
11
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@typescript-eslint", "prettier"],
24
"extends": [
3-
"airbnb-base",
4-
"prettier"
5+
"plugin:@typescript-eslint/recommended",
6+
"prettier/@typescript-eslint",
7+
"plugin:prettier/recommended"
58
],
6-
"parser": "babel-eslint",
9+
"parserOptions": {
10+
"sourceType": "module",
11+
"useJSXTextNode": true,
12+
"project": "./tsconfig.json"
13+
},
714
"rules": {
815
"no-underscore-dangle": 0,
916
"arrow-body-style": 0,
1017
"no-unused-expressions": 0,
1118
"no-plusplus": 0,
1219
"no-console": 0,
1320
"func-names": 0,
14-
"comma-dangle": ["error", {
15-
"arrays": "always-multiline",
16-
"objects": "always-multiline",
17-
"imports": "always-multiline",
18-
"exports": "always-multiline",
19-
"functions": "ignore",
20-
}],
21-
"prettier/prettier": ["error", {
22-
"printWidth": 100,
23-
"singleQuote": true,
24-
"trailingComma": "es5",
25-
}],
21+
"comma-dangle": [
22+
"error",
23+
{
24+
"arrays": "always-multiline",
25+
"objects": "always-multiline",
26+
"imports": "always-multiline",
27+
"exports": "always-multiline",
28+
"functions": "ignore"
29+
}
30+
],
2631
"no-prototype-builtins": 0,
2732
"prefer-destructuring": 0,
2833
"no-else-return": 0,
29-
"lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
34+
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
35+
"@typescript-eslint/explicit-member-accessibility": 0,
36+
"@typescript-eslint/no-explicit-any": 0,
37+
"@typescript-eslint/no-inferrable-types": 0
3038
},
3139
"env": {
3240
"jasmine": true,
3341
"jest": true
3442
},
3543
"globals": {
3644
"Class": true,
37-
"Iterator": true,
38-
"$Shape": true,
39-
},
40-
"plugins": [
41-
"flowtype",
42-
"prettier"
43-
]
45+
"Iterator": true
46+
}
4447
}

.flowconfig

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@nodkz @AJRdev

.markdownlint.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"line-length": false,
3+
"no-trailing-punctuation": {
4+
"punctuation": ",;"
5+
},
6+
"no-inline-html": false,
7+
"ol-prefix": false,
8+
"first-line-h1": false,
9+
"first-heading-h1": false
10+
}

tslint.json renamed to .old.tslint.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"member-ordering": [true, { "order": "fields-first" }],
1212
"variable-name": false,
1313
"interface-name": false,
14-
"no-reference-import": false
14+
"no-reference-import": false,
15+
"curly": false,
16+
"arrow-parens": false,
17+
"object-literal-sort-keys": false,
18+
"no-console": false,
19+
"interface-over-type-literal": false
20+
1521
}
1622
}

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"arrowParens": "always",
4+
"tabWidth": 2,
5+
"useTabs": false,
6+
"printWidth": 100,
7+
"trailingComma": "es5"
8+
}

.vscode/settings.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
{
2-
"javascript.validate.enable": false
3-
}
2+
"javascript.validate.enable": false,
3+
"editor.formatOnSave": true,
4+
"eslint.validate": [
5+
"javascript",
6+
"javascriptreact",
7+
{ "language": "typescript", "autoFix": true },
8+
{ "language": "typescriptreact", "autoFix": true }
9+
]
10+
}

0 commit comments

Comments
 (0)