Skip to content

Commit 789e9d5

Browse files
committed
prettier
1 parent 231e4ac commit 789e9d5

File tree

5 files changed

+88
-16
lines changed

5 files changed

+88
-16
lines changed

.eslintignore

Whitespace-only changes.

.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true,
6+
"jest": true
7+
},
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"prettier"
12+
],
13+
"overrides": [],
14+
"parser": "@typescript-eslint/parser",
15+
"parserOptions": {
16+
"ecmaVersion": "latest",
17+
"sourceType": "module"
18+
},
19+
"plugins": [
20+
"@typescript-eslint",
21+
"simple-import-sort",
22+
"unused-imports",
23+
"prettier"
24+
],
25+
"rules": {
26+
"indent": [
27+
"error",
28+
2
29+
],
30+
"quotes": [
31+
"error",
32+
"single",
33+
{
34+
"avoidEscape": true,
35+
"allowTemplateLiterals": true
36+
}
37+
],
38+
"quote-props": [
39+
"error",
40+
"as-needed"
41+
],
42+
"semi": [
43+
"error",
44+
"always"
45+
],
46+
"simple-import-sort/imports": 1,
47+
"simple-import-sort/exports": 1,
48+
"unused-imports/no-unused-imports": 1,
49+
"@typescript-eslint/no-unused-vars": [
50+
1,
51+
{
52+
"argsIgnorePattern": "React|res|next|^_"
53+
}
54+
],
55+
"@typescript-eslint/no-explicit-any": 0,
56+
"@typescript-eslint/no-var-requires": 0,
57+
"no-console": 0,
58+
"@typescript-eslint/ban-ts-comment": 0,
59+
"prefer-const": 0,
60+
"no-case-declarations": 0,
61+
"no-implicit-globals": 0,
62+
"@typescript-eslint/no-unsafe-declaration-merging": 0,
63+
"prettier/prettier": [
64+
"error",
65+
{
66+
"trailingComma": "es5",
67+
"tabWidth": 2,
68+
"semi": true,
69+
"useTabs": false,
70+
"singleQuote": true
71+
}
72+
]
73+
},
74+
"ignorePatterns": [
75+
"node_modules/",
76+
"dist/",
77+
"**/node_modules/",
78+
"**/dist/"
79+
]
80+
}

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,19 @@
2222
"postinstall": "yarn symlink"
2323
},
2424
"devDependencies": {
25-
"@interweb/eslint": "^0.5.0",
2625
"@types/jest": "^29.5.11",
2726
"@types/node": "^20.12.7",
27+
"@typescript-eslint/eslint-plugin": "^7.10.0",
28+
"@typescript-eslint/parser": "^7.10.0",
2829
"copyfiles": "^2.4.1",
30+
"eslint-config-prettier": "^9.1.0",
31+
"eslint": "^8.56.0",
32+
"eslint-plugin-prettier": "^5.1.3",
33+
"eslint-plugin-simple-import-sort": "^12.1.0",
34+
"eslint-plugin-unused-imports": "^4.0.0",
2935
"jest": "^29.6.2",
3036
"lerna": "^6",
37+
"prettier": "^3.0.2",
3138
"rimraf": "4.4.1",
3239
"strip-ansi": "^6",
3340
"symlink-workspace": "^1.9.0",

yarn.lock

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -365,20 +365,6 @@
365365
resolved "https://registry.yarnpkg.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340"
366366
integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==
367367

368-
"@interweb/eslint@^0.5.0":
369-
version "0.5.0"
370-
resolved "https://registry.yarnpkg.com/@interweb/eslint/-/eslint-0.5.0.tgz#4f27e83139009a48c505ff22ad845099ebb86288"
371-
integrity sha512-px4QHSPLO1X4hNN2eAIm0FsfnDaQYrb7X0qbJ8VC8hnix7J5q9yKVqGwtNhcV5itnf+4UKQt60GaKONlDp9Oaw==
372-
dependencies:
373-
"@typescript-eslint/eslint-plugin" "^7.10.0"
374-
"@typescript-eslint/parser" "^7.10.0"
375-
eslint "^8.56.0"
376-
eslint-config-prettier "^9.1.0"
377-
eslint-plugin-prettier "^5.1.3"
378-
eslint-plugin-simple-import-sort "^12.1.0"
379-
eslint-plugin-unused-imports "^4.0.0"
380-
prettier "^3.0.2"
381-
382368
"@isaacs/cliui@^8.0.2":
383369
version "8.0.2"
384370
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"

0 commit comments

Comments
 (0)