runet-censorship-bypass/extensions/chromium/.eslintrc.js
Ilya Ig. Petrov fda42ee307 Lint
2017-02-05 15:17:59 +00:00

34 lines
688 B
JavaScript

module.exports = {
extends: ['google'],
env: {
browser: true,
webextensions: true,
es6: true
},
globals: {
chrome: true
},
parserOptions: {
sourceType: 'script',
ecmaVersion: 2017,
ecmaFeatures: {
impliedStrict: false
}
},
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,
}],
},
};