@nedcloarbr/biome-config 1.2.1 → 1.3.1

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 CHANGED
@@ -48,14 +48,32 @@ bun add --dev --exact @biomejs/biome @nedcloarbr/biome-config
48
48
 
49
49
  ## Usage
50
50
 
51
+ ### `NodeJS`
52
+
53
+ ```diff
54
+ # biome.json
55
+ + extends: ["@nedcloabr/biome-config]
56
+ ```
57
+
58
+ or
59
+
60
+ ```diff
61
+ # biome.json
62
+ + extends: ["@nedcloabr/biome-config/base]
63
+ ```
64
+
51
65
  ### [`NestJS`](https://nestjs.com/)
52
66
 
67
+ This config includes base config
68
+
53
69
  ```diff
54
70
  # biome.json
55
71
  + "extends": ["@nedcloarbr/biome-config/nestjs"]
56
72
  ```
57
73
 
58
- ### `Ignore` (an array of commonly ignored folders)
74
+ ### `Ignore` (an array of commonly ignored folders)
75
+
76
+ This config don't includes base config
59
77
 
60
78
  ```diff
61
79
  # biome.json
@@ -67,10 +85,14 @@ bun add --dev --exact @biomejs/biome @nedcloarbr/biome-config
67
85
 
68
86
  Add support for other types of projects
69
87
 
70
- - [ ] ReactJS
71
- - [ ] Vanilla
72
- - [ ] Vite
73
- - [ ] NextJS
74
- - [ ] NodeJS
75
- - [ ] Vanilla
76
- - [ ] TypeScript
88
+ - Configs
89
+ - [ ] ReactJS
90
+ - [ ] Vanilla
91
+ - [ ] Vite
92
+ - [ ] NextJS
93
+ - [x] NodeJS
94
+ - [x] Vanilla
95
+ - [x] TypeScript
96
+
97
+ - Repository
98
+ - [ ] Fix cliff for generate changelogs correctly
package/base.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.8.3/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
+ "trailingComma": "all"
20
+ }
21
+ },
22
+ "linter": {
23
+ "enabled": true,
24
+ "rules": {
25
+ "complexity": {
26
+ "noEmptyTypeParameters": "error",
27
+ "noExcessiveCognitiveComplexity": "error",
28
+ "noForEach": "error",
29
+ "noUselessCatch": "error",
30
+ "noUselessConstructor": "error",
31
+ "noUselessEmptyExport": "error",
32
+ "noUselessSwitchCase": "error",
33
+ "noVoid": "off",
34
+ "useArrowFunction": "error",
35
+ "useLiteralKeys": "off",
36
+ "useOptionalChain": "error",
37
+ "useRegexLiterals": "error",
38
+ "useSimplifiedLogicExpression": "error"
39
+ },
40
+ "correctness": {
41
+ "noConstAssign": "error",
42
+ "noConstantCondition": "error",
43
+ "noEmptyCharacterClassInRegex": "error",
44
+ "noEmptyPattern": "error",
45
+ "noGlobalObjectCalls": "error",
46
+ "noInnerDeclarations": "off",
47
+ "noInvalidConstructorSuper": "error",
48
+ "noInvalidNewBuiltin": "error",
49
+ "noSwitchDeclarations": "off"
50
+ },
51
+ "nursery": {
52
+ "noDuplicateJsonKeys": "error"
53
+ },
54
+ "style": {
55
+ "noDefaultExport": "error",
56
+ "noVar": "error",
57
+ "noUselessElse": "error",
58
+ "noNonNullAssertion": "off",
59
+ "useAsConstAssertion": "warn",
60
+ "useConst": "error",
61
+ "useNodejsImportProtocol": "error",
62
+ "useShorthandArrayType": "error",
63
+ "useSingleVarDeclarator": "error"
64
+ },
65
+ "suspicious": {
66
+ "noApproximativeNumericConstant": "error",
67
+ "noCatchAssign": "error",
68
+ "noConfusingVoidType": "error",
69
+ "noDoubleEquals": "error",
70
+ "noDuplicateCase": "error",
71
+ "noDuplicateParameters": "error",
72
+ "noEmptyBlockStatements": "error",
73
+ "noEmptyInterface": "error",
74
+ "noExplicitAny": "error"
75
+ }
76
+ }
77
+ }
78
+ }
package/nestjs.json CHANGED
@@ -1,87 +1,22 @@
1
1
  {
2
2
  "$schema": "https://biomejs.dev/schemas/1.8.3/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
- },
3
+ "extends": ["./base.json"],
13
4
  "javascript": {
14
5
  "parser": {
15
6
  "unsafeParameterDecoratorsEnabled": true
16
- },
17
- "formatter": {
18
- "enabled": true,
19
- "semicolons": "always",
20
- "quoteStyle": "double",
21
- "quoteProperties": "asNeeded",
22
- "trailingComma": "all"
23
7
  }
24
8
  },
25
9
  "linter": {
26
- "enabled": true,
27
10
  "rules": {
28
- "complexity": {
29
- "noEmptyTypeParameters": "error",
30
- "noExcessiveCognitiveComplexity": "error",
31
- "noForEach": "error",
32
- "noUselessCatch": "error",
33
- "noUselessConstructor": "error",
34
- "noUselessEmptyExport": "error",
35
- "noUselessSwitchCase": "error",
36
- "noVoid": "off",
37
- "useArrowFunction": "error",
38
- "useLiteralKeys": "off",
39
- "useOptionalChain": "error",
40
- "useRegexLiterals": "error",
41
- "useSimplifiedLogicExpression": "error"
42
- },
43
- "correctness": {
44
- "noConstAssign": "error",
45
- "noConstantCondition": "error",
46
- "noEmptyCharacterClassInRegex": "error",
47
- "noEmptyPattern": "error",
48
- "noGlobalObjectCalls": "error",
49
- "noInnerDeclarations": "off",
50
- "noInvalidConstructorSuper": "error",
51
- "noInvalidNewBuiltin": "error",
52
- "noSwitchDeclarations": "off"
53
- },
54
- "nursery": {
55
- "noDuplicateJsonKeys": "error"
56
- },
57
11
  "style": {
58
- "noDefaultExport": "error",
59
- "noVar": "error",
60
- "noUselessElse": "error",
61
- "noNonNullAssertion": "off",
62
- "useAsConstAssertion": "warn",
63
- "useConst": "error",
64
12
  "useExportType": {
65
- "level":"info",
66
- "fix": "none"
67
- },
13
+ "level": "info",
14
+ "fix": "none"
15
+ },
68
16
  "useImportType": {
69
- "level":"info",
70
- "fix": "none"
71
- },
72
- "useShorthandArrayType": "error",
73
- "useSingleVarDeclarator": "error"
74
- },
75
- "suspicious": {
76
- "noApproximativeNumericConstant": "error",
77
- "noCatchAssign": "error",
78
- "noConfusingVoidType": "error",
79
- "noDoubleEquals": "error",
80
- "noDuplicateCase": "error",
81
- "noDuplicateParameters": "error",
82
- "noEmptyBlockStatements": "error",
83
- "noEmptyInterface": "error",
84
- "noExplicitAny": "error"
17
+ "level": "info",
18
+ "fix": "none"
19
+ }
85
20
  }
86
21
  }
87
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nedcloarbr/biome-config",
3
- "version": "1.2.1",
3
+ "version": "1.3.1",
4
4
  "description": "BiomeJS Configuration used by NedcloarBR in their projects",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -27,10 +27,13 @@
27
27
  "formatter"
28
28
  ],
29
29
  "exports": {
30
+ ".": "./base.json",
31
+ "./base": "./base.json",
30
32
  "./nestjs": "./nestjs.json",
31
33
  "./ignore": "./ignore.json"
32
34
  },
33
35
  "files": [
36
+ "base.json",
34
37
  "nestjs.json",
35
38
  "ignore.json"
36
39
  ],