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 2626 },
2727 "scripts" : {
2828 "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\" " ,
3135 "test" : " mocha test --recursive" ,
3236 "pack" : " npm pack" ,
3337 "circularDepCheck" : " madge --circular src/index.js"
Original file line number Diff line number Diff line change 44 */
55'use strict' ;
66
7- //------------------------------------------------------------------------------
7+ // ------------------------------------------------------------------------------
88// Plugin Definition
9- //------------------------------------------------------------------------------
9+ // ------------------------------------------------------------------------------
1010
1111module . exports = {
1212 rules : {
Original file line number Diff line number Diff line change 44 */
55'use strict' ;
66
7- //------------------------------------------------------------------------------
7+ // ------------------------------------------------------------------------------
88// Rule Definition
9- //------------------------------------------------------------------------------
9+ // ------------------------------------------------------------------------------
1010
1111module . exports = {
1212 meta : {
@@ -22,15 +22,15 @@ module.exports = {
2222 create : function ( context ) {
2323 // variables should be defined here
2424
25- //----------------------------------------------------------------------
25+ // ----------------------------------------------------------------------
2626 // Helpers
27- //----------------------------------------------------------------------
27+ // ----------------------------------------------------------------------
2828
2929 // any helper functions should go here or else delete this section
3030
31- //----------------------------------------------------------------------
31+ // ----------------------------------------------------------------------
3232 // Public
33- //----------------------------------------------------------------------
33+ // ----------------------------------------------------------------------
3434
3535 return {
3636 FunctionDeclaration ( node ) {
Original file line number Diff line number Diff line change 44 */
55'use strict' ;
66
7- //------------------------------------------------------------------------------
7+ // ------------------------------------------------------------------------------
88// Rule Definition
9- //------------------------------------------------------------------------------
9+ // ------------------------------------------------------------------------------
1010
1111module . exports = {
1212 meta : {
@@ -25,15 +25,15 @@ module.exports = {
2525 create : function ( context ) {
2626 // variables should be defined here
2727
28- //----------------------------------------------------------------------
28+ // ----------------------------------------------------------------------
2929 // Helpers
30- //----------------------------------------------------------------------
30+ // ----------------------------------------------------------------------
3131
3232 // any helper functions should go here or else delete this section
3333
34- //----------------------------------------------------------------------
34+ // ----------------------------------------------------------------------
3535 // Public
36- //----------------------------------------------------------------------
36+ // ----------------------------------------------------------------------
3737
3838 return {
3939 BinaryExpression ( node ) {
Original file line number Diff line number Diff line change 44 */
55'use strict' ;
66
7- //------------------------------------------------------------------------------
7+ // ------------------------------------------------------------------------------
88// Requirements
9- //------------------------------------------------------------------------------
9+ // ------------------------------------------------------------------------------
1010
11- const rule = require ( '../../../src/rules/no-async-await' ) ;
1211const RuleTester = require ( 'eslint' ) . RuleTester ;
1312
14- //------------------------------------------------------------------------------
13+ const rule = require ( '../../../src/rules/no-async-await' ) ;
14+
15+ // ------------------------------------------------------------------------------
1516// Tests
16- //------------------------------------------------------------------------------
17+ // ------------------------------------------------------------------------------
1718
1819RuleTester . setDefaultConfig ( {
1920 parserOptions : {
Original file line number Diff line number Diff line change 44 */
55'use strict' ;
66
7- //------------------------------------------------------------------------------
7+ // ------------------------------------------------------------------------------
88// Requirements
9- //------------------------------------------------------------------------------
9+ // ------------------------------------------------------------------------------
1010
11- const rule = require ( '../../../src/rules/no-eq-empty' ) ;
1211const RuleTester = require ( 'eslint' ) . RuleTester ;
1312
14- //------------------------------------------------------------------------------
13+ const rule = require ( '../../../src/rules/no-eq-empty' ) ;
14+
15+ // ------------------------------------------------------------------------------
1516// Tests
16- //------------------------------------------------------------------------------
17+ // ------------------------------------------------------------------------------
1718
1819RuleTester . setDefaultConfig ( {
1920 parserOptions : {
You can’t perform that action at this time.
0 commit comments