Skip to content

Commit ce8ce6a

Browse files
committed
chore: switchto plain tslint
1 parent c60aca9 commit ce8ce6a

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

.eslintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": ["4catalyzer-react", "prettier"],
33
"plugins": ["prettier"],
44
"rules": {
5-
"prettier/prettier": "error"
5+
"prettier/prettier": "error",
6+
"react/prop-types": "off"
67
},
78
"env": {
89
"browser": true
@@ -12,7 +13,7 @@
1213
"files": ["test/**"],
1314
"plugins": ["jest"],
1415
"env": {
15-
"jest/globals": true
16+
"jest": true
1617
},
1718
"rules": {
1819
"global-require": "off",

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"tdd": "jest --watch",
1515
"test": "npm run test:types && npm run lint && jest",
1616
"testonly": "jest",
17-
"test:types": "dtslint types",
17+
"test:types": "tslint -p types",
1818
"build:es": "babel src -d lib/es --env-name esm --ignore **/__tests__ ",
1919
"build:lib": "babel src -d lib --ignore **/__tests__ --delete-dir-on-start ",
2020
"build": "npm run build:lib && npm run build:es && cpy types/*.d.ts lib && cpy types/*.d.ts lib/es",
@@ -42,7 +42,9 @@
4242
]
4343
},
4444
"jest": {
45-
"testEnvironment": "jsdom",
45+
"roots": [
46+
"<rootDir>/test"
47+
],
4648
"setupFiles": [
4749
"<rootDir>/test/index.js"
4850
]

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { mapContextToProps } from './mapContextToProps';
2-
export { forwardRef } from './forwardRef';
1+
export mapContextToProps from './mapContextToProps';
2+
export forwardRef from './forwardRef';

test/mapContextToProps.test.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ describe('mapContextToProps', () => {
2626
foo,
2727
bar,
2828
}),
29-
props => (
30-
<div>
31-
{props.foo} {props.bar}
32-
</div>
33-
),
29+
props => <div>{`${props.foo} ${props.bar}`}</div>,
3430
);
3531

3632
expect(

0 commit comments

Comments
 (0)