Skip to content

Commit e9d5fcc

Browse files
authoredJun 21, 2022
Code formatting (#322)
1 parent 494ff34 commit e9d5fcc

Some content is hidden

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

55 files changed

+1797
-744
lines changed
 

‎.editorconfig

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# EditorConfig is awesome: http://EditorConfig.org
22

3-
# top-most EditorConfig file
3+
# Top-most EditorConfig file
44
root = true
55

66
# Unix-style newlines with newline ending and space indentation for all files
@@ -9,11 +9,8 @@ end_of_line = lf
99
insert_final_newline = true
1010
indent_style = space
1111

12-
# 4 space indentation and max line length of 100 in *.ts files
13-
[*.ts]
12+
# 4 space indentation and max line length of 100 in JavaScript/TypeScript files
13+
[*.{js,ts}]
1414
indent_size = 4
1515
max_line_length = 100
1616

17-
# 2 space indentation in package.json
18-
[package.json]
19-
indent_size = 2

‎.eslintrc.json

+7-15
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,17 @@
77
"parserOptions": {
88
"ecmaVersion": 8
99
},
10+
"plugins": ["@typescript-eslint", "prettier"],
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"prettier"
15+
],
1016
"rules": {
11-
"block-spacing": "error",
1217
"curly": "error",
1318
"eqeqeq": ["error", "always", { "null": "ignore" }],
14-
"indent": ["error", 4],
15-
"keyword-spacing": "error",
1619
"no-var": "error",
1720
"prefer-const": "error",
18-
"quotes": ["error", "single"],
19-
"comma-dangle": ["error", "always-multiline"],
20-
"semi": "error",
21-
"space-before-blocks": "error",
22-
"space-before-function-paren": [
23-
"error",
24-
{
25-
"anonymous": "never",
26-
"named": "never",
27-
"asyncArrow": "always"
28-
}
29-
]
21+
"prettier/prettier": ["error"]
3022
}
3123
}

0 commit comments

Comments
 (0)
Please sign in to comment.