Skip to content

Commit 863d86f

Browse files
committed
fix: lint and ts config
1 parent a93d6a6 commit 863d86f

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ module.exports = {
88
],
99
plugins: ['@typescript-eslint', 'prettier'],
1010
parser: '@typescript-eslint/parser',
11+
ignorePatterns: [
12+
"**/node_modules",
13+
"**/lib",
14+
"**/.eslintrc.js",
15+
"**/.prettierrc.js",
16+
"**/jest.config.js",
17+
"**/babel.config.js",
18+
"**/metro.config.js",
19+
"**/react-native.config.js",
20+
"**/tsconfig.json"
21+
],
1122
parserOptions: {
1223
project: true,
1324
tsconfigRootDir: __dirname,

example/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
root: true,
33
extends: '../.eslintrc.js',
44
parserOptions: {
5+
project: true,
56
tsconfigRootDir: __dirname,
6-
project: ['./tsconfig.json'],
77
},
88
};

example/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"extends": "../tsconfig.json",
3-
"include": ["src", "../package", "index.js", "app.json"],
3+
"include": ["src", "index.js"],
44
"compilerOptions": {
5-
"paths": {
6-
"react-native-nitro-sqlite": ["../package/src/index"]
7-
},
85
"experimentalDecorators": true
96
}
107
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"postinstall": "patch-package",
2424
"format-cpp": "./scripts/clang-format.sh",
2525
"typescript": "bun --filter=\"**\" typescript",
26-
"lint": "bun --filter=\"**\" lint",
26+
"lint": "bun package lint && bun example lint",
2727
"bootstrap": "bun --filter=\"**\" install && bun typescript && bun example pods",
2828
"release": "bun package prepare && release-it",
2929
"clean": "rm -rf **/tsconfig.tsbuildinfo node_modules package/node_module package/lib"

package/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
root: true,
33
extends: '../.eslintrc.js',
44
parserOptions: {
5+
project: true,
56
tsconfigRootDir: __dirname,
6-
project: ['./tsconfig.json'],
77
},
88
}

package/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"extends": "../tsconfig.json",
33
"include": ["src"],
44
"compilerOptions": {
5-
"paths": {
6-
"react-native-nitro-sqlite": ["./src/index"]
7-
},
85
"rootDir": "src"
96
}
107
}

0 commit comments

Comments
 (0)