2016-10-30 09:29:51 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2017-10-03 17:21:36 +00:00
|
|
|
extends: "airbnb-base",
|
2017-10-26 06:58:24 +00:00
|
|
|
settings: {
|
|
|
|
"import/resolver": "webpack"
|
|
|
|
},
|
2016-11-04 17:15:09 +00:00
|
|
|
env: {
|
|
|
|
"browser": true,
|
|
|
|
"node": true
|
|
|
|
},
|
2016-10-30 13:52:46 +00:00
|
|
|
rules: {
|
2016-10-30 09:29:51 +00:00
|
|
|
// allow debugger during development
|
2017-10-31 10:06:52 +00:00
|
|
|
'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,
|
2016-10-30 13:52:46 +00:00
|
|
|
'no-underscore-dangle': 0,
|
2017-10-03 17:21:36 +00:00
|
|
|
"prefer-destructuring": "off",
|
|
|
|
"prefer-template": "off",
|
|
|
|
"no-restricted-properties": "off",
|
|
|
|
"no-restricted-globals": "off",
|
2017-10-31 10:06:52 +00:00
|
|
|
"no-multi-assign": "off",
|
2017-11-06 19:48:21 +00:00
|
|
|
"no-lonely-if": "off",
|
|
|
|
"consistent-return": "off",
|
2017-10-31 10:06:52 +00:00
|
|
|
"max-len": ['error', 120, 2, {
|
|
|
|
ignoreUrls: true,
|
|
|
|
ignoreComments: false,
|
|
|
|
ignoreRegExpLiterals: true,
|
|
|
|
ignoreStrings: true,
|
|
|
|
ignoreTemplateLiterals: true,
|
|
|
|
}]
|
2016-10-30 09:29:51 +00:00
|
|
|
}
|
2017-10-03 17:21:36 +00:00
|
|
|
};
|