Skip to content

Commit 8c6d7a7

Browse files
Aditya Vohradanez
authored andcommitted
Update eslint and related deps (#254)
1 parent 382d837 commit 8c6d7a7

File tree

5 files changed

+179
-59
lines changed

5 files changed

+179
-59
lines changed

.eslintrc

Lines changed: 0 additions & 25 deletions
This file was deleted.

.eslintrc.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
parser: 'babel-eslint',
3+
extends: 'eslint:recommended',
4+
rules: {
5+
'comma-dangle': ['error', 'always-multiline'],
6+
'no-underscore-dangle': 'off',
7+
quotes: ['error', 'single', 'avoid-escape'],
8+
strict: 'off',
9+
'no-unused-vars': 'error',
10+
'no-undef': 'error'
11+
},
12+
env: {
13+
node: true,
14+
es6: true
15+
},
16+
globals: {
17+
ASTNode: true,
18+
FlowTypeDescriptor: true,
19+
Handler: true,
20+
NodePath: true,
21+
PropDescriptor: true,
22+
PropTypeDescriptor: true,
23+
Resolver: true
24+
}
25+
}

example/generateMarkdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
"use strict";
9+
'use strict';
1010

1111
function stringOfLength(string, length) {
1212
var newString = '';

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@
4343
"devDependencies": {
4444
"babel-cli": "^6.26.0",
4545
"babel-core": "^6.26.0",
46-
"babel-eslint": "^7.0.0",
46+
"babel-eslint": "^8.2.2",
4747
"babel-jest": "^21.2.0",
4848
"babel-plugin-transform-object-rest-spread": "^6.26.0",
4949
"babel-plugin-transform-runtime": "^6.23.0",
5050
"babel-preset-env": "^1.6.1",
5151
"babel-preset-flow": "^6.23.0",
5252
"cross-spawn": "^5.0.0",
53-
"eslint": "^4.3.0",
53+
"eslint": "^4.18.1",
5454
"flow-bin": "^0.59.0",
5555
"jest": "^21.2.1",
5656
"jest-diff": "^21.2.1",

0 commit comments

Comments
 (0)