2016-11-29 20:27:15 +03:00
|
|
|
module.exports = {
|
2017-02-05 18:17:59 +03:00
|
|
|
extends: ['google'],
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
webextensions: true,
|
|
|
|
es6: true
|
2016-11-29 20:27:15 +03:00
|
|
|
},
|
2017-02-05 18:17:59 +03:00
|
|
|
globals: {
|
|
|
|
chrome: true
|
2016-11-29 20:27:15 +03:00
|
|
|
},
|
2017-02-05 18:17:59 +03:00
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'script',
|
|
|
|
ecmaVersion: 2017,
|
|
|
|
ecmaFeatures: {
|
|
|
|
impliedStrict: false
|
2016-11-29 20:27:15 +03:00
|
|
|
}
|
|
|
|
},
|
2017-02-05 18:17:59 +03:00
|
|
|
rules: {
|
|
|
|
strict: ['error', 'global'],
|
|
|
|
'no-console': 'off',
|
|
|
|
'padded-blocks': 'off',
|
|
|
|
'require-jsdoc': 'off',
|
|
|
|
|
|
|
|
// Taken from airbnb:
|
|
|
|
'max-len': ['error', 100, 2, {
|
|
|
|
ignoreUrls: true,
|
|
|
|
ignoreComments: false,
|
|
|
|
ignoreRegExpLiterals: true,
|
|
|
|
ignoreStrings: true,
|
|
|
|
ignoreTemplateLiterals: true,
|
|
|
|
}],
|
|
|
|
},
|
2016-11-29 20:27:15 +03:00
|
|
|
};
|