Skip to content

Commit 06e1650

Browse files
committed
chore: add eslint format
1 parent 58d5782 commit 06e1650

8 files changed

+3256
-2703
lines changed

.editorconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
max_line_length = 100
12+
13+
[*.{ts, tsx}]
14+
ij_typescript_enforce_trailing_comma = keep
15+
ij_typescript_use_double_quotes = false
16+
ij_typescript_force_quote_style = true
17+
ij_typescript_align_imports = false
18+
ij_typescript_align_multiline_ternary_operation = false
19+
ij_typescript_align_multiline_parameters_in_calls = false
20+
ij_typescript_align_multiline_parameters = false
21+
ij_typescript_align_multiline_chained_methods = false
22+
ij_typescript_else_on_new_line = false
23+
ij_typescript_catch_on_new_line = false
24+
ij_typescript_spaces_within_interpolation_expressions = false
25+
26+
[*.md]
27+
max_line_length = 100
28+
trim_trailing_whitespace = false
29+
30+
[COMMIT_EDITMSG]
31+
max_line_length = 80

.eslintrc.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:prettier/recommended",
5+
"plugin:@typescript-eslint/recommended"
6+
],
7+
"parser": "@typescript-eslint/parser",
8+
"plugins": [
9+
"@typescript-eslint",
10+
"prettier",
11+
"jest"
12+
],
13+
"rules": {
14+
"no-unused-vars": "off",
15+
"@typescript-eslint/no-unused-vars": 0,
16+
"@typescript-eslint/consistent-type-imports": [
17+
1,
18+
{
19+
"prefer": "type-imports",
20+
"fixStyle": "inline-type-imports"
21+
}
22+
],
23+
"@typescript-eslint/ban-ts-comment": "off",
24+
"@typescript-eslint/no-explicit-any": "off"
25+
}
26+
}

.prettierrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"tabWidth": 2,
5+
"printWidth": 100,
6+
"semicolons": true,
7+
"quoteProps": "as-needed",
8+
"jsxSingleQuote": false,
9+
"bracketSpacing": true,
10+
"jsxBracketSameLine": true,
11+
"arrowParens": "always",
12+
"endOfLine": "lf"
13+
}

.vscode/settings.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"cSpell.words": [
3-
"Deque"
4-
]
5-
}
3+
"Deque",
4+
"nlogn"
5+
],
6+
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll.eslint": true
9+
},
10+
"eslint.validate": ["javascript", "typescript"]
11+
12+
}

0 commit comments

Comments
 (0)