Skip to content

Commit e014336

Browse files
ematipicodyc3Conacloschansuke
authored
feat: promote rules for v2.4 (#9011)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Victorien Elvinger <[email protected]> Co-authored-by: dyc3 <[email protected]> Co-authored-by: Conaclos <[email protected]> Co-authored-by: chansuke <[email protected]>
1 parent 66ef5ba commit e014336

443 files changed

Lines changed: 1490 additions & 2855 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

biome.json renamed to .biome.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@
7171
"noUndeclaredDependencies": "error"
7272
},
7373
"suspicious": {
74-
"noVar": "on"
74+
"noVar": "on",
75+
"noImportCycles": "error"
7576
},
7677
"nursery": {
77-
"noFloatingPromises": "error",
78-
"noImportCycles": "error"
78+
"noFloatingPromises": "error"
7979
}
8080
}
8181
},
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
"@biomejs/biome": minor
3+
---
4+
5+
Promoted 21 nursery rules to stable groups.
6+
7+
#### Correctness
8+
9+
Promoted the following rules to the `correctness` group:
10+
11+
- [`noUnresolvedImports`](https://biomejs.dev/linter/rules/no-unresolved-imports/). The rule reports imports that cannot be resolved.
12+
The default rule severity is set to `error`.
13+
- [`noVueReservedProps`](https://biomejs.dev/linter/rules/no-vue-reserved-props/). The rule reports Vue reserved props usage.
14+
The default rule severity is set to `error`.
15+
- [`noVueReservedKeys`](https://biomejs.dev/linter/rules/no-vue-reserved-keys/). The rule reports Vue reserved keys usage.
16+
The default rule severity is set to `error`.
17+
- [`noVueDataObjectDeclaration`](https://biomejs.dev/linter/rules/no-vue-data-object-declaration/). The rule reports Vue 2 data declared as an object instead of a function.
18+
The default rule severity is set to `warn`.
19+
- [`noNextAsyncClientComponent`](https://biomejs.dev/linter/rules/no-next-async-client-component/). The rule reports async Next.js client components.
20+
The default rule severity is set to `warn`.
21+
- [`noVueDuplicateKeys`](https://biomejs.dev/linter/rules/no-vue-duplicate-keys/). The rule reports duplicate keys in Vue component options.
22+
The default rule severity is set to `error`.
23+
- [`noVueSetupPropsReactivityLoss`](https://biomejs.dev/linter/rules/no-vue-setup-props-reactivity-loss/). The rule reports destructuring of props in Vue 3 setup which causes reactivity loss.
24+
The default rule severity is set to `error`.
25+
- [`useQwikMethodUsage`](https://biomejs.dev/linter/rules/use-qwik-method-usage/). The rule enforces correct Qwik framework method usage.
26+
The default rule severity is set to `error`.
27+
- [`useQwikValidLexicalScope`](https://biomejs.dev/linter/rules/use-qwik-valid-lexical-scope/). The rule enforces valid lexical scope in Qwik framework.
28+
The default rule severity is set to `error`.
29+
30+
#### Suspicious
31+
32+
Promoted the following rules to the `suspicious` group:
33+
34+
- [`noImportCycles`](https://biomejs.dev/linter/rules/no-import-cycles/). The rule reports circular imports.
35+
The default rule severity is set to `warn`.
36+
- [`noDeprecatedImports`](https://biomejs.dev/linter/rules/no-deprecated-imports/). The rule reports imports of deprecated symbols.
37+
The default rule severity is set to `warn`.
38+
- [`noReactForwardRef`](https://biomejs.dev/linter/rules/no-react-forward-ref/). The rule reports usage of `React.forwardRef`.
39+
The default rule severity is set to `warn`.
40+
- [`noUnusedExpressions`](https://biomejs.dev/linter/rules/no-unused-expressions/). The rule reports expressions that are never used.
41+
The default rule severity is set to `warn`.
42+
- [`noEmptySource`](https://biomejs.dev/linter/rules/no-empty-source/). The rule reports empty source files.
43+
The default rule severity is set to `warn`.
44+
- [`useDeprecatedDate`](https://biomejs.dev/linter/rules/use-deprecated-date/). The rule enforces use of GraphQL `@deprecated` directive with date.
45+
The default rule severity is set to `warn`.
46+
- [`noDuplicateDependencies`](https://biomejs.dev/linter/rules/no-duplicate-dependencies/). The rule reports duplicate dependencies in package.json.
47+
The default rule severity is set to `warn`.
48+
49+
#### Complexity
50+
51+
Promoted the following rules to the `complexity` group:
52+
53+
- [`noUselessUndefined`](https://biomejs.dev/linter/rules/no-useless-undefined/). The rule reports useless `undefined` initialization and returns.
54+
The default rule severity is set to `info`.
55+
- [`useMaxParams`](https://biomejs.dev/linter/rules/use-max-params/). The rule enforces a maximum number of function parameters.
56+
The default rule severity is set to `warn`.
57+
- [`noUselessCatchBinding`](https://biomejs.dev/linter/rules/no-useless-catch-binding/). The rule reports useless catch binding parameters.
58+
The default rule severity is set to `info`.
59+
60+
#### Style
61+
62+
Promoted the following rules to the `style` group:
63+
64+
- [`useConsistentArrowReturn`](https://biomejs.dev/linter/rules/use-consistent-arrow-return/). The rule enforces consistent return in arrow functions.
65+
The default rule severity is set to `info`.
66+
- [`noJsxLiterals`](https://biomejs.dev/linter/rules/no-jsx-literals/). The rule reports literal strings in JSX.
67+
The default rule severity is set to `info`.

0 commit comments

Comments
 (0)