You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
672 B

module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
node: true,
es6: true,
webextensions: true
},
extends: ['eslint:recommended'],
// add your custom rules here
rules: {
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'linebreak-style': 0,
'object-curly-spacing': ['error', 'always'],
'no-trailing-spaces': 'error',
'keyword-spacing': 'error',
'no-extra-semi': 'error',
semi: ['error', 'always'],
quotes: ['error', 'single', { allowTemplateLiterals: true }],
'no-console': 0
},
globals: {
chrome: false
}
};