joinbox / eslint-config-joinbox

Joinbox ES Linter Configuration
MIT License
0 stars 0 forks source link

chore: allow else & switch case indentation #5

Closed linaGirl closed 6 years ago

linaGirl commented 6 years ago
lkappeler commented 6 years ago

@eventEmitter Can you increase the minor version and publish the package, so the changes are pulled to the projects. This would also make the last two fixes available you made recently.

linaGirl commented 6 years ago

@rcky this rules says: «Rather than creating separate rules for every language feature you want to turn off, this rule allows you to configure the syntax elements you want to restrict use of. »

The rule is:

'no-restricted-syntax': ['error', {
            selector: 'ForInStatement',
            message: 'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
        }, {
            selector: 'LabeledStatement',
            message: 'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.',
        }, {
            selector: 'WithStatement',
            message: '`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
        }],

As i see it everything should be as it is configured now.

rcky commented 6 years ago

@eventEmitter sorry my bad!