File tree Expand file tree Collapse file tree 7 files changed +35
-26
lines changed
packages/eslint-plugin-sdk Expand file tree Collapse file tree 7 files changed +35
-26
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ extends : [ '../../.eslintrc.js' ] ,
3
+ } ;
Original file line number Diff line number Diff line change 26
26
},
27
27
"scripts" : {
28
28
"link:yarn" : " yarn link" ,
29
- "lint" : " prettier --check \" {src,test}/**/*.js\" " ,
30
- "fix" : " prettier --write \" {src,test}/**/*.js\" " ,
29
+ "fix" : " run-s fix:eslint fix:prettier" ,
30
+ "fix:eslint" : " eslint . --format stylish --fix" ,
31
+ "fix:prettier" : " prettier --write \" {src,test}/**/*.js\" " ,
32
+ "lint" : " run-s lint:prettier lint:eslint" ,
33
+ "lint:eslint" : " eslint . --cache --cache-location '../../eslintcache/' --format stylish" ,
34
+ "lint:prettier" : " prettier --check \" {src,test}/**/*.js\" " ,
31
35
"test" : " mocha test --recursive" ,
32
36
"pack" : " npm pack" ,
33
37
"circularDepCheck" : " madge --circular src/index.js"
Original file line number Diff line number Diff line change 4
4
*/
5
5
'use strict' ;
6
6
7
- //------------------------------------------------------------------------------
7
+ // ------------------------------------------------------------------------------
8
8
// Plugin Definition
9
- //------------------------------------------------------------------------------
9
+ // ------------------------------------------------------------------------------
10
10
11
11
module . exports = {
12
12
rules : {
Original file line number Diff line number Diff line change 4
4
*/
5
5
'use strict' ;
6
6
7
- //------------------------------------------------------------------------------
7
+ // ------------------------------------------------------------------------------
8
8
// Rule Definition
9
- //------------------------------------------------------------------------------
9
+ // ------------------------------------------------------------------------------
10
10
11
11
module . exports = {
12
12
meta : {
@@ -22,15 +22,15 @@ module.exports = {
22
22
create : function ( context ) {
23
23
// variables should be defined here
24
24
25
- //----------------------------------------------------------------------
25
+ // ----------------------------------------------------------------------
26
26
// Helpers
27
- //----------------------------------------------------------------------
27
+ // ----------------------------------------------------------------------
28
28
29
29
// any helper functions should go here or else delete this section
30
30
31
- //----------------------------------------------------------------------
31
+ // ----------------------------------------------------------------------
32
32
// Public
33
- //----------------------------------------------------------------------
33
+ // ----------------------------------------------------------------------
34
34
35
35
return {
36
36
FunctionDeclaration ( node ) {
Original file line number Diff line number Diff line change 4
4
*/
5
5
'use strict' ;
6
6
7
- //------------------------------------------------------------------------------
7
+ // ------------------------------------------------------------------------------
8
8
// Rule Definition
9
- //------------------------------------------------------------------------------
9
+ // ------------------------------------------------------------------------------
10
10
11
11
module . exports = {
12
12
meta : {
@@ -25,15 +25,15 @@ module.exports = {
25
25
create : function ( context ) {
26
26
// variables should be defined here
27
27
28
- //----------------------------------------------------------------------
28
+ // ----------------------------------------------------------------------
29
29
// Helpers
30
- //----------------------------------------------------------------------
30
+ // ----------------------------------------------------------------------
31
31
32
32
// any helper functions should go here or else delete this section
33
33
34
- //----------------------------------------------------------------------
34
+ // ----------------------------------------------------------------------
35
35
// Public
36
- //----------------------------------------------------------------------
36
+ // ----------------------------------------------------------------------
37
37
38
38
return {
39
39
BinaryExpression ( node ) {
Original file line number Diff line number Diff line change 4
4
*/
5
5
'use strict' ;
6
6
7
- //------------------------------------------------------------------------------
7
+ // ------------------------------------------------------------------------------
8
8
// Requirements
9
- //------------------------------------------------------------------------------
9
+ // ------------------------------------------------------------------------------
10
10
11
- const rule = require ( '../../../src/rules/no-async-await' ) ;
12
11
const RuleTester = require ( 'eslint' ) . RuleTester ;
13
12
14
- //------------------------------------------------------------------------------
13
+ const rule = require ( '../../../src/rules/no-async-await' ) ;
14
+
15
+ // ------------------------------------------------------------------------------
15
16
// Tests
16
- //------------------------------------------------------------------------------
17
+ // ------------------------------------------------------------------------------
17
18
18
19
RuleTester . setDefaultConfig ( {
19
20
parserOptions : {
Original file line number Diff line number Diff line change 4
4
*/
5
5
'use strict' ;
6
6
7
- //------------------------------------------------------------------------------
7
+ // ------------------------------------------------------------------------------
8
8
// Requirements
9
- //------------------------------------------------------------------------------
9
+ // ------------------------------------------------------------------------------
10
10
11
- const rule = require ( '../../../src/rules/no-eq-empty' ) ;
12
11
const RuleTester = require ( 'eslint' ) . RuleTester ;
13
12
14
- //------------------------------------------------------------------------------
13
+ const rule = require ( '../../../src/rules/no-eq-empty' ) ;
14
+
15
+ // ------------------------------------------------------------------------------
15
16
// Tests
16
- //------------------------------------------------------------------------------
17
+ // ------------------------------------------------------------------------------
17
18
18
19
RuleTester . setDefaultConfig ( {
19
20
parserOptions : {
You can’t perform that action at this time.
0 commit comments