@nedcloarbr/biome-config 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/base.json +83 -76
- package/ignore.json +1 -1
- package/nestjs.json +23 -21
- package/package.json +48 -48
- package/react.json +41 -28
package/README.md
CHANGED
|
@@ -56,14 +56,14 @@ bun add --dev --exact @biomejs/biome @nedcloarbr/biome-config
|
|
|
56
56
|
|
|
57
57
|
```diff
|
|
58
58
|
# biome.json
|
|
59
|
-
+ extends: ["@nedcloabr/biome-config]
|
|
59
|
+
+ extends: ["@nedcloabr/biome-config"]
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
or
|
|
63
63
|
|
|
64
64
|
```diff
|
|
65
65
|
# biome.json
|
|
66
|
-
+ extends: ["@nedcloabr/biome-config/base]
|
|
66
|
+
+ extends: ["@nedcloabr/biome-config/base"]
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
### [`NestJS`](https://nestjs.com/)
|
package/base.json
CHANGED
|
@@ -1,78 +1,85 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
|
|
3
|
+
"organizeImports": {
|
|
4
|
+
"enabled": true
|
|
5
|
+
},
|
|
6
|
+
"formatter": {
|
|
7
|
+
"enabled": true,
|
|
8
|
+
"indentWidth": 2,
|
|
9
|
+
"indentStyle": "tab",
|
|
10
|
+
"lineEnding": "lf",
|
|
11
|
+
"lineWidth": 120
|
|
12
|
+
},
|
|
13
|
+
"javascript": {
|
|
14
|
+
"formatter": {
|
|
15
|
+
"enabled": true,
|
|
16
|
+
"semicolons": "always",
|
|
17
|
+
"quoteStyle": "double",
|
|
18
|
+
"quoteProperties": "asNeeded",
|
|
19
|
+
"trailingCommas": "all"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"json": {
|
|
23
|
+
"formatter": {
|
|
24
|
+
"enabled": true,
|
|
25
|
+
"indentWidth": 2,
|
|
26
|
+
"indentStyle": "tab",
|
|
27
|
+
"lineEnding": "lf",
|
|
28
|
+
"lineWidth": 120
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"linter": {
|
|
32
|
+
"enabled": true,
|
|
33
|
+
"rules": {
|
|
34
|
+
"complexity": {
|
|
35
|
+
"noEmptyTypeParameters": "error",
|
|
36
|
+
"noExcessiveCognitiveComplexity": "error",
|
|
37
|
+
"noForEach": "error",
|
|
38
|
+
"noUselessCatch": "error",
|
|
39
|
+
"noUselessConstructor": "error",
|
|
40
|
+
"noUselessEmptyExport": "error",
|
|
41
|
+
"noUselessSwitchCase": "error",
|
|
42
|
+
"noVoid": "off",
|
|
43
|
+
"useArrowFunction": "error",
|
|
44
|
+
"useLiteralKeys": "off",
|
|
45
|
+
"useOptionalChain": "error",
|
|
46
|
+
"useRegexLiterals": "error",
|
|
47
|
+
"useSimplifiedLogicExpression": "error"
|
|
48
|
+
},
|
|
49
|
+
"correctness": {
|
|
50
|
+
"noConstAssign": "error",
|
|
51
|
+
"noConstantCondition": "error",
|
|
52
|
+
"noEmptyCharacterClassInRegex": "error",
|
|
53
|
+
"noEmptyPattern": "error",
|
|
54
|
+
"noGlobalObjectCalls": "error",
|
|
55
|
+
"noInnerDeclarations": "off",
|
|
56
|
+
"noInvalidConstructorSuper": "error",
|
|
57
|
+
"noInvalidNewBuiltin": "error",
|
|
58
|
+
"noSwitchDeclarations": "off"
|
|
59
|
+
},
|
|
60
|
+
"style": {
|
|
61
|
+
"noDefaultExport": "error",
|
|
62
|
+
"noVar": "error",
|
|
63
|
+
"noUselessElse": "error",
|
|
64
|
+
"noNonNullAssertion": "off",
|
|
65
|
+
"useAsConstAssertion": "warn",
|
|
66
|
+
"useConst": "error",
|
|
67
|
+
"useNodejsImportProtocol": "error",
|
|
68
|
+
"useShorthandArrayType": "error",
|
|
69
|
+
"useSingleVarDeclarator": "error"
|
|
70
|
+
},
|
|
71
|
+
"suspicious": {
|
|
72
|
+
"noApproximativeNumericConstant": "error",
|
|
73
|
+
"noCatchAssign": "error",
|
|
74
|
+
"noConfusingVoidType": "error",
|
|
75
|
+
"noDoubleEquals": "error",
|
|
76
|
+
"noDuplicateCase": "error",
|
|
77
|
+
"noDuplicateObjectKeys": "error",
|
|
78
|
+
"noDuplicateParameters": "error",
|
|
79
|
+
"noEmptyBlockStatements": "error",
|
|
80
|
+
"noEmptyInterface": "error",
|
|
81
|
+
"noExplicitAny": "error"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
78
85
|
}
|
package/ignore.json
CHANGED
package/nestjs.json
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
|
|
3
|
+
"extends": [
|
|
4
|
+
"./base.json"
|
|
5
|
+
],
|
|
6
|
+
"javascript": {
|
|
7
|
+
"parser": {
|
|
8
|
+
"unsafeParameterDecoratorsEnabled": true
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"linter": {
|
|
12
|
+
"rules": {
|
|
13
|
+
"style": {
|
|
14
|
+
"useExportType": {
|
|
15
|
+
"level": "info",
|
|
16
|
+
"fix": "none"
|
|
17
|
+
},
|
|
18
|
+
"useImportType": {
|
|
19
|
+
"level": "info",
|
|
20
|
+
"fix": "none"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
23
25
|
}
|
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
2
|
+
"name": "@nedcloarbr/biome-config",
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "BiomeJS Configuration used by NedcloarBR in their projects",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"registry": "https://registry.npmjs.org",
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Miguel Alexandre Uhlein <NedcloarBR>",
|
|
12
|
+
"email": "nedcloar1@hotmail.com",
|
|
13
|
+
"url": "https://github.com/NedcloarBR"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/NedcloarBR/biome-config.git"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/NedcloarBR/biome-config/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/NedcloarBR/biome-config#readme",
|
|
23
|
+
"keywords": [
|
|
24
|
+
"BiomeJS",
|
|
25
|
+
"NestJS",
|
|
26
|
+
"linter",
|
|
27
|
+
"formatter"
|
|
28
|
+
],
|
|
29
|
+
"exports": {
|
|
30
|
+
".": "./base.json",
|
|
31
|
+
"./base": "./base.json",
|
|
32
|
+
"./nestjs": "./nestjs.json",
|
|
33
|
+
"./react": "./react.json",
|
|
34
|
+
"./ignore": "./ignore.json"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"base.json",
|
|
38
|
+
"nestjs.json",
|
|
39
|
+
"react.json",
|
|
40
|
+
"ignore.json"
|
|
41
|
+
],
|
|
42
|
+
"packageManager": "yarn@4.3.1",
|
|
43
|
+
"scripts": {
|
|
44
|
+
"release": "release-it",
|
|
45
|
+
"changelog": "git cliff --prepend ./CHANGELOG.md -l --current -c ./cliff.toml -r ."
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"release-it": "^17.6.0"
|
|
49
|
+
}
|
|
50
50
|
}
|
package/react.json
CHANGED
|
@@ -1,30 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
|
|
3
|
+
"extends": [
|
|
4
|
+
"./base.json"
|
|
5
|
+
],
|
|
6
|
+
"javascript": {
|
|
7
|
+
"jsxRuntime": "transparent"
|
|
8
|
+
},
|
|
9
|
+
"css": {
|
|
10
|
+
"formatter": {
|
|
11
|
+
"enabled": true,
|
|
12
|
+
"indentWidth": 2,
|
|
13
|
+
"indentStyle": "tab",
|
|
14
|
+
"lineEnding": "lf",
|
|
15
|
+
"lineWidth": 120
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"linter": {
|
|
19
|
+
"rules": {
|
|
20
|
+
"a11y": {
|
|
21
|
+
"all": true
|
|
22
|
+
},
|
|
23
|
+
"nursery": {
|
|
24
|
+
"useSortedClasses": "error"
|
|
25
|
+
},
|
|
26
|
+
"correctness": {
|
|
27
|
+
"noUnknownFunction": "error",
|
|
28
|
+
"noUnknownUnit": "error"
|
|
29
|
+
},
|
|
30
|
+
"security": {
|
|
31
|
+
"noDangerouslySetInnerHtml": "error",
|
|
32
|
+
"noDangerouslySetInnerHtmlWithChildren": "error"
|
|
33
|
+
},
|
|
34
|
+
"style": {
|
|
35
|
+
"noImplicitBoolean": "error",
|
|
36
|
+
"useFragmentSyntax": "error"
|
|
37
|
+
},
|
|
38
|
+
"suspicious": {
|
|
39
|
+
"noSuspiciousSemicolonInJsx": "error"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
30
43
|
}
|