Skip to content

Commit 1e60c08

Browse files
author
iGroza
committed
chore: edit build config
1 parent a0e5452 commit 1e60c08

File tree

6 files changed

+67
-2566
lines changed

6 files changed

+67
-2566
lines changed

.eslintrc.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ module.exports = {
5555
'react-native/no-inline-styles': 2,
5656
'react-native/no-color-literals': 2,
5757
'react-native/no-single-element-style-arrays': 2,
58-
'react-hooks/exhaustive-deps': 'off'
58+
'react-hooks/exhaustive-deps': 'off',
59+
'no-empty': 'off',
60+
'only-arrow-functions': 'off',
61+
'one-variable-per-declaration': 'off',
62+
'no-bitwise': 'off',
5963
},
6064
},
6165
],

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
},
1313
"scripts": {
1414
"test": "jest --config jestconfig.json --passWithNoTests",
15-
"build": "rm -rf ./dist && tsc",
16-
"format": "prettier --write \"src/**/*.ts\"",
17-
"lint": "tslint -p tsconfig.json",
15+
"build": "yarn format && yarn test && rm -rf ./dist && tsc",
16+
"format": "yarn lint --fix && prettier --write \"src/**/*.ts\"",
17+
"lint": "eslint",
1818
"typescript:check": "tsc",
1919
"prettier:check": "prettier --check ./src",
2020
"prettier:format": "prettier --write \"src/**/*.ts\"",
@@ -54,7 +54,6 @@
5454
"@types/react-native": "^0.71.12",
5555
"jest": "^29.5.0",
5656
"react": "18.2.0",
57-
"react-native": "0.71.12",
5857
"react-native-ble-plx": "^2.0.3",
5958
"react-native-encrypted-storage": "^4.0.3",
6059
"ts-jest": "^29.1.0",

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import * as utils from './utils';
44

55
export {providers, utils, constants};
66

7-
export * from './providers'
7+
export * from './providers';

src/providers/sss/__tests__/lagrange-interpolation.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import BN from 'bn.js';
2-
import {lagrangeInterpolation} from '../lagrange-interpolation';
2+
import {lagrangeInterpolation} from '../../../utils/sss/lagrange-interpolation';
33

44
jest.mock('@haqq/shared-react-native', () => {
55
return {

src/providers/sss/__tests__/polynomial.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import BN from 'bn.js';
2-
import {Polynomial} from '../polynomial';
2+
import {Polynomial} from '../../../utils/sss/polynomial';
33

44
jest.mock('@haqq/shared-react-native', () => {
55
return {

0 commit comments

Comments
 (0)