Skip to content

Commit 0e87554

Browse files
committed
ci: Format code
1 parent 1d4bbdc commit 0e87554

File tree

1 file changed

+25
-90
lines changed

1 file changed

+25
-90
lines changed

.eslintrc.json

Lines changed: 25 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"root": true,
3-
"plugins": [
4-
"simple-import-sort",
5-
"unused-imports"
6-
],
3+
"plugins": ["simple-import-sort", "unused-imports"],
74
"parserOptions": {
85
"sourceType": "module",
96
"ecmaVersion": "latest"
@@ -21,10 +18,7 @@
2118
"ignoreRestSiblings": true
2219
}
2320
],
24-
"import/extensions": [
25-
"error",
26-
"ignorePackages"
27-
],
21+
"import/extensions": ["error", "ignorePackages"],
2822
"import/no-duplicates": [
2923
"error",
3024
{
@@ -36,53 +30,26 @@
3630
"error",
3731
{
3832
"groups": [
39-
[
40-
"^\\u0000"
41-
],
42-
[
43-
"^node:"
44-
],
45-
[
46-
"^@?\\w"
47-
],
48-
[
49-
"@seamapi/dbtypr"
50-
],
51-
[
52-
"^lib/"
53-
],
54-
[
55-
"^"
56-
],
57-
[
58-
"^\\."
59-
]
33+
["^\\u0000"],
34+
["^node:"],
35+
["^@?\\w"],
36+
["@seamapi/dbtypr"],
37+
["^lib/"],
38+
["^"],
39+
["^\\."]
6040
]
6141
}
6242
],
6343
"simple-import-sort/exports": "error"
6444
},
6545
"overrides": [
6646
{
67-
"files": [
68-
"*.js",
69-
"*.mjs",
70-
"*.cjs"
71-
],
72-
"extends": [
73-
"standard",
74-
"prettier"
75-
]
47+
"files": ["*.js", "*.mjs", "*.cjs"],
48+
"extends": ["standard", "prettier"]
7649
},
7750
{
78-
"files": [
79-
"*.ts",
80-
"*.tsx"
81-
],
82-
"extends": [
83-
"standard-with-typescript",
84-
"prettier"
85-
],
51+
"files": ["*.ts", "*.tsx"],
52+
"extends": ["standard-with-typescript", "prettier"],
8653
"parserOptions": {
8754
"project": "./tsconfig.json"
8855
},
@@ -99,13 +66,8 @@
9966
"@typescript-eslint/naming-convention": [
10067
"error",
10168
{
102-
"selector": [
103-
"interface",
104-
"typeAlias"
105-
],
106-
"format": [
107-
"PascalCase"
108-
],
69+
"selector": ["interface", "typeAlias"],
70+
"format": ["PascalCase"],
10971
"leadingUnderscore": "forbid",
11072
"trailingUnderscore": "forbid"
11173
},
@@ -117,59 +79,32 @@
11779
"variable",
11880
"parameter"
11981
],
120-
"types": [
121-
"function"
122-
],
123-
"format": [
124-
"camelCase"
125-
]
82+
"types": ["function"],
83+
"format": ["camelCase"]
12684
},
12785
{
128-
"selector": [
129-
"objectLiteralProperty"
130-
],
86+
"selector": ["objectLiteralProperty"],
13187
"format": null
13288
},
13389
{
134-
"selector": [
135-
"parameterProperty",
136-
"variable",
137-
"parameter"
138-
],
139-
"types": [
140-
"boolean",
141-
"string",
142-
"number",
143-
"array"
144-
],
145-
"format": [
146-
"snake_case",
147-
"UPPER_CASE"
148-
],
90+
"selector": ["parameterProperty", "variable", "parameter"],
91+
"types": ["boolean", "string", "number", "array"],
92+
"format": ["snake_case", "UPPER_CASE"],
14993
"leadingUnderscore": "allow",
15094
"trailingUnderscore": "allow"
15195
},
15296
{
153-
"selector": [
154-
"function"
155-
],
156-
"format": [
157-
"camelCase"
158-
]
97+
"selector": ["function"],
98+
"format": ["camelCase"]
15999
},
160100
{
161101
"selector": "default",
162-
"format": [
163-
"camelCase",
164-
"snake_case",
165-
"UPPER_CASE",
166-
"PascalCase"
167-
],
102+
"format": ["camelCase", "snake_case", "UPPER_CASE", "PascalCase"],
168103
"leadingUnderscore": "allow",
169104
"trailingUnderscore": "forbid"
170105
}
171106
]
172107
}
173108
}
174109
]
175-
}
110+
}

0 commit comments

Comments
 (0)