Skip to content

Commit 50f79ec

Browse files
committed
chore(dependencies): Update dependencies
1 parent 71c00fb commit 50f79ec

File tree

7 files changed

+1018
-811
lines changed

7 files changed

+1018
-811
lines changed

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
"browser": true,
66
"node": true
77
},
8+
"plugins": [
9+
"prettier"
10+
],
811
"rules": {
912
"arrow-parens": "off",
1013
"no-plusplus": "off",
14+
"prettier/prettier": ["error", { "singleQuote": true, "printWidth": 100, "trailingComma": "all"}],
1115
"react/require-default-props": "off",
1216
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
1317
"react/forbid-prop-types": "off",

package.json

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:umd:min": "cross-env MINIFY=1 webpack --config webpack.build.js",
1111
"build": "yarn run clean && yarn run build:commonjs",
1212
"bundle": "mkdir -p dist && yarn run build:umd && yarn run build:umd:min",
13-
"format": "prettier --write --single-quote --print-width 100 --trailing-comma all \"src/**/*.js\"",
13+
"format": "eslint src --fix",
1414
"lint": "eslint src",
1515
"precommit": "lint-staged",
1616
"preversion": "yarn run lint && yarn test && yarn run build && yarn run bundle && git add dist/ && git diff --quiet --exit-code --cached || git commit -n -m 'publish: Distribution'",
@@ -27,18 +27,9 @@
2727
"bugs": {
2828
"url": "https://github.com/reactjs/react-tabs/issues"
2929
},
30-
"files": [
31-
"dist",
32-
"lib",
33-
"style"
34-
],
30+
"files": ["dist", "lib", "style"],
3531
"homepage": "https://github.com/reactjs/react-tabs",
36-
"keywords": [
37-
"react",
38-
"tabs",
39-
"a11y",
40-
"react-component"
41-
],
32+
"keywords": ["react", "tabs", "a11y", "react-component"],
4233
"peerDependencies": {
4334
"react": "^0.14.9 || ^15.3.0"
4435
},
@@ -56,14 +47,15 @@
5647
"cross-env": "^5.0.0",
5748
"css-loader": "^0.28.0",
5849
"enzyme": "^2.3.0",
59-
"eslint": "^3.5.0",
50+
"eslint": "^4.5.0",
6051
"eslint-config-airbnb": "^15.0.1",
6152
"eslint-plugin-import": "^2.2.0",
6253
"eslint-plugin-jsx-a11y": "^5.0.3",
54+
"eslint-plugin-prettier": "^2.2.0",
6355
"eslint-plugin-react": "^7.0.1",
64-
"husky": "^0.13.3",
56+
"husky": "^0.14.3",
6557
"jest-cli": "^20.0.0",
66-
"lint-staged": "^3.4.0",
58+
"lint-staged": "^4.0.4",
6759
"prettier": "^1.2.2",
6860
"react": "^15.0.0",
6961
"react-addons-test-utils": "^15.0.0",
@@ -81,14 +73,9 @@
8173
"prop-types": "^15.5.0"
8274
},
8375
"jest": {
84-
"roots": [
85-
"src"
86-
]
76+
"roots": ["src"]
8777
},
8878
"lint-staged": {
89-
"src/**/*.js": [
90-
"prettier --single-quote --print-width 100 --trailing-comma all --write",
91-
"git add"
92-
]
79+
"src/**/*.js": ["eslint --fix", "git add"]
9380
}
9481
}

src/components/__tests__/Tab-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ describe('<Tab />', () => {
2424
});
2525

2626
it('should support being selected', () => {
27-
expectToMatchSnapshot(<Tab selected id="abcd" panelId="1234">Hello</Tab>);
27+
expectToMatchSnapshot(
28+
<Tab selected id="abcd" panelId="1234">
29+
Hello
30+
</Tab>,
31+
);
2832
});
2933

3034
it('should support being selected with custom class', () => {

src/components/__tests__/TabList-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ describe('<TabList />', () => {
6565
expectToMatchSnapshot(
6666
<Tabs defaultIndex={0}>
6767
<TabList>
68-
<Tab selectedClassName="active" disabledClassName="disabled">Foo</Tab>
68+
<Tab selectedClassName="active" disabledClassName="disabled">
69+
Foo
70+
</Tab>
6971
<Tab disabled selectedClassName="active" disabledClassName="disabled">
7072
Bar
7173
</Tab>

src/components/__tests__/TabPanel-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ describe('<TabPanel />', () => {
3232
});
3333

3434
it('should support being selected', () => {
35-
expectToMatchSnapshot(<TabPanel selected id="abcd" tabId="1234">Hola</TabPanel>);
35+
expectToMatchSnapshot(
36+
<TabPanel selected id="abcd" tabId="1234">
37+
Hola
38+
</TabPanel>,
39+
);
3640
});
3741

3842
it('should support being selected with custom class name', () => {

src/components/__tests__/Tabs-test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ function createTabs(props = {}) {
1919
<TabList>
2020
<Tab>Foo</Tab>
2121
<Tab>Bar</Tab>
22-
<Tab><a>Baz</a></Tab>
22+
<Tab>
23+
<a>Baz</a>
24+
</Tab>
2325
<Tab disabled>Qux</Tab>
2426
</TabList>
2527
<TabPanel>Hello Foo</TabPanel>
@@ -244,8 +246,7 @@ describe('<Tabs />', () => {
244246
expect(catchedErrors.some(msg => msg.indexOf(expectedMessage) > -1)).toBe(true);
245247
});
246248

247-
test(`should result with warning when tabs/panels are imbalanced and
248-
it should ignore non tab children`, () => {
249+
test('should result with warning when tabs/panels are imbalanced and it should ignore non tab children', () => {
249250
const oldConsoleError = console.error; // eslint-disable-line no-console
250251
console.error = () => {}; // eslint-disable-line no-console
251252
const wrapper = shallow(

0 commit comments

Comments
 (0)