mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-05 16:00:01 +01:00
* Eslint operator spacing config * consistent spacing after comma * comma styling config * Trailing spaces config
36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
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
|
|
}
|
|
}; |