Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = [
'**/coverage/**',
'**/*.config.js',
'**/babel.config.js',
'.yarn/**',
],
},
...compat.extends('@react-native', 'prettier'),
Expand Down
6 changes: 3 additions & 3 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ pre-commit:
commands:
lint:
glob: "*.{js,ts,jsx,tsx}"
run: npx eslint {staged_files}
run: npx eslint --no-warn-ignored {staged_files}
types:
glob: "*.{js,ts, jsx, tsx}"
run: npx tsc
glob: "*.{js,ts,jsx,tsx}"
run: npx tsc --noEmit
commit-msg:
parallel: true
commands:
Expand Down
9 changes: 7 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
"compilerOptions": {
"rootDir": ".",
"paths": {
"@contentpass/react-native-contentpass": ["./packages/react-native-contentpass/src/index"]
"@contentpass/react-native-contentpass": ["./packages/react-native-contentpass/src/index"],
"@contentpass/react-native-contentpass-ui": ["./packages/react-native-contentpass-ui/src/index"],
"@contentpass/react-native-contentpass-cmp-onetrust": ["./packages/react-native-contentpass-cmp-onetrust/src/index"],
"react-native-onetrust-cmp": ["./packages/react-native-contentpass-cmp-onetrust/src/react-native-onetrust-cmp.d.ts"]
}
}
},
"include": ["packages/*/src/**/*"],
"exclude": ["**/node_modules/**"]
}
Loading