-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switched to pnpm and added react native example app
Signed-off-by: Berend Sliedrecht <[email protected]>
- Loading branch information
Berend Sliedrecht
committed
Sep 24, 2023
1 parent
5fa7add
commit 5be99be
Showing
120 changed files
with
12,457 additions
and
11,453 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
root: true | ||
|
||
parser: '@typescript-eslint/parser' | ||
|
||
plugins: | ||
- '@typescript-eslint' | ||
- prettier | ||
- import | ||
|
||
parserOptions: | ||
tsconfigRootDir: . | ||
project: | ||
- './tsconfig.eslint.json' | ||
- './packages/**/tsconfig.json' | ||
|
||
extends: | ||
- eslint:recommended | ||
- plugin:@typescript-eslint/strict | ||
- plugin:@typescript-eslint/stylistic | ||
- plugin:prettier/recommended | ||
|
||
ignorePatterns: | ||
- '**/build/**' | ||
- '**/node_modules/**' | ||
|
||
rules: | ||
'@typescript-eslint/no-extraneous-class': off | ||
'@typescript-eslint/no-use-before-define': | ||
- error | ||
- functions: false | ||
classes: false | ||
variables: true | ||
'@typescript-eslint/explicit-member-accessibility': error | ||
no-console: error | ||
'@typescript-eslint/consistent-type-imports': error | ||
import/newline-after-import: | ||
- error | ||
- count: 1 | ||
import/order: | ||
- error | ||
- groups: | ||
- type | ||
- - builtin | ||
- external | ||
- parent | ||
- sibling | ||
- index | ||
alphabetize: | ||
order: asc | ||
newlines-between: always | ||
'@typescript-eslint/no-non-null-assertion': error | ||
import/no-extraneous-dependencies: | ||
- error | ||
- devDependencies: false | ||
|
||
overrides: | ||
- files: '**/tests/**' | ||
env: | ||
jest: true | ||
node: true | ||
|
||
- files: | ||
- '**/scripts/**' | ||
- '**/*.config.js' | ||
env: | ||
node: true | ||
rules: | ||
no-undef: off | ||
no-console: off | ||
'@typescript-eslint/no-var-requires': off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node-linker=hoisted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"printWidth": 120, | ||
"semi": false, | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
wrappers/javascript/anoncreds-react-native/tsconfig.build.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
import type { Config } from '@jest/types' | ||
import type { JestConfigWithTsJest } from 'ts-jest' | ||
|
||
import base from './jest.config.base' | ||
|
||
const config: Config.InitialOptions = { | ||
...base, | ||
roots: ['<rootDir>'], | ||
projects: ['<rootDir>/anoncreds-nodejs', '<rootDir>/anoncreds-shared', '<rootDir>/anoncreds-react-native'], | ||
const config: JestConfigWithTsJest = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.ts$': [ | ||
'ts-jest', | ||
{ | ||
tsconfig: 'tsconfig.test.json', | ||
isolatedModules: true | ||
} | ||
] | ||
}, | ||
moduleNameMapper: { | ||
'@hyperledger/anoncreds-shared': '<rootDir>/packages/anoncreds-shared/src' | ||
} | ||
} | ||
|
||
export default config | ||
module.exports = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.