Skip to content

Commit b032440

Browse files
committed
Add linting to CI tests
1 parent fe80463 commit b032440

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@
180180
"react/jsx-sort-prop-types": 0,
181181
"react/jsx-uses-react": 2,
182182
"react/jsx-uses-vars": 2,
183+
"react/jsx-wrap-multilines": 2,
183184
"react/no-did-mount-set-state": 2,
184185
"react/no-did-update-set-state": 2,
185186
"react/no-multi-comp": 2,
186187
"react/no-unknown-property": 2,
187188
"react/prop-types": 2,
188189
"react/react-in-jsx-scope": 2,
189190
"react/self-closing-comp": 2,
190-
"react/wrap-multilines": 2,
191191
"react/sort-comp": [2, {
192192
"order": [
193193
"lifecycle",

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
language: node_js
22
node_js:
3-
- '4.6.0'
4-
- '6.7.0'
3+
- '4.7.2'
4+
- '6.9.4'
5+
- '7.4.0'
6+
script:
7+
- npm run lint
8+
- npm test

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"README.md"
2424
],
2525
"scripts": {
26+
"lint": "eslint src/**/*.js test/**/*.js",
2627
"test": "mocha --require react-native-mock/mock --compilers js:babel-core/register --recursive test/*.js"
2728
},
2829
"dependencies": {
@@ -34,8 +35,8 @@
3435
"babel-preset-react-native": "^1.9.0",
3536
"chai": "^3.5.0",
3637
"enzyme": "^2.4.1",
37-
"eslint": "^3.7.1",
38-
"eslint-plugin-react": "^6.1.2",
38+
"eslint": "^3.13.0",
39+
"eslint-plugin-react": "^6.9.0",
3940
"mocha": "^3.1.0",
4041
"react": "^15.3.2",
4142
"react-addons-test-utils": "^15.3.2",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default class Autolink extends Component {
121121
twitter,
122122
url,
123123
webFallback,
124-
...other,
124+
...other
125125
} = this.props;
126126

127127
// Backwards compatibility for Twitter prop

0 commit comments

Comments
 (0)