22 lines
553 B
JavaScript
22 lines
553 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
commonjs: true,
|
|
es6: true,
|
|
node: true,
|
|
mocha: true,
|
|
},
|
|
extends: 'eslint:recommended',
|
|
parserOptions: {
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
'comma-dangle': ['error', 'always-multiline'],
|
|
indent: ['error', 4],
|
|
'linebreak-style': ['error', 'unix'],
|
|
quotes: ['error', 'double'], // Easier for Go developers!
|
|
semi: ['error', 'always'],
|
|
'no-unused-vars': ['warn'],
|
|
'no-console': 0,
|
|
},
|
|
};
|