Skip to content

Commit e145756

Browse files
committed
chore(build): replace eslint with biome
1 parent 0156de2 commit e145756

File tree

14 files changed

+149
-707
lines changed

14 files changed

+149
-707
lines changed

.eslintignore

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

.eslintrc

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

.prettierrc

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

biome.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0.0-beta.6/schema.json",
3+
"linter": {
4+
"enabled": true,
5+
"rules": {
6+
"recommended": true
7+
}
8+
},
9+
"formatter": {
10+
"enabled": true,
11+
"formatWithErrors": false,
12+
"indentStyle": "space",
13+
"indentWidth": 2
14+
},
15+
"javascript": {
16+
"formatter": {
17+
"quoteStyle": "single",
18+
"trailingCommas": "none",
19+
"semicolons": "asNeeded"
20+
}
21+
},
22+
"html": {
23+
"formatter": {
24+
"enabled": true
25+
}
26+
},
27+
"vcs": {
28+
"enabled": true,
29+
"clientKind": "git",
30+
"useIgnoreFile": true
31+
}
32+
}

bun.lock

Lines changed: 65 additions & 544 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,17 @@
77
"scripts": {
88
"build": "bun run --cwd packages/react-netlify-forms build",
99
"dev": "bun run --cwd packages/docs dev",
10-
"test": "bun run --cwd packages/react-netlify-forms test",
11-
"lint": "bun run --cwd packages/react-netlify-forms test:lint",
10+
"lint": "biome check",
11+
"format": "biome format --write .",
1212
"docs:dev": "bun run --cwd packages/docs dev",
1313
"docs:build": "bun run --cwd packages/docs build",
1414
"docs:preview": "bun run --cwd packages/docs preview"
1515
},
1616
"devDependencies": {
17+
"@biomejs/biome": "2.0.0-beta.6",
1718
"cz-conventional-changelog": "3.2.0",
18-
"eslint": "^8.40.0",
19-
"eslint-config-prettier": "^6.7.0",
20-
"eslint-config-react-app": "^7.0.1",
21-
"eslint-config-standard": "^14.1.0",
22-
"eslint-config-standard-react": "^9.2.0",
23-
"eslint-plugin-import": "^2.18.2",
24-
"eslint-plugin-node": "^11.0.0",
25-
"eslint-plugin-prettier": "^3.1.1",
26-
"eslint-plugin-promise": "^4.2.1",
27-
"eslint-plugin-react": "^7.17.0",
28-
"eslint-plugin-standard": "^4.0.1",
2919
"gh-pages": "^2.2.0",
30-
"netlify-cli": "^2.52.0",
31-
"prettier": "^2.0.4"
20+
"netlify-cli": "^2.52.0"
3221
},
3322
"config": {
3423
"commitizen": {

packages/docs/astro.config.mjs

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
// @ts-check
2-
import { defineConfig } from 'astro/config';
3-
import starlight from '@astrojs/starlight';
4-
import mdx from '@astrojs/mdx';
5-
import starlightThemeRapide from 'starlight-theme-rapide';
2+
import { defineConfig } from 'astro/config'
3+
import starlight from '@astrojs/starlight'
4+
import mdx from '@astrojs/mdx'
5+
import starlightThemeRapide from 'starlight-theme-rapide'
66

77
// https://astro.build/config
88
export default defineConfig({
9-
integrations: [
10-
starlight({
11-
plugins: [starlightThemeRapide()],
12-
title: 'react-netlify-forms',
13-
description: 'React components and hooks giving you the power of Netlify Forms',
14-
logo: {
15-
src: './src/assets/logo.png',
16-
alt: 'react-netlify-forms',
17-
},
18-
social: [
19-
{
20-
icon: 'github',
21-
label: 'GitHub',
22-
href: 'https://github.com/pyrax/react-netlify-forms',
23-
},
24-
],
25-
sidebar: [
26-
{
27-
label: 'Examples',
28-
autogenerate: { directory: 'examples' },
29-
},
30-
{ slug: 'reference' },
31-
{ slug: 'license' },
32-
],
33-
}),
34-
mdx(),
35-
],
36-
site: 'https://pyrax.github.io/react-netlify-forms',
37-
base: '/react-netlify-forms',
38-
});
9+
integrations: [
10+
starlight({
11+
plugins: [starlightThemeRapide()],
12+
title: 'react-netlify-forms',
13+
description:
14+
'React components and hooks giving you the power of Netlify Forms',
15+
logo: {
16+
src: './src/assets/logo.png',
17+
alt: 'react-netlify-forms'
18+
},
19+
social: [
20+
{
21+
icon: 'github',
22+
label: 'GitHub',
23+
href: 'https://github.com/pyrax/react-netlify-forms'
24+
}
25+
],
26+
sidebar: [
27+
{
28+
label: 'Examples',
29+
autogenerate: { directory: 'examples' }
30+
},
31+
{ slug: 'reference' },
32+
{ slug: 'license' }
33+
]
34+
}),
35+
mdx()
36+
],
37+
site: 'https://pyrax.github.io/react-netlify-forms',
38+
base: '/react-netlify-forms'
39+
})

packages/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
"sharp": "^0.32.5",
2323
"starlight-theme-rapide": "^0.5.1"
2424
}
25-
}
25+
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { defineCollection } from 'astro:content';
2-
import { docsLoader } from '@astrojs/starlight/loaders';
3-
import { docsSchema } from '@astrojs/starlight/schema';
1+
import { defineCollection } from 'astro:content'
2+
import { docsLoader } from '@astrojs/starlight/loaders'
3+
import { docsSchema } from '@astrojs/starlight/schema'
44

55
export const collections = {
6-
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
7-
};
6+
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() })
7+
}

packages/react-netlify-forms/.eslintrc

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

0 commit comments

Comments
 (0)