Skip to content

Commit

Permalink
+biome
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Sep 2, 2024
1 parent a18968c commit d98d1d8
Show file tree
Hide file tree
Showing 740 changed files with 21,356 additions and 23,833 deletions.
17 changes: 0 additions & 17 deletions .eslintignore

This file was deleted.

69 changes: 0 additions & 69 deletions .eslintrc.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ typings/
# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

Expand Down
253 changes: 253 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": { "enabled": true },
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noExtraBooleanCast": "error",
"noMultipleSpacesInRegularExpressionLiterals": "error",
"noUselessCatch": "error",
"noUselessTypeConstraint": "error",
"noWith": "error"
},
"correctness": {
"noConstAssign": "error",
"noConstantCondition": "error",
"noEmptyCharacterClassInRegex": "error",
"noEmptyPattern": "error",
"noGlobalObjectCalls": "error",
"noInnerDeclarations": "error",
"noInvalidConstructorSuper": "error",
"noNewSymbol": "error",
"noNonoctalDecimalEscape": "error",
"noPrecisionLoss": "error",
"noSelfAssign": "error",
"noSetterReturn": "error",
"noSwitchDeclarations": "error",
"noUndeclaredVariables": "error",
"noUnreachable": "error",
"noUnreachableSuper": "error",
"noUnsafeFinally": "error",
"noUnsafeOptionalChaining": "error",
"noUnusedLabels": "error",
"noUnusedVariables": "error",
"useArrayLiterals": "off",
"useIsNan": "error",
"useValidForDirection": "error",
"useYield": "error"
},
"style": {
"noNamespace": "error",
"useAsConstAssertion": "error",
"useBlockStatements": "off"
},
"suspicious": {
"noAsyncPromiseExecutor": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCompareNegZero": "error",
"noControlCharactersInRegex": "error",
"noDebugger": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyBlockStatements": "error",
"noExplicitAny": "off",
"noExtraNonNullAssertion": "error",
"noFallthroughSwitchClause": "error",
"noFunctionAssign": "error",
"noGlobalAssign": "error",
"noImportAssign": "error",
"noMisleadingCharacterClass": "error",
"noMisleadingInstantiator": "error",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noShadowRestrictedNames": "error",
"noUnsafeDeclarationMerging": "error",
"noUnsafeNegation": "error",
"useAwait": "error",
"useGetterReturn": "error",
"useNamespaceKeyword": "error",
"useValidTypeof": "error"
}
},
"ignore": [
"node_modules/**",
"dist/**",
"**/coverage",
"**/.github",
"**/samples",
"**/main.d.ts",
"docs/**",
"**/vite.config.ts",
"**/vitest.config.ts"
]
},
"javascript": {
"globals": [
"Float32Array",
"Uint8ClampedArray",
"clearTimeout",
"clearImmediate",
"TextEncoder",
"Reflect",
"DataView",
"Set",
"BigUint64Array",
"clearInterval",
"queueMicrotask",
"Int16Array",
"global",
"root",
"globalThis",
"BigInt",
"Promise",
"Int32Array",
"setImmediate",
"Buffer",
"Float64Array",
"Symbol",
"Uint32Array",
"Uint8Array",
"Atomics",
"WeakMap",
"WebAssembly",
"Uint16Array",
"setTimeout",
"Proxy",
"Map",
"ArrayBuffer",
"BigInt64Array",
"SharedArrayBuffer",
"WeakSet",
"TextDecoder",
"URL",
"console",
"process",
"GLOBAL",
"URLSearchParams",
"setInterval",
"Int8Array",
"Intl"
]
},
"overrides": [
{
"include": ["*.cjs", ".*.cjs"],
"javascript": {
"globals": [
"Float32Array",
"Uint8ClampedArray",
"clearTimeout",
"clearImmediate",
"TextEncoder",
"Reflect",
"DataView",
"Set",
"BigUint64Array",
"clearInterval",
"queueMicrotask",
"Int16Array",
"global",
"root",
"globalThis",
"BigInt",
"Promise",
"require",
"Int32Array",
"setImmediate",
"Buffer",
"Float64Array",
"Symbol",
"Uint32Array",
"Uint8Array",
"Atomics",
"WeakMap",
"WebAssembly",
"Uint16Array",
"module",
"setTimeout",
"__dirname",
"Proxy",
"Map",
"ArrayBuffer",
"BigInt64Array",
"SharedArrayBuffer",
"WeakSet",
"TextDecoder",
"URL",
"console",
"process",
"__filename",
"GLOBAL",
"URLSearchParams",
"exports",
"setInterval",
"Int8Array",
"Intl"
]
},
"linter": { "rules": {} }
},
{
"include": ["*.mjs", ".*.mjs"],
"javascript": {
"globals": [
"Float32Array",
"Uint8ClampedArray",
"clearTimeout",
"clearImmediate",
"TextEncoder",
"Reflect",
"DataView",
"Set",
"BigUint64Array",
"clearInterval",
"queueMicrotask",
"Int16Array",
"global",
"root",
"globalThis",
"BigInt",
"Promise",
"Int32Array",
"setImmediate",
"Buffer",
"Float64Array",
"Symbol",
"Uint32Array",
"Uint8Array",
"Atomics",
"WeakMap",
"WebAssembly",
"Uint16Array",
"setTimeout",
"Proxy",
"Map",
"ArrayBuffer",
"BigInt64Array",
"SharedArrayBuffer",
"WeakSet",
"TextDecoder",
"URL",
"console",
"process",
"GLOBAL",
"URLSearchParams",
"setInterval",
"Int8Array",
"Intl"
]
},
"linter": { "rules": {} }
}
]
}
Loading

0 comments on commit d98d1d8

Please sign in to comment.