File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ var fs = require ( 'fs' )
2
+ var path = require ( 'path' )
3
+ var stripComments = require ( 'strip-json-comments' )
4
+
5
+ var filename = path . join ( __dirname , '.eslintrc' )
6
+ var data = fs . readFileSync ( filename , { encoding : 'utf-8' } )
7
+ var dataWithoutComments = stripComments ( data )
8
+ var parsed = JSON . parse ( dataWithoutComments )
9
+
10
+ module . exports = parsed
Original file line number Diff line number Diff line change 7
7
" eslint" ,
8
8
" eslintconfig"
9
9
],
10
+ "main" : " index.js" ,
10
11
"author" : " Algolia <support@algolia.com>" ,
11
12
"license" : " MIT" ,
12
13
"bugs" : {
13
14
"url" : " https://github.com/algolia/eslint-config-algolia"
14
15
},
15
- "homepage" : " https://github.com/algolia/eslint-config-algolia"
16
+ "homepage" : " https://github.com/algolia/eslint-config-algolia" ,
17
+ "dependencies" : {
18
+ "strip-json-comments" : " 1.0.2"
19
+ }
16
20
}
You can’t perform that action at this time.
0 commit comments