This repository was archived by the owner on Jun 8, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +46
-6
lines changed Expand file tree Collapse file tree 4 files changed +46
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "optional" : [" runtime" ]
2
+ "stage" : 4 ,
3
+ "optional" : [
4
+ " runtime" ,
5
+ " es7.objectRestSpread"
6
+ ]
3
7
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "parser": "babel-eslint",
3
+ "extends": "eslint:recommended",
4
+ "env": {
5
+ "es6": true,
6
+ "node": true
7
+ },
8
+ "ecmaFeatures": {
9
+ "modules": true
10
+ },
11
+ "rules": {
12
+ "no-console": 0,
13
+
14
+ "arrow-parens": [2, "always"],
15
+ "comma-dangle": [2, "always-multiline"],
16
+ "eqeqeq": 2,
17
+ "indent": [2, 4],
18
+ "linebreak-style": [2, "unix"],
19
+ "prefer-arrow-callback": 2,
20
+ "quotes": [2, "single"],
21
+ "semi": [2, "always"],
22
+ "strict": [2, "never"],
23
+ "yoda": [2, "never"],
24
+
25
+ "no-alert": 2,
26
+ "no-const-assign": 2,
27
+ "no-else-return": 2,
28
+ "no-this-before-super": 2,
29
+ "no-unexpected-multiline": 2,
30
+ "no-var": 2,
31
+ "no-warning-comments": 1
32
+ }
33
+ }
Original file line number Diff line number Diff line change 14
14
"mkdirp" : " ^0.5.1"
15
15
},
16
16
"devDependencies" : {
17
- "babel" : " ^5.8.21"
17
+ "babel" : " ^5.8.21" ,
18
+ "babel-eslint" : " ^4.1.2" ,
19
+ "eslint" : " ^1.4.3"
18
20
},
19
21
"scripts" : {
22
+ "lint" : " eslint src/" ,
20
23
"build" : " babel-plugin build" ,
21
24
"push" : " babel-plugin publish" ,
22
25
"test" : " babel-plugin test" ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const FUNCTION_NAMES = [
20
20
const IMPORTED_NAMES = new Set ( [ ...COMPONENT_NAMES , ...FUNCTION_NAMES ] ) ;
21
21
const DESCRIPTOR_PROPS = new Set ( [ 'id' , 'description' , 'defaultMessage' ] ) ;
22
22
23
- export default function ( { Plugin, types : t } ) {
23
+ export default function ( { Plugin} ) {
24
24
function getModuleSourceName ( options ) {
25
25
const reactIntlOptions = options . extra [ 'react-intl' ] || { } ;
26
26
return reactIntlOptions . moduleSourceName || 'react-intl' ;
@@ -165,7 +165,7 @@ export default function ({Plugin, types: t}) {
165
165
mkdirpSync ( p . dirname ( messagesFilename ) ) ;
166
166
writeFileSync ( messagesFilename , messagesFile ) ;
167
167
}
168
- }
168
+ } ,
169
169
} ,
170
170
171
171
JSXOpeningElement ( node , parent , scope , file ) {
@@ -211,7 +211,7 @@ export default function ({Plugin, types: t}) {
211
211
let descriptor = getMessageDescriptor ( new Map ( properties ) ) ;
212
212
storeMessage ( descriptor , node , file ) ;
213
213
}
214
- }
215
- }
214
+ } ,
215
+ } ,
216
216
} ) ;
217
217
}
You can’t perform that action at this time.
0 commit comments