File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ module.exports = {
88 'import/extensions' : 'off' ,
99 'import/no-extraneous-dependencies' : [ 'error' , { devDependencies : true } ] ,
1010 } ,
11+ 'overrides' : [
12+ {
13+ 'files' : [ '*spec.js' , 'priv/testrunner/**/*' ] ,
14+ 'rules' : {
15+ 'no-console' : 'off'
16+ }
17+ }
18+ ] ,
1119 extends : 'airbnb-base' ,
1220 plugins : [ 'import' ] ,
1321 env : {
Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ function get_global() {
2727 return global ;
2828 }
2929
30+ /* As long as the window check precedes this, it won't display in a browser,
31+ unless the ground cracks open and swallows JavaScript whole. */
32+ /* eslint-disable no-console */
3033 console . warn ( 'No global state found' ) ;
34+ /* eslint-enable no-console */
35+
3136 return null ;
3237}
3338
Original file line number Diff line number Diff line change 1+ /* It is far too "meta" to warn about including a warning in a warning */
2+ /* eslint-disable no-console */
3+
14function warn ( message ) {
25 const messageString = message . join ( '' ) ;
36 console . warn ( `warning: ${ messageString } ` ) ;
47
8+
59 return Symbol . for ( 'ok' ) ;
610}
711
Original file line number Diff line number Diff line change 1+ /* The purpose of this module is, in fact, to do IO. */
2+ /* eslint-disable no-console */
13import erlang from './erlang' ;
24
35function put_chars ( ioDevice , charData ) {
Original file line number Diff line number Diff line change @@ -138,7 +138,10 @@ function _with(...args) {
138138}
139139
140140function receive ( clauses , timeout = 0 , timeoutFn = ( ) => true ) {
141+ /* It's more important to warn developers than follow style guides */
142+ /* eslint-disable no-console */
141143 console . warn ( 'Receive not supported' ) ;
144+ /* eslint-enable no-console */
142145
143146 const messages = [ ] ; // this.mailbox.get();
144147 const NOMATCH = Symbol ( 'NOMATCH' ) ;
You can’t perform that action at this time.
0 commit comments