File tree 5 files changed +26
-11
lines changed
5 files changed +26
-11
lines changed Original file line number Diff line number Diff line change
1
+ # This file is for unifying the coding style for different editors and IDEs
2
+ # editorconfig.org
3
+
1
4
root = true
2
5
3
6
[* ]
4
7
end_of_line = lf
8
+ charset = utf-8
5
9
insert_final_newline = true
6
- indent_size = 4
10
+ trim_trailing_whitespace = true
7
11
indent_style = space
8
-
9
- [Makefile ]
10
- indent_style = tab
11
-
12
- [* .json ]
13
12
indent_size = 2
Original file line number Diff line number Diff line change 1
- module . exports = {
2
- extends : [
3
- 'onelint'
4
- ]
1
+ const config = {
2
+ extends : [ 'pretty-standard' ]
5
3
} ;
4
+
5
+ if ( process . stdin . isTTY ) {
6
+ // Enable plugin-prettier when running in a terminal. Allows us to have
7
+ // eslint verify prettier formatting, while not being bothered by it in our
8
+ // editors.
9
+ config . plugins = config . plugins || [ ] ;
10
+ config . plugins . push ( 'prettier' ) ;
11
+ config . rules = config . rules || { } ;
12
+ config . rules [ 'prettier/prettier' ] = 'error' ;
13
+ }
14
+
15
+ module . exports = config ;
Original file line number Diff line number Diff line change
1
+ package.json
Original file line number Diff line number Diff line change
1
+ {
2
+ "singleQuote": true
3
+ }
Original file line number Diff line number Diff line change 15
15
"devDependencies" : {
16
16
"coveralls" : " ^3.0.0" ,
17
17
"eslint" : " ^5.1.0" ,
18
- "eslint-config-onelint" : " ^4.0.0" ,
18
+ "eslint-config-pretty-standard" : " ^2.0.0" ,
19
+ "eslint-plugin-prettier" : " ^3.0.0" ,
19
20
"istanbul" : " ^0.4.5" ,
20
21
"magicpen" : " ^5.12.0" ,
21
22
"mocha" : " ^5.1.5" ,
23
+ "prettier" : " ^1.15.2" ,
22
24
"unexpected" : " ^10.3.1" ,
23
25
"unexpected-documentation-site-generator" : " ^5.0.0" ,
24
26
"unexpected-markdown" : " ^1.3.2"
You can’t perform that action at this time.
0 commit comments