aMarCruz/jscc

not work with eslint rule: comma-spacing

Closed this issue · 2 comments

eslint will insert spacing after // and /*

// #set _DEBUG = 1           // this is a jscc comment

/* #if _DEBUG                // closing this multiline comment */
    // #if process.env.devmode === 'production'
    // #set _DEBUG 0         // the `=` is optional
    // #else                 anything after `#else` or `#endif` is ignored
/* eslint-disable no-console */
console.log('Debug mode on.');
    // #endif
// #endif _DEBUG             '_DEBUG' is ignored

So, jscc could not work.

@gucong3000 are you meant the eslint autofix?

@gucong3000 with this option:

{ prefixes: ['// ', '/* '] }

the output is correct:

/* eslint-disable no-console */
console.log('Debug mode on.');

I'm closing this issue and follow in #5