Skip to content

Commit f595c26

Browse files
JanCizmarstepan662
authored andcommitted
fix: Add prettier and eslint and fix issues
1 parent fd0b3fb commit f595c26

File tree

130 files changed

+9898
-7383
lines changed

Some content is hidden

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

130 files changed

+9898
-7383
lines changed

.eslintrc.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"ignorePatterns": [
7+
"**/*.generated.*",
8+
"*.js"
9+
],
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:react/recommended",
13+
"plugin:@typescript-eslint/recommended"
14+
],
15+
"parser": "@typescript-eslint/parser",
16+
"parserOptions": {
17+
"ecmaFeatures": {
18+
"jsx": true
19+
},
20+
"ecmaVersion": 12,
21+
"sourceType": "module"
22+
},
23+
"plugins": [
24+
"react",
25+
"@typescript-eslint",
26+
"prettier"
27+
],
28+
"settings": {
29+
"react": {
30+
"version": "detect"
31+
}
32+
},
33+
"rules": {
34+
"prettier/prettier": "error",
35+
"no-console": "warn",
36+
"@typescript-eslint/no-explicit-any": "off",
37+
"@typescript-eslint/ban-ts-comment": "off",
38+
"react/react-in-jsx-scope": "off",
39+
"@typescript-eslint/explicit-module-boundary-types": "off",
40+
"@typescript-eslint/no-empty-function": "off",
41+
"@typescript-eslint/no-unused-vars": [
42+
"warn",
43+
{
44+
"args": "none",
45+
"varsIgnorePattern": "^_"
46+
}
47+
],
48+
"@typescript-eslint/no-non-null-assertion": "off",
49+
"react/prop-types": "off",
50+
"@typescript-eslint/no-empty-interface": "off"
51+
}
52+
}

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build
2+
public
3+
4+
./*.json
5+
6+
**/*.generated.*

.prettierrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"singleQuote": true
5+
}

0 commit comments

Comments
 (0)