redash/client/.eslintrc.js

33 lines
797 B
JavaScript
Raw Normal View History

2016-10-30 09:29:51 +00:00
module.exports = {
root: true,
extends: "airbnb-base",
settings: {
"import/resolver": "webpack"
},
env: {
"browser": true,
"node": true
},
rules: {
2016-10-30 09:29:51 +00:00
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
2016-11-13 12:03:32 +00:00
'no-param-reassign': 0,
2016-11-06 12:40:05 +00:00
'no-mixed-operators': 0,
'no-underscore-dangle': 0,
"prefer-destructuring": "off",
"prefer-template": "off",
"no-restricted-properties": "off",
"no-restricted-globals": "off",
"no-multi-assign": "off",
2017-11-06 19:48:21 +00:00
"no-lonely-if": "off",
"consistent-return": "off",
"max-len": ['error', 120, 2, {
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}]
2016-10-30 09:29:51 +00:00
}
};