Skip to content

Commit d1fac9c

Browse files
committed
refactor: migrate from ESLint to Biome for code formatting and linting
1 parent 0ad21f2 commit d1fac9c

33 files changed

+620
-972
lines changed

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+
};

biome.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.1.0/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "tab"
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"recommended": true
19+
}
20+
},
21+
"javascript": {
22+
"formatter": {
23+
"quoteStyle": "double"
24+
}
25+
},
26+
"assist": {
27+
"enabled": true,
28+
"actions": {
29+
"source": {
30+
"organizeImports": "on"
31+
}
32+
}
33+
}
34+
}

bun.lock

Lines changed: 21 additions & 382 deletions
Large diffs are not rendered by default.

example/.eslintrc.js

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

example/.prettierrc.js

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

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['module:@react-native/babel-preset'],
2+
presets: ["module:@react-native/babel-preset"],
33
};

example/index.js

Lines changed: 3 additions & 3 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 App from './src/App';
7-
import {name as appName} from './app.json';
5+
import { AppRegistry } from "react-native";
6+
import { name as appName } from "./app.json";
7+
import App from "./src/App";
88

99
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
}

0 commit comments

Comments
 (0)