Skip to content

Commit

Permalink
Merge branch 'release/1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
wimpyprogrammer committed Sep 1, 2020
2 parents 1d50ded + 3e86f87 commit cfaa9b6
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 25 deletions.
17 changes: 15 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
"indent": ["error", "tab"],
"linebreak-style": "off",
"no-tabs": "off",
"react/jsx-filename-extension": "off"
}
"react/jsx-filename-extension": "off",
"react/no-deprecated": "off"
},
"overrides": [
{
"files": ["**/*.spec.js"],
"env": {
"jest": true
},
"rules": {
"max-classes-per-file": "off",
"react/jsx-props-no-spreading": "off"
}
}
]
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js
node_js:
- "node"
- "6"
- "10"
env:
- REACT=0.13
- REACT=0.14
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[![Build Status](https://travis-ci.org/wimpyprogrammer/react-component-update.svg?branch=master)](https://travis-ci.org/wimpyprogrammer/react-component-update)
[![codecov](https://codecov.io/gh/wimpyprogrammer/react-component-update/branch/master/graph/badge.svg)](https://codecov.io/gh/wimpyprogrammer/react-component-update)
[![Known Vulnerabilities](https://snyk.io/test/github/wimpyprogrammer/react-component-update/badge.svg)](https://snyk.io/test/github/wimpyprogrammer/react-component-update)
[![Greenkeeper badge](https://badges.greenkeeper.io/wimpyprogrammer/react-component-update.svg)](https://greenkeeper.io/)

Adds convenience lifecycle events to your React components.

Expand Down
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"name": "react-component-update",
"version": "1.4.1",
"version": "1.5.0",
"description": "Extends the native React Component to streamline updates",
"main": "lib/index.js",
"files": [
"lib/**/!(*.spec).js"
],
"engines": {
"node": ">=6"
"node": ">=10"
},
"scripts": {
"clean": "rimraf lib",
"build": "npm run clean && babel src --out-dir lib",
"build-and-test": "npm run test && npm run build",
"install-react": "enzyme-adapter-react-install 16",
"lint": "eslint ./",
"lint": "eslint ./ --report-unused-disable-directives",
"test": "jest",
"travisci": "npm run install-react && npm run lint && npm run test && codecov",
"publish-please": "publish-please",
"prepublish": "publish-please guard"
"prepublish": "npx publish-please guard",
"publish-please": "npx publish-please"
},
"repository": {
"type": "git",
Expand All @@ -35,27 +35,26 @@
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.0",
"@babel/preset-react": "^7.0.0",
"babel-jest": "^23.0.0",
"babel-jest": "^26.3.0",
"chai": "^4.0.2",
"codecov": "^3.0.0",
"create-react-class": "^15.6.0",
"dirty-chai": "^2.0.0",
"enzyme": "^3.6.0",
"enzyme-adapter-react-16": "^1.5.0",
"enzyme-adapter-react-helper": "^1.3.0",
"eslint": "^5.0.1",
"eslint-config-airbnb": "^17.1.0",
"eslint": "^7.8.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^6.1.0",
"eslint-plugin-react": "^7.11.0",
"jest": "^24.3.1",
"jest": "^26.4.2",
"lodash.uniqueid": "^4.0.1",
"publish-please": "^5.4.3",
"react": "*",
"react-dom": "*",
"react-test-renderer": "*",
"rimraf": "^2.6.1",
"sinon": "^7.2.7",
"rimraf": "^3.0.2",
"sinon": "^9.0.3",
"sinon-chai": "^3.0.0"
},
"peerDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions src/component.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env jest */
/* eslint-disable react/no-multi-comp */
import chai, { expect } from 'chai';
import dirtyChai from 'dirty-chai';
import { shallow } from 'enzyme';
Expand Down
8 changes: 3 additions & 5 deletions src/pureComponent.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env jest */
/* eslint-disable react/no-multi-comp */
import chai, { expect } from 'chai';
import dirtyChai from 'dirty-chai';
import { shallow } from 'enzyme';
Expand All @@ -26,7 +24,7 @@ function getUniqueProps() {
const descriptor = React.PureComponent ? describe : describe.skip;

descriptor('PureComponent extension', () => {
const { PureComponent } = require('./'); // eslint-disable-line global-require
const { PureComponent } = require('.'); // eslint-disable-line global-require

class TestComponent extends PureComponent {
constructor(props) {
Expand Down Expand Up @@ -170,7 +168,7 @@ descriptor('PureComponent extension', () => {
});

descriptor('PureComponent extension with overrides calling super()', () => {
const { PureComponent } = require('./'); // eslint-disable-line global-require
const { PureComponent } = require('.'); // eslint-disable-line global-require

const userComponentWillMountBefore = sandbox.spy();
const userComponentWillMountAfter = sandbox.spy();
Expand Down Expand Up @@ -297,7 +295,7 @@ descriptor('PureComponent extension with overrides calling super()', () => {
});

descriptor('Component extension with overrides not calling super()', () => {
const { PureComponent } = require('./'); // eslint-disable-line global-require
const { PureComponent } = require('.'); // eslint-disable-line global-require

class TestComponentWithoutSuper extends PureComponent {
componentWillMount() { }
Expand Down
1 change: 0 additions & 1 deletion src/withEvents.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env jest */
import chai, { expect } from 'chai';
import createReactClass from 'create-react-class';
import dirtyChai from 'dirty-chai';
Expand Down
1 change: 0 additions & 1 deletion test-setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env mocha */
import configure from 'enzyme-adapter-react-helper';

configure();

0 comments on commit cfaa9b6

Please sign in to comment.