Skip to content

Commit

Permalink
Fix biome
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Jan 12, 2024
1 parent 45187bc commit 983501b
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 92 deletions.
44 changes: 26 additions & 18 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
{
"$schema": "https://unpkg.com/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": [
"node_modules/**/*"
]
"ignore": ["node_modules/**/*"]
},
"vcs": {
"useIgnoreFile": true
},
"linter": {
"enabled": true,
"ignore": [
"node_modules/**/*"
],
"ignore": ["node_modules/**/*"],
"rules": {
"a11y": {
"noAccessKey": "error",
"noAriaHiddenOnFocusable": "off",
"noAriaUnsupportedElements": "error",
"noAutofocus": "error",
"noBlankTarget": "error",
Expand All @@ -41,6 +38,7 @@
"useMediaCaption": "error",
"useValidAnchor": "error",
"useValidAriaProps": "error",
"useValidAriaRole": "error",
"useValidAriaValues": "error",
"useValidLang": "error"
},
Expand All @@ -67,6 +65,7 @@
"useFlatMap": "error",
"useLiteralKeys": "error",
"useOptionalChain": "warn",
"useRegexLiterals": "error",
"useSimpleNumberKeys": "error",
"useSimplifiedLogicExpression": "error"
},
Expand Down Expand Up @@ -116,6 +115,7 @@
"style": {
"noArguments": "error",
"noCommaOperator": "off",
"noDefaultExport": "off",
"noImplicitBoolean": "error",
"noInferrableTypes": "error",
"noNamespace": "error",
Expand Down Expand Up @@ -175,6 +175,7 @@
"noFunctionAssign": "error",
"noGlobalIsFinite": "error",
"noGlobalIsNan": "error",
"noImplicitAnyLet": "off",
"noImportAssign": "error",
"noLabelVar": "error",
"noMisleadingInstantiator": "error",
Expand All @@ -194,27 +195,36 @@
"useValidTypeof": "error"
},
"nursery": {
"noAriaHiddenOnFocusable": "off",
"noDefaultExport": "off",
"noDuplicateJsonKeys": "off",
"noEmptyBlockStatements": "error",
"noImplicitAnyLet": "off",
"noEmptyTypeParameters": "error",
"noGlobalEval": "off",
"noGlobalAssign": "error",
"noInvalidUseBeforeDeclaration": "error",
"noMisleadingCharacterClass": "error",
"noNodejsModules": "off",
"noThenProperty": "warn",
"noUnusedImports": "error",
"noUnusedPrivateClassMembers": "error",
"noUselessLoneBlockStatements": "error",
"noUselessTernary": "error",
"useAwait": "error",
"useConsistentArrayType": "error",
"useExportType": "error",
"useFilenamingConvention": "off",
"useForOf": "warn",
"useGroupedTypeImport": "error",
"useImportRestrictions": "off",
"useRegexLiterals": "error",
"useValidAriaRole": "error"
"useImportType": "error",
"useNodejsImportProtocol": "warn",
"useNumberNamespace": "error",
"useShorthandFunctionType": "warn"
}
}
},
"formatter": {
"enabled": true,
"ignore": [
"node_modules/**/*"
],
"ignore": ["node_modules/**/*"],
"formatWithErrors": false,
"indentWidth": 2,
"indentStyle": "space",
Expand All @@ -223,9 +233,7 @@
},
"organizeImports": {
"enabled": true,
"ignore": [
"node_modules/**/*"
]
"ignore": ["node_modules/**/*"]
},
"javascript": {
"formatter": {
Expand Down Expand Up @@ -261,4 +269,4 @@
"allowTrailingCommas": false
}
}
}
}
17 changes: 6 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,14 @@
},
"typesVersions": {
"*": {
"babel": [
"./dist/src/babel/index.d.ts"
]
"babel": ["./dist/src/babel/index.d.ts"]
}
},
"files": [
"dist"
],
"files": ["dist"],
"publishConfig": {
"access": "public"
},
"contributors": [
"Alexis Munsayac"
],
"contributors": ["Alexis Munsayac"],
"sideEffects": false,
"scripts": {
"build": "rollup -c",
Expand All @@ -52,11 +46,12 @@
},
"devDependencies": {
"@babel/core": "^7.23.6",
"@biomejs/biome": "^1.4.1",
"@biomejs/biome": "^1.5.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.5",
"@types/babel__core": "^7.20.5",
"@types/babel__generator": "^7.6.8",
"@types/babel__helper-module-imports": "^7.18.3",
"@types/babel__traverse": "^7.20.4",
"@types/node": "^20.10.5",
"rollup": "^4.9.1",
Expand All @@ -73,4 +68,4 @@
"@babel/helper-module-imports": "^7.22.15",
"@babel/types": "^7.23.6"
}
}
}
78 changes: 54 additions & 24 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions src/babel/env.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/babel/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path';
import * as babel from '@babel/core';
import type * as babel from '@babel/core';
import * as t from '@babel/types';
import _generator from '@babel/generator';
import { addNamed } from '@babel/helper-module-imports';
Expand Down

0 comments on commit 983501b

Please sign in to comment.