Skip to content

Commit

Permalink
chore: remove biome format rule indentStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkaxis committed Oct 3, 2023
1 parent 3f2b27a commit 6c0d90c
Show file tree
Hide file tree
Showing 225 changed files with 15,611 additions and 15,615 deletions.
4 changes: 2 additions & 2 deletions .vim/coc-settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"tsserver.tsdk": ".yarn/sdks/typescript/lib",
"workspace.workspaceFolderCheckCwd": false
"tsserver.tsdk": ".yarn/sdks/typescript/lib",
"workspace.workspaceFolderCheckCwd": false
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["arcanis.vscode-zipfs"]
"recommendations": ["arcanis.vscode-zipfs"]
}
20 changes: 10 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"editor.formatOnSave": true,
"javascript.format.enable": false,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"typescript.enablePromptUseWorkspaceTsdk": true
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"editor.formatOnSave": true,
"javascript.format.enable": false,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"typescript.enablePromptUseWorkspaceTsdk": true
}
102 changes: 51 additions & 51 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
const presets = [
'@babel/preset-typescript',
[
'@babel/preset-react',
{
runtime: 'automatic',
},
],
'@babel/preset-typescript',
[
'@babel/preset-react',
{
runtime: 'automatic',
},
],
]

module.exports = {
presets: [
['@babel/preset-env', { targets: { esmodules: true } }],
...presets,
],
plugins: ['babel-plugin-styled-components'],
env: {
test: {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
...presets,
],
},
docs: {
presets: [
[
'@babel/preset-env',
{
debug: false,
useBuiltIns: 'usage',
corejs: {
version: 3,
proposals: true,
},
modules: 'commonjs',
targets: {
browsers: [
// Desktop browsers
'last 4 Chrome versions',
'Edge > 15',
'last 4 Firefox versions',
'Firefox ESR',
'last 2 Safari major versions',
presets: [
['@babel/preset-env', { targets: { esmodules: true } }],
...presets,
],
plugins: ['babel-plugin-styled-components'],
env: {
test: {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
...presets,
],
},
docs: {
presets: [
[
'@babel/preset-env',
{
debug: false,
useBuiltIns: 'usage',
corejs: {
version: 3,
proposals: true,
},
modules: 'commonjs',
targets: {
browsers: [
// Desktop browsers
'last 4 Chrome versions',
'Edge > 15',
'last 4 Firefox versions',
'Firefox ESR',
'last 2 Safari major versions',

// Mobile browsers
'last 2 ChromeAndroid versions',
'last 2 FirefoxAndroid versions',
'last 2 iOS major versions',
],
},
},
],
...presets,
],
},
},
// Mobile browsers
'last 2 ChromeAndroid versions',
'last 2 FirefoxAndroid versions',
'last 2 iOS major versions',
],
},
},
],
...presets,
],
},
},
}
118 changes: 57 additions & 61 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,59 @@
{
"$schema": "https://biomejs.dev/schemas/1.2.2/schema.json",
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noEmptyInterface": "off",
"noExplicitAny": "off",
"noArrayIndexKey": "off",
"noShadowRestrictedNames": "off",
"noAssignInExpressions": "off"
},
"complexity": {
"noUselessFragments": "off",
"useLiteralKeys": "off",
"noUselessSwitchCase": "off"
},
"style": {
"noUnusedTemplateLiteral": "off",
"useExponentiationOperator": "off",
"noParameterAssign": "off",
"useEnumInitializers": "off",
"useSelfClosingElements": "off"
},
"a11y": {
"noSvgWithoutTitle": "off",
"noPositiveTabindex": "off"
},
"correctness": {
"noSelfAssign": "off"
}
}
},
"formatter": {
"indentStyle": "space"
},
"files": {
"ignore": [
"packages/**/build",
"packages/**/dist",
"packages/**/*.spec.ts",
"packages/icons/src/__generated__",
"./packages/docs/src/props.json",
".pnp.cjs",
".pnp.loader.mjs",
"coverage"
]
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single",
"indentStyle": "space",
"trailingComma": "es5",
"arrowParentheses": "asNeeded",
"quoteProperties": "preserve"
}
}
"$schema": "https://biomejs.dev/schemas/1.2.2/schema.json",
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noEmptyInterface": "off",
"noExplicitAny": "off",
"noArrayIndexKey": "off",
"noShadowRestrictedNames": "off",
"noAssignInExpressions": "off"
},
"complexity": {
"noUselessFragments": "off",
"useLiteralKeys": "off",
"noUselessSwitchCase": "off"
},
"style": {
"noUnusedTemplateLiteral": "off",
"useExponentiationOperator": "off",
"noParameterAssign": "off",
"useEnumInitializers": "off",
"useSelfClosingElements": "off"
},
"a11y": {
"noSvgWithoutTitle": "off",
"noPositiveTabindex": "off"
},
"correctness": {
"noSelfAssign": "off"
}
}
},
"files": {
"ignore": [
"packages/**/build",
"packages/**/dist",
"packages/**/*.spec.ts",
"packages/icons/src/__generated__",
"./packages/docs/src/props.json",
".pnp.cjs",
".pnp.loader.mjs",
"coverage"
]
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single",
"trailingComma": "es5",
"arrowParentheses": "asNeeded",
"quoteProperties": "preserve"
}
}
}
12 changes: 6 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
testEnvironment: 'jsdom',
collectCoverage: true,
coveragePathIgnorePatterns: ['/node_modules/', '/__generated__/', '/build/'],
testMatch: ['**/packages/**/?(*.)test.ts?(x)'],
transformIgnorePatterns: ['node_modules/(?!@juggle)'],
setupFiles: ['<rootDir>/jest/globals.tsx'],
testEnvironment: 'jsdom',
collectCoverage: true,
coveragePathIgnorePatterns: ['/node_modules/', '/__generated__/', '/build/'],
testMatch: ['**/packages/**/?(*.)test.ts?(x)'],
transformIgnorePatterns: ['node_modules/(?!@juggle)'],
setupFiles: ['<rootDir>/jest/globals.tsx'],
}
4 changes: 2 additions & 2 deletions jest/globals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { ReactNode, ReactElement, ReactPortal } from 'react'
import ReactDOM from 'react-dom'

ReactDOM.createPortal = jest.fn((c: ReactNode) => {
const element = c as ReactElement<Element>
return (<div>{element.props.children}</div>) as ReactPortal
const element = c as ReactElement<Element>
return (<div>{element.props.children}</div>) as ReactPortal
})
4 changes: 2 additions & 2 deletions packages/core/__mocks__/focus-trap-react.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { FC, ReactNode } from 'react'

export interface FocusTrapProps {
readonly children?: ReactNode
readonly children?: ReactNode
}

const FocusTrap: FC<FocusTrapProps> = ({ children }) => {
return <>{children}</>
return <>{children}</>
}

export default FocusTrap
Loading

0 comments on commit 6c0d90c

Please sign in to comment.