File tree 7 files changed +79
-13
lines changed
7 files changed +79
-13
lines changed Original file line number Diff line number Diff line change
1
+ root = true
2
+
3
+ [* ]
4
+ indent_style = space
5
+ indent_size = 2
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [* .md ]
12
+ trim_trailing_whitespace = false
Original file line number Diff line number Diff line change 1
- " use strict" ;
1
+ ' use strict' ;
2
2
3
3
module . exports = {
4
4
root : true ,
5
5
extends : [
6
- "eslint:recommended" ,
7
- "plugin:eslint-plugin/recommended" ,
8
- "plugin:node/recommended" ,
6
+ 'eslint:recommended' ,
7
+ 'plugin:eslint-plugin/recommended' ,
8
+ 'plugin:node/recommended' ,
9
+ 'prettier' ,
9
10
] ,
11
+ plugins : [ 'prettier' ] ,
12
+ rules : {
13
+ 'prettier/prettier' : 'error' ,
14
+ } ,
10
15
env : {
11
16
node : true ,
12
17
} ,
13
18
overrides : [
14
19
{
15
- files : [ " tests/**/*.js" ] ,
20
+ files : [ ' tests/**/*.js' ] ,
16
21
env : { mocha : true } ,
17
22
} ,
18
23
] ,
Original file line number Diff line number Diff line change
1
+ .DS_Store
2
+ node_modules
3
+ .idea
4
+
Original file line number Diff line number Diff line change
1
+ {
2
+ "printWidth" : 80 ,
3
+ "semi" : true ,
4
+ "singleQuote" : true ,
5
+ "quoteProps" : " as-needed" ,
6
+ "trailingComma" : " es5" ,
7
+ "bracketSpacing" : true ,
8
+ "arrowParens" : " always" ,
9
+ "embeddedLanguageFormatting" : " auto"
10
+ }
Original file line number Diff line number Diff line change 2
2
* @fileoverview check the file folder
3
3
* @author Duke Luo
4
4
*/
5
- " use strict" ;
5
+ ' use strict' ;
6
6
7
7
//------------------------------------------------------------------------------
8
8
// Requirements
9
9
//------------------------------------------------------------------------------
10
10
11
- const requireIndex = require ( " requireindex" ) ;
11
+ const requireIndex = require ( ' requireindex' ) ;
12
12
13
13
//------------------------------------------------------------------------------
14
14
// Plugin Definition
15
15
//------------------------------------------------------------------------------
16
16
17
-
18
17
// import all rules in lib/rules
19
- module . exports . rules = requireIndex ( __dirname + "/rules" ) ;
20
-
21
-
22
-
18
+ module . exports . rules = requireIndex ( __dirname + '/rules' ) ;
Original file line number Diff line number Diff line change 18
18
},
19
19
"devDependencies" : {
20
20
"eslint" : " ^8.0.1" ,
21
+ "eslint-config-prettier" : " 8.3.0" ,
21
22
"eslint-plugin-eslint-plugin" : " ^4.0.1" ,
22
23
"eslint-plugin-node" : " ^11.1.0" ,
23
- "mocha" : " ^9.1.3"
24
+ "eslint-plugin-prettier" : " 4.0.0" ,
25
+ "mocha" : " ^9.1.3" ,
26
+ "prettier" : " 2.5.1"
24
27
},
25
28
"engines" : {
26
29
"node" : " 12.x || 14.x || >= 16"
You can’t perform that action at this time.
0 commit comments