Skip to content

Commit a42187f

Browse files
authored
Merge pull request #63 from DeepCodeAI/big-refactoring-tsc
Big refactoring tsc
2 parents 053bb5d + c8a999e commit a42187f

50 files changed

Lines changed: 2985 additions & 3506 deletions

Some content is hidden

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

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
max_line_length = 120
13+
14+
[*.{js,jsx,ts,tsx,vue,sass}]
15+
indent_style = space
16+
indent_size = 2
17+
18+
# 4 space indentation
19+
[*.py]
20+
indent_style = space
21+
indent_size = 4

.eslintrc.js

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

.eslintrc.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"plugins": ["@typescript-eslint", "prettier", "import"],
3+
"extends": [
4+
"eslint:recommended",
5+
"airbnb-base",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
8+
"plugin:prettier/recommended",
9+
"prettier",
10+
"prettier/@typescript-eslint"
11+
],
12+
"globals": {
13+
"Atomics": "readonly",
14+
"SharedArrayBuffer": "readonly"
15+
},
16+
"parser": "@typescript-eslint/parser",
17+
"parserOptions": {
18+
"ecmaVersion": 2018,
19+
"project": "./tsconfig.json"
20+
},
21+
"env": {
22+
"es6": true,
23+
"node": true
24+
},
25+
"rules": {
26+
"no-console": "off",
27+
"no-debugger": "off",
28+
"arrow-parens": ["error", "as-needed"],
29+
"require-jsdoc": "off",
30+
"space-before-function-paren": "off",
31+
"comma-dangle": "off",
32+
"object-curly-spacing": "warn",
33+
"padded-blocks": "off",
34+
"camelcase": "warn",
35+
"object-property-newline": "off",
36+
"prefer-const": "warn",
37+
"import/no-absolute-path": "off",
38+
"no-prototype-builtins": "off",
39+
"indent": "warn",
40+
"quote-props": ["warn", "as-needed"],
41+
"lines-between-class-members": "off",
42+
"import/extensions": [
43+
"error",
44+
"ignorePackages",
45+
{
46+
"js": "never",
47+
"mjs": "never",
48+
"jsx": "never",
49+
"ts": "never",
50+
"tsx": "never"
51+
}
52+
],
53+
"no-restricted-syntax": "off",
54+
"no-await-in-loop": "warn",
55+
"no-underscore-dangle": "off",
56+
"max-classes-per-file": "off",
57+
"no-use-before-define": "off",
58+
"no-continue": "off",
59+
"@typescript-eslint/restrict-template-expressions": "off",
60+
"@typescript-eslint/no-unsafe-assignment": "warn"
61+
},
62+
"settings": {
63+
"import/resolver": {
64+
"node": {
65+
"extensions": [".js", ".jsx", ".ts", ".tsx", ".json", ".vue"]
66+
}
67+
}
68+
}
69+
}

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
out
2+
build
23
node_modules
4+
.yalc
5+
yalc.lock
36
.vscode-test
47
*.vsix
5-
yarn-error.log
8+
yarn-error.log
9+
.dccache

.prettierrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
semi: true,
3+
trailingComma: 'all',
4+
singleQuote: true,
5+
printWidth: 120,
6+
useTabs: false,
7+
tabWidth: 2,
8+
bracketSpacing: true,
9+
arrowParens: 'avoid',
10+
};

.vscodeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ src/**
55
.gitignore
66
vsc-extension-quickstart.md
77
**/tsconfig.json
8-
**/.eslintrc.js
8+
**/.eslintrc.json
99
**/*.map
1010
**/*.ts
1111
**/webpack.config.js

0 commit comments

Comments
 (0)