Skip to content

fix (Warnings): Fix deprecated warnings when using react 15.6.2 due to wildcard import #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
],
"scripts": {
"test": "jest --verbose=true --coverage",
"build": "mkdir -p dist && mkdir -p themes && npm run build-styl && npm run build-jsx",
"build": "run-script-os",
"build:win32": "npm run build-styl && npm run build-jsx",
"build:default": "mkdir -p dist && mkdir -p themes && npm run build-styl && npm run build-jsx",
"lint": "tslint --project tsconfig.json --config tslint.json './src/**/*.tsx'",
"precommit": "npm run build && npm run lint",
"prepush": "npm test",
Expand All @@ -26,6 +28,11 @@
"build-styl": "npm run build-styl-monikai && npm run build-styl-1337 && npm run build-styl-acai && npm run build-styl-adventure",
"build-jsx": "tsc -p tsconfig.json"
},
"husky": {
"hooks": {
"pre-commit": "npm run precommit"
}
},
"keywords": [
"react",
"json",
Expand All @@ -42,21 +49,22 @@
"devDependencies": {
"@types/enzyme": "^3.1.15",
"@types/enzyme-adapter-react-16": "^1.0.3",
"@types/jest": "^23.3.11",
"@types/jest": "^24.0.18",
"@types/prop-types": "^15.5.8",
"@types/react": "^16.7.18",
"@types/react-dom": "^16.0.11",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.9.1",
"enzyme-to-json": "^3.3.5",
"husky": "^1.3.1",
"husky": "^3.0.5",
"jest": "^24.5.0",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-test-renderer": "^16.7.0",
"run-script-os": "^1.0.7",
"standard-version": "^4.4.0",
"stylus": "^0.54.5",
"ts-jest": "^23.10.5",
"ts-jest": "^24.1.0",
"tslint": "^5.12.0",
"typescript": "^3.2.2",
"webpack": "^4.28.3"
Expand Down
4 changes: 2 additions & 2 deletions src/JSONPretty.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as PropTypes from 'prop-types';
import * as React from 'react';
import PropTypes from 'prop-types';
import React from 'react';

interface ITheme {[key: string]: string; }
interface IProps {
Expand Down