Skip to content

Commit c1f8dbe

Browse files
authored
chore: Remove prettier, format Biome (#97)
* chore: Remove prettier, format Biome * fix: Lint biome
1 parent cd7133b commit c1f8dbe

48 files changed

Lines changed: 1287 additions & 1325 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

biome.json

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,39 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
3-
"vcs": {
4-
"enabled": false,
5-
"clientKind": "git",
6-
"useIgnoreFile": false
7-
},
8-
"files": {
9-
"ignoreUnknown": false,
10-
"includes": [
11-
"**",
12-
"!**/lib/**",
13-
"!**/ios/**",
14-
"!**/android/**",
15-
"!**/nitrogen/generated/**"
16-
]
2+
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": true,
10+
"includes": ["**", "!node_modules"]
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "space",
15+
"indentWidth": 2
16+
},
17+
"linter": {
18+
"enabled": true,
19+
"rules": {
20+
"recommended": true
1721
},
22+
"domains": {
23+
"react": "recommended"
24+
}
25+
},
26+
"assist": {
27+
"actions": {
28+
"source": {
29+
"organizeImports": "on"
30+
}
31+
}
32+
},
33+
"javascript": {
1834
"formatter": {
19-
"enabled": true,
20-
"indentStyle": "space",
21-
"indentWidth": 4
22-
},
23-
"linter": {
24-
"enabled": true,
25-
"rules": {
26-
"recommended": true
27-
}
28-
},
29-
"javascript": {
30-
"formatter": {
31-
"quoteStyle": "double"
32-
}
33-
},
34-
"assist": {
35-
"enabled": true,
36-
"actions": {
37-
"source": {
38-
"organizeImports": "on"
39-
}
40-
}
35+
"quoteStyle": "single",
36+
"semicolons": "asNeeded"
4137
}
38+
}
4239
}

bun.lock

Lines changed: 13 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "NitroImageExample",
3-
"displayName": "NitroImageExample"
2+
"name": "NitroImageExample",
3+
"displayName": "NitroImageExample"
44
}

example/babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ["module:@react-native/babel-preset"],
3-
};
2+
presets: ['module:@react-native/babel-preset'],
3+
}

example/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* @format
33
*/
44

5-
import { AppRegistry } from "react-native";
6-
import { name as appName } from "./app.json";
7-
import App from "./src/App";
5+
import { AppRegistry } from 'react-native'
6+
import { name as appName } from './app.json'
7+
import App from './src/App'
88

9-
AppRegistry.registerComponent(appName, () => App);
9+
AppRegistry.registerComponent(appName, () => App)
Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
{
2-
"images": [
3-
{
4-
"idiom": "iphone",
5-
"scale": "2x",
6-
"size": "20x20"
7-
},
8-
{
9-
"idiom": "iphone",
10-
"scale": "3x",
11-
"size": "20x20"
12-
},
13-
{
14-
"idiom": "iphone",
15-
"scale": "2x",
16-
"size": "29x29"
17-
},
18-
{
19-
"idiom": "iphone",
20-
"scale": "3x",
21-
"size": "29x29"
22-
},
23-
{
24-
"idiom": "iphone",
25-
"scale": "2x",
26-
"size": "40x40"
27-
},
28-
{
29-
"idiom": "iphone",
30-
"scale": "3x",
31-
"size": "40x40"
32-
},
33-
{
34-
"idiom": "iphone",
35-
"scale": "2x",
36-
"size": "60x60"
37-
},
38-
{
39-
"idiom": "iphone",
40-
"scale": "3x",
41-
"size": "60x60"
42-
},
43-
{
44-
"idiom": "ios-marketing",
45-
"scale": "1x",
46-
"size": "1024x1024"
47-
}
48-
],
49-
"info": {
50-
"author": "xcode",
51-
"version": 1
52-
}
2+
"images": [
3+
{
4+
"idiom": "iphone",
5+
"scale": "2x",
6+
"size": "20x20"
7+
},
8+
{
9+
"idiom": "iphone",
10+
"scale": "3x",
11+
"size": "20x20"
12+
},
13+
{
14+
"idiom": "iphone",
15+
"scale": "2x",
16+
"size": "29x29"
17+
},
18+
{
19+
"idiom": "iphone",
20+
"scale": "3x",
21+
"size": "29x29"
22+
},
23+
{
24+
"idiom": "iphone",
25+
"scale": "2x",
26+
"size": "40x40"
27+
},
28+
{
29+
"idiom": "iphone",
30+
"scale": "3x",
31+
"size": "40x40"
32+
},
33+
{
34+
"idiom": "iphone",
35+
"scale": "2x",
36+
"size": "60x60"
37+
},
38+
{
39+
"idiom": "iphone",
40+
"scale": "3x",
41+
"size": "60x60"
42+
},
43+
{
44+
"idiom": "ios-marketing",
45+
"scale": "1x",
46+
"size": "1024x1024"
47+
}
48+
],
49+
"info": {
50+
"author": "xcode",
51+
"version": 1
52+
}
5353
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"info": {
3-
"version": 1,
4-
"author": "xcode"
5-
}
2+
"info": {
3+
"version": 1,
4+
"author": "xcode"
5+
}
66
}

example/metro.config.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const { getDefaultConfig, mergeConfig } = require("@react-native/metro-config");
2-
const path = require("node:path");
1+
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config')
2+
const path = require('node:path')
33

4-
const root = path.resolve(__dirname, "..");
4+
const root = path.resolve(__dirname, '..')
55

66
/**
77
* Metro configuration
@@ -10,17 +10,17 @@ const root = path.resolve(__dirname, "..");
1010
* @type {import('@react-native/metro-config').MetroConfig}
1111
*/
1212
const config = {
13-
watchFolders: [root],
13+
watchFolders: [root],
1414

15-
transformer: {
16-
getTransformOptions: async () => ({
17-
transform: {
18-
experimentalImportSupport: false,
19-
inlineRequires: true,
20-
},
21-
}),
22-
},
23-
};
15+
transformer: {
16+
getTransformOptions: async () => ({
17+
transform: {
18+
experimentalImportSupport: false,
19+
inlineRequires: true,
20+
},
21+
}),
22+
},
23+
}
2424

25-
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
26-
console.log(module.exports);
25+
module.exports = mergeConfig(getDefaultConfig(__dirname), config)
26+
console.log(module.exports)

0 commit comments

Comments
 (0)