Skip to content

Commit 78518fa

Browse files
authored
Merge pull request #21 from lxsmnsyc/biome
feat: 0.17
2 parents 2e1b535 + 6ef9ff1 commit 78518fa

69 files changed

Lines changed: 7189 additions & 8967 deletions

Some content is hidden

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

.eslintrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@ jobs:
66
runs-on: ubuntu-latest
77

88
steps:
9-
- uses: actions/checkout@v3
10-
- uses: pnpm/action-setup@v2.2.2
9+
- uses: actions/checkout@v4
10+
- uses: pnpm/action-setup@v4
1111
with:
1212
version: 8
13-
run_install: |
14-
- args: [--frozen-lockfile]
13+
run_install: true
1514

16-
- uses: actions/setup-node@v3
15+
- uses: actions/setup-node@v4
1716
with:
1817
node-version: 20
19-
cache: 'pnpm'
20-
18+
cache: "pnpm"
19+
2120
- name: Clean
2221
run: pnpm recursive run clean
2322
env:

.npmrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
strict-peer-dependencies=false
1+
strict-peer-dependencies=false
2+
prefer-workspace-packages=true
3+
link-workspace-packages=true

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Alexis Munsayac
3+
Copyright (c) 2025 Alexis Munsayac
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

biome.json

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
{
2+
"$schema": "https://unpkg.com/@biomejs/biome/configuration_schema.json",
3+
"files": {
4+
"ignore": ["node_modules/**/*"]
5+
},
6+
"vcs": {
7+
"useIgnoreFile": true
8+
},
9+
"linter": {
10+
"enabled": true,
11+
"ignore": ["node_modules/**/*"],
12+
"rules": {
13+
"recommended": true,
14+
"a11y": {
15+
"noAriaHiddenOnFocusable": "off",
16+
"useIframeTitle": "warn",
17+
"useKeyWithClickEvents": "warn",
18+
"useKeyWithMouseEvents": "warn"
19+
},
20+
"complexity": {
21+
"noForEach": "error",
22+
"noVoid": "off",
23+
"useOptionalChain": "warn",
24+
"useSimplifiedLogicExpression": "error"
25+
},
26+
"correctness": {
27+
"noConstantMathMinMaxClamp": "error",
28+
"noInvalidNewBuiltin": "error",
29+
"noNewSymbol": "error",
30+
"noNodejsModules": "off",
31+
"noUndeclaredDependencies": "off",
32+
"noUndeclaredVariables": "error",
33+
"noUnusedFunctionParameters": "error",
34+
"noUnusedImports": "error",
35+
"noUnusedPrivateClassMembers": "error",
36+
"noUnusedVariables": "error",
37+
"useArrayLiterals": "error"
38+
},
39+
"performance": {
40+
"noAccumulatingSpread": "error",
41+
"useTopLevelRegex": "error"
42+
},
43+
"security": {
44+
"noGlobalEval": "off"
45+
},
46+
"style": {
47+
"noArguments": "error",
48+
"noImplicitBoolean": "error",
49+
"noInferrableTypes": "error",
50+
"noNamespace": "error",
51+
"noNegationElse": "error",
52+
"noRestrictedGlobals": "error",
53+
"noShoutyConstants": "error",
54+
"noUnusedTemplateLiteral": "error",
55+
"noUselessElse": "error",
56+
"noVar": "error",
57+
"noYodaExpression": "error",
58+
"useAsConstAssertion": "error",
59+
"useBlockStatements": "error",
60+
"useCollapsedElseIf": "error",
61+
"useConsistentArrayType": "error",
62+
"useConsistentBuiltinInstantiation": "error",
63+
"useConst": "error",
64+
"useDefaultParameterLast": "error",
65+
"useEnumInitializers": "error",
66+
"useExponentiationOperator": "error",
67+
"useExportType": "error",
68+
"useFragmentSyntax": "error",
69+
"useForOf": "warn",
70+
"useImportType": "error",
71+
"useLiteralEnumMembers": "error",
72+
"useNodejsImportProtocol": "warn",
73+
"useNumberNamespace": "error",
74+
"useNumericLiterals": "error",
75+
"useSelfClosingElements": "error",
76+
"useShorthandArrayType": "error",
77+
"useShorthandAssign": "error",
78+
"useShorthandFunctionType": "warn",
79+
"useSingleCaseStatement": "error",
80+
"useSingleVarDeclarator": "error",
81+
"useTemplate": "off",
82+
"useWhile": "error"
83+
},
84+
"suspicious": {
85+
"noConsoleLog": "warn",
86+
"noConstEnum": "off",
87+
"noDebugger": "off",
88+
"noEmptyBlockStatements": "error",
89+
"noExplicitAny": "warn",
90+
"noImplicitAnyLet": "off",
91+
"noMisrefactoredShorthandAssign": "off",
92+
"noSelfCompare": "off",
93+
"noSparseArray": "off",
94+
"noThenProperty": "warn",
95+
"useAwait": "error",
96+
"useErrorMessage": "error"
97+
}
98+
}
99+
},
100+
"formatter": {
101+
"enabled": true,
102+
"ignore": ["node_modules/**/*"],
103+
"formatWithErrors": false,
104+
"indentWidth": 2,
105+
"indentStyle": "space",
106+
"lineEnding": "lf",
107+
"lineWidth": 80
108+
},
109+
"organizeImports": {
110+
"enabled": true,
111+
"ignore": ["node_modules/**/*"]
112+
},
113+
"javascript": {
114+
"formatter": {
115+
"enabled": true,
116+
"arrowParentheses": "asNeeded",
117+
"bracketSameLine": false,
118+
"bracketSpacing": true,
119+
"indentWidth": 2,
120+
"indentStyle": "space",
121+
"jsxQuoteStyle": "double",
122+
"lineEnding": "lf",
123+
"lineWidth": 80,
124+
"quoteProperties": "asNeeded",
125+
"quoteStyle": "single",
126+
"semicolons": "always",
127+
"trailingCommas": "all"
128+
},
129+
"globals": [],
130+
"parser": {
131+
"unsafeParameterDecoratorsEnabled": true
132+
}
133+
},
134+
"json": {
135+
"formatter": {
136+
"enabled": true,
137+
"indentWidth": 2,
138+
"indentStyle": "space",
139+
"lineEnding": "lf",
140+
"lineWidth": 80
141+
},
142+
"parser": {
143+
"allowComments": false,
144+
"allowTrailingCommas": false
145+
}
146+
}
147+
}

examples/comments/.eslintrc.cjs

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/comments/index.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite App</title>
8-
</head>
9-
<body>
10-
<div id="app"></div>
11-
<script type="module" src="/src/main.tsx"></script>
12-
</body>
13-
</html>
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>Vite App</title>
9+
</head>
10+
11+
<body>
12+
<div id="app"></div>
13+
<script type="module" src="/src/main.tsx"></script>
14+
</body>
15+
16+
</html>

examples/comments/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,17 @@
88
"serve": "vite preview"
99
},
1010
"devDependencies": {
11-
"eslint": "^8.51.0",
12-
"eslint-config-lxsmnsyc": "^0.6.5",
1311
"solid-labels": "0.16.0",
14-
"typescript": "^5.2.2",
15-
"vite": "^4.5.0",
16-
"vite-plugin-solid": "^2.7.2",
12+
"typescript": "^5.8.2",
13+
"vite": "^6.1.1",
14+
"vite-plugin-solid": "^2.11.2",
1715
"vite-plugin-solid-labels": "0.16.1"
1816
},
1917
"private": true,
2018
"publishConfig": {
2119
"access": "restricted"
2220
},
2321
"dependencies": {
24-
"solid-js": "^1.8.0"
22+
"solid-js": "^1.9.3"
2523
}
2624
}

examples/comments/tsconfig.eslint.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/ctf/.eslintrc.cjs

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)