Skip to content

Commit ca2d51c

Browse files
authored
Upgraded dependencies (#254)
* Converted all with latest deps * Fix linting step * Remove unnecessary file * Fix lint command * Fix codacity issues * ignore yarn error * Fix codacy issue
1 parent ef8b15c commit ca2d51c

18 files changed

+4545
-4778
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ jobs:
77
steps:
88
- checkout
99
- run: yarn install
10-
- run: yarn tslint
10+
- run: yarn lint
1111
- run: yarn type-check
1212
- run: yarn test-coverage

.eslintrc

Lines changed: 0 additions & 18 deletions
This file was deleted.

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native-community',
4+
rules: {
5+
semi: 'off',
6+
},
7+
};

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ lib/
1111

1212
dist/
1313
node_modules
14+
yarn-error.log

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset']
3-
}
2+
presets: ['module:metro-react-native-babel-preset'],
3+
};

metro.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Metro configuration for React Native
3+
* https://github.com/facebook/react-native
4+
*
5+
* @format
6+
*/
7+
8+
module.exports = {
9+
transformer: {
10+
getTransformOptions: async () => ({
11+
transform: {
12+
experimentalImportSupport: false,
13+
inlineRequires: false,
14+
},
15+
}),
16+
},
17+
};

package.json

Lines changed: 97 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,100 @@
11
{
2-
"name": "react-native-nested-listview",
3-
"version": "0.9.0",
4-
"description": "Nested Listview for React native",
5-
"main": "./dist/index.js",
6-
"types": "./dist/index.d.ts",
7-
"scripts": {
8-
"test": "jest",
9-
"test-coverage": "jest && codecov",
10-
"tslint": "tslint -p .",
11-
"type-check": "tsc --noEmit",
12-
"prepublishOnly": "tsc -p ./ --outDir dist/",
13-
"add-react": "yarn add react@16.9.0 && yarn add react-native@0.61.4",
14-
"remove-react": "yarn remove react && yarn remove react-native",
15-
"prettier-check": "prettier --check 'src/**/*.{ts, tsx}'",
16-
"prettier-format": "prettier --write 'src/**/*.{ts, tsx}'"
17-
},
18-
"repository": {
19-
"type": "git",
20-
"url": "git+https://github.com/fjmorant/react-native-nested-listview.git"
21-
},
22-
"dependencies": {
23-
"object-hash": "2.0.1",
24-
"react-fast-compare": "2.0.4",
25-
"shortid": "2.2.15",
26-
"use-global-hook": "0.1.12"
27-
},
28-
"peerDependencies": {
29-
"react": "*",
30-
"react-native": "*"
31-
},
32-
"devDependencies": {
33-
"@babel/core": "7.8.4",
34-
"@babel/runtime": "7.7.2",
35-
"@types/jest": "25.1.1",
36-
"@types/use-global-hook": "0.1.2",
37-
"@types/object-hash": "1.3.1",
38-
"@types/react": "16.9.19",
39-
"@types/react-native": "0.60.22",
40-
"@types/react-test-renderer": "16.9.1",
41-
"@types/shortid": "0.0.29",
42-
"babel-jest": "24.9.0",
43-
"codecov": "3.7.1",
44-
"istanbul": "0.4.5",
45-
"istanbul-api": "2.1.6",
46-
"istanbul-reports": "3.0.0",
47-
"jest": "24.9.0",
48-
"metro-react-native-babel-preset": "0.57.0",
49-
"prettier": "1.19.1",
50-
"prettier-eslint": "9.0.1",
51-
"react": "16.9.0",
52-
"react-native": "0.61.4",
53-
"react-test-renderer": "16.12.0",
54-
"ts-jest": "24.3.0",
55-
"tslint": "5.20.1",
56-
"typescript": "3.7.5"
57-
},
58-
"keywords": [
59-
"react",
60-
"native",
61-
"list",
62-
"nested"
2+
"name": "react-native-nested-listview",
3+
"version": "0.9.0",
4+
"description": "Nested Listview for React native",
5+
"main": "./dist/index.js",
6+
"types": "./dist/index.d.ts",
7+
"scripts": {
8+
"test": "jest",
9+
"test-coverage": "jest && codecov",
10+
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx",
11+
"type-check": "tsc --noEmit",
12+
"prepublishOnly": "tsc -p ./ --outDir dist/",
13+
"add-react": "yarn add react@16.9.0 && yarn add react-native@0.61.4",
14+
"remove-react": "yarn remove react && yarn remove react-native",
15+
"prettier-check": "prettier --check 'src/**/*.{ts, tsx}'",
16+
"prettier-format": "prettier --write 'src/**/*.{ts, tsx}'"
17+
},
18+
"repository": {
19+
"type": "git",
20+
"url": "git+https://github.com/fjmorant/react-native-nested-listview.git"
21+
},
22+
"dependencies": {
23+
"object-hash": "2.1.1",
24+
"react-fast-compare": "3.2.0",
25+
"shortid": "2.2.16",
26+
"use-global-hook": "0.2.1"
27+
},
28+
"peerDependencies": {
29+
"react": "*",
30+
"react-native": "*"
31+
},
32+
"devDependencies": {
33+
"@babel/core": "7.8.4",
34+
"@babel/runtime": "7.8.4",
35+
"@react-native-community/eslint-config": "1.1.0",
36+
"@testing-library/jest-native": "^3.4.3",
37+
"@testing-library/react-native": "^7.1.0",
38+
"@types/jest": "25.2.3",
39+
"@types/object-hash": "1.3.4",
40+
"@types/react-native": "0.63.46",
41+
"@types/react-test-renderer": "16.9.2",
42+
"@types/shortid": "0.0.29",
43+
"@types/use-global-hook": "0.1.3",
44+
"babel-jest": "25.1.0",
45+
"codecov": "3.8.1",
46+
"eslint": "6.5.1",
47+
"istanbul": "0.4.5",
48+
"istanbul-api": "3.0.0",
49+
"istanbul-reports": "3.0.2",
50+
"jest": "25.1.0",
51+
"metro-react-native-babel-preset": "0.65.0",
52+
"prettier": "2.2.1",
53+
"prettier-eslint": "12.0.0",
54+
"react": "16.13.1",
55+
"react-native": "0.63.4",
56+
"react-test-renderer": "16.13.1",
57+
"typescript": "3.8.3"
58+
},
59+
"keywords": [
60+
"react",
61+
"native",
62+
"list",
63+
"nested"
64+
],
65+
"author": "Javier Morant",
66+
"license": "MIT",
67+
"bugs": {
68+
"url": "https://github.com/fjmorant/react-native-nested-listview/issues"
69+
},
70+
"homepage": "https://github.com/fjmorant/react-native-nested-listview#readme",
71+
"jest": {
72+
"preset": "react-native",
73+
"setupFilesAfterEnv": [
74+
"@testing-library/jest-native/extend-expect"
6375
],
64-
"author": "Javier Morant",
65-
"license": "MIT",
66-
"bugs": {
67-
"url": "https://github.com/fjmorant/react-native-nested-listview/issues"
68-
},
69-
"homepage": "https://github.com/fjmorant/react-native-nested-listview#readme",
70-
"jest": {
71-
"preset": "react-native",
72-
"moduleFileExtensions": [
73-
"ts",
74-
"tsx",
75-
"js"
76-
],
77-
"transform": {
78-
"^.+\\.(js)$": "<rootDir>/node_modules/babel-jest",
79-
"\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
80-
},
81-
"transformIgnorePatterns": [
82-
"node_modules/(?!(jest-)|react-native|react-navigation|react-clone-referenced-element|mobx-react|use-global-hook)"
83-
],
84-
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
85-
"modulePathIgnorePatterns": [
86-
"<rootDir>/examples/"
87-
],
88-
"testPathIgnorePatterns": [
89-
"\\.snap$",
90-
"<rootDir>/node_modules/",
91-
"<rootDir>/examples/",
92-
"<rootDir>/lib/",
93-
"<rootDir>/dist/"
94-
],
95-
"coverageDirectory": "./coverage/",
96-
"collectCoverage": true,
97-
"globals": {
98-
"ts-jest": {
99-
"babelConfig": true
100-
}
101-
}
102-
}
76+
"moduleFileExtensions": [
77+
"ts",
78+
"tsx",
79+
"js",
80+
"jsx",
81+
"json",
82+
"node"
83+
],
84+
"transformIgnorePatterns": [
85+
"node_modules/(?!(jest-)|react-native|react-navigation|react-clone-referenced-element|mobx-react|use-global-hook)"
86+
],
87+
"modulePathIgnorePatterns": [
88+
"<rootDir>/examples/"
89+
],
90+
"testPathIgnorePatterns": [
91+
"\\.snap$",
92+
"<rootDir>/node_modules/",
93+
"<rootDir>/examples/",
94+
"<rootDir>/lib/",
95+
"<rootDir>/dist/"
96+
],
97+
"coverageDirectory": "./coverage/",
98+
"collectCoverage": true
99+
}
103100
}

prettier.config.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module.exports = {
2-
trailingComma: 'es5',
3-
tabWidth: 4,
4-
semi: false,
5-
singleQuote: true,
6-
bracketSpacing: false,
7-
}
2+
bracketSpacing: true,
3+
jsxBracketSameLine: true,
4+
singleQuote: true,
5+
trailingComma: 'all',
6+
};

0 commit comments

Comments
 (0)