Skip to content

Commit d644b6f

Browse files
authored
Merge pull request #57 from contentpass/fix-linter-configuration
Fix linter configuration
2 parents 5699995 + 7d672b7 commit d644b6f

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = [
1919
'**/coverage/**',
2020
'**/*.config.js',
2121
'**/babel.config.js',
22+
'.yarn/**',
2223
],
2324
},
2425
...compat.extends('@react-native', 'prettier'),

lefthook.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ pre-commit:
33
commands:
44
lint:
55
glob: "*.{js,ts,jsx,tsx}"
6-
run: npx eslint {staged_files}
6+
run: npx eslint --no-warn-ignored {staged_files}
77
types:
8-
glob: "*.{js,ts, jsx, tsx}"
9-
run: npx tsc
8+
glob: "*.{js,ts,jsx,tsx}"
9+
run: npx tsc --noEmit
1010
commit-msg:
1111
parallel: true
1212
commands:

tsconfig.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"compilerOptions": {
44
"rootDir": ".",
55
"paths": {
6-
"@contentpass/react-native-contentpass": ["./packages/react-native-contentpass/src/index"]
6+
"@contentpass/react-native-contentpass": ["./packages/react-native-contentpass/src/index"],
7+
"@contentpass/react-native-contentpass-ui": ["./packages/react-native-contentpass-ui/src/index"],
8+
"@contentpass/react-native-contentpass-cmp-onetrust": ["./packages/react-native-contentpass-cmp-onetrust/src/index"],
9+
"react-native-onetrust-cmp": ["./packages/react-native-contentpass-cmp-onetrust/src/react-native-onetrust-cmp.d.ts"]
710
}
8-
}
11+
},
12+
"include": ["packages/*/src/**/*"],
13+
"exclude": ["**/node_modules/**"]
914
}

0 commit comments

Comments
 (0)