@nedcloarbr/biome-config 1.2.0 → 1.3.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 CHANGED
@@ -48,21 +48,51 @@ 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
 
74
+ ### `Ignore` (an array of commonly ignored folders)
75
+
76
+ This config don't includes base config
77
+
78
+ ```diff
79
+ # biome.json
80
+ + "extends": ["@nedcloarbr/biome-config/ignore"]
81
+ ```
82
+
83
+
58
84
  ## To-Do
59
85
 
60
86
  Add support for other types of projects
61
87
 
62
- - [ ] ReactJS
63
- - [ ] Vanilla
64
- - [ ] Vite
65
- - [ ] NextJS
66
- - [ ] NodeJS
67
- - [ ] Vanilla
68
- - [ ] 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,77 @@
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
+ "useShorthandArrayType": "error",
62
+ "useSingleVarDeclarator": "error"
63
+ },
64
+ "suspicious": {
65
+ "noApproximativeNumericConstant": "error",
66
+ "noCatchAssign": "error",
67
+ "noConfusingVoidType": "error",
68
+ "noDoubleEquals": "error",
69
+ "noDuplicateCase": "error",
70
+ "noDuplicateParameters": "error",
71
+ "noEmptyBlockStatements": "error",
72
+ "noEmptyInterface": "error",
73
+ "noExplicitAny": "error"
74
+ }
75
+ }
76
+ }
77
+ }
package/ignore.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3
+ "files": {
4
+ "ignore": [
5
+ "dist/*",
6
+ "out/*",
7
+ "build/*",
8
+ "coverage/*"
9
+ ],
10
+ "ignoreUnknown": true
11
+ }
12
+ }
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.0",
3
+ "version": "1.3.0",
4
4
  "description": "BiomeJS Configuration used by NedcloarBR in their projects",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -27,10 +27,15 @@
27
27
  "formatter"
28
28
  ],
29
29
  "exports": {
30
- "./nestjs": "./nestjs.json"
30
+ ".": "./base.json",
31
+ "./base": "./base.json",
32
+ "./nestjs": "./nestjs.json",
33
+ "./ignore": "./ignore.json"
31
34
  },
32
35
  "files": [
33
- "nestjs.json"
36
+ "base.json",
37
+ "nestjs.json",
38
+ "ignore.json"
34
39
  ],
35
40
  "packageManager": "yarn@4.3.1",
36
41
  "scripts": {