publiclab/image-sequencer

View on GitHub
.eslintrc.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = {
    'env': {
        'browser': true,
        'commonjs': true,
        'es6': true,
        'node': true
    },
    'extends': 'eslint:recommended',
    'globals': {
        'Atomics': 'readonly',
        'SharedArrayBuffer': 'readonly'
    },
    'parserOptions': {
        'ecmaVersion': 2018
    },
    'rules': {
        'indent': ['error',2],
        'linebreak-style': ['error','unix'],
        'quotes': ['error','single'],
        'semi': ['error','always'], //
        'no-undef': 0,
        'no-console': 'off',
        'no-unused-vars': 'off',
        'no-redeclare': 'off',
        'no-inner-declarations':'off',
        'no-empty':'off',
        'no-mixed-spaces-and-tabs':'off',
        'no-self-assign':'off',
        'no-constant-condition':'off',
        'no-dupe-keys':'off',
        'space-infix-ops': ['error', {'int32Hint': false}], // Enforce spaces around operators 
        'comma-spacing': ['error', { "before": false, "after": true }], // require spacing after a comma
        'comma-style': ['error', 'last'], // requires comma after and on the same line
        'no-trailing-spaces': ['error', { 'skipBlankLines': true }], // Disallows trailing whitespace on end of lines and empty lines
    }
};