From 3fc8706007d896dcbde69c0ce924a6a5eb66aba6 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Mon, 4 Dec 2023 08:52:48 -0700 Subject: refactor: implement biome (#1467) - add `biome.json` - add `biome:check` and `biome:check:fix` commands to `package.json` - add `biome:check:fix` command to run as part of `prepare-code` command - install `@biomejs/biome` dependency - add `@npmcli/move-file` v2.0.1 to `pnpm.allowedDeprecatedVersions` - fix or comment out various reported lint issues --- biome.json | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 biome.json (limited to 'biome.json') diff --git a/biome.json b/biome.json new file mode 100644 index 000000000..0e7563225 --- /dev/null +++ b/biome.json @@ -0,0 +1,36 @@ +{ + "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", + "formatter": { + "enabled": false + }, + "organizeImports": { + "enabled": false + }, + "linter": { + "ignore": ["build", "coverage", "node_modules", "recipes", "*.json"], + "rules": { + "style": { + "noNonNullAssertion": "off", + "noInferrableTypes": "off", + "noParameterAssign": "off" + }, + "complexity": { + "useLiteralKeys": "off", + "noUselessConstructor": "off", + "noForEach": "off", + "noBannedTypes": "off" + }, + "suspicious": { + "noEmptyInterface": "off", + "noExplicitAny": "off", + "noArrayIndexKey": "off" + }, + "performance": { + "noDelete": "off" + }, + "a11y": { + "useKeyWithClickEvents": "off" + } + } + } +} -- cgit v1.2.3-54-g00ecf