@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 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
- "$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
- }
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
3
3
  "files": {
4
4
  "ignore": [
5
5
  "dist/*",
package/nestjs.json CHANGED
@@ -1,23 +1,25 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3
- "extends": ["./base.json"],
4
- "javascript": {
5
- "parser": {
6
- "unsafeParameterDecoratorsEnabled": true
7
- }
8
- },
9
- "linter": {
10
- "rules": {
11
- "style": {
12
- "useExportType": {
13
- "level": "info",
14
- "fix": "none"
15
- },
16
- "useImportType": {
17
- "level": "info",
18
- "fix": "none"
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
- "name": "@nedcloarbr/biome-config",
3
- "version": "1.4.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.4.1"
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
- "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3
- "extends": ["./base.json"],
4
- "javascript": {
5
- "jsxRuntime": "transparent"
6
- },
7
- "linter": {
8
- "rules": {
9
- "a11y": {
10
- "all": true
11
- },
12
- "nursery": {
13
- "noUnknownFunction": "error",
14
- "noUnknownUnit": "error",
15
- "useSortedClasses": "error"
16
- },
17
- "security": {
18
- "noDangerouslySetInnerHtml": "error",
19
- "noDangerouslySetInnerHtmlWithChildren": "error"
20
- },
21
- "style": {
22
- "noImplicitBoolean": "error",
23
- "useFragmentSyntax": "error"
24
- },
25
- "suspicious": {
26
- "noSuspiciousSemicolonInJsx": "error"
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
  }