2017-07-13 17:02:31 +08:00
|
|
|
module.exports = {
|
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"rules": {
|
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
"quotes": ["warn", "single"],
|
|
|
|
"semi": ["error", "always"],
|
|
|
|
"object-curly-spacing": ["error", "always"],
|
|
|
|
"no-unused-vars": "warn",
|
|
|
|
"no-console": "off",
|
2017-12-29 23:28:11 +08:00
|
|
|
"comma-style": ["warn", "last"],
|
|
|
|
"prefer-const": "warn",
|
|
|
|
"no-var": "error",
|
|
|
|
"eqeqeq": "error",
|
2017-07-13 17:02:31 +08:00
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"url": false,
|
|
|
|
"swal": false,
|
|
|
|
"fetch": false,
|
|
|
|
"trans": false,
|
|
|
|
"logout": false,
|
|
|
|
"toastr": false,
|
|
|
|
"isEmpty": false,
|
|
|
|
"showMsg": false,
|
|
|
|
"blessing": true,
|
|
|
|
"debounce": false,
|
|
|
|
"showModal": false,
|
2017-08-07 10:16:25 +08:00
|
|
|
"docCookies": false,
|
2017-07-13 17:02:31 +08:00
|
|
|
"showAjaxError": false,
|
|
|
|
"getQueryString": false,
|
|
|
|
"TexturePreview": false
|
|
|
|
},
|
2017-07-20 15:36:59 +08:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2017
|
|
|
|
},
|
2017-12-29 23:28:11 +08:00
|
|
|
"root": true,
|
2017-07-13 17:02:31 +08:00
|
|
|
"env":{
|
2017-12-24 11:40:15 +08:00
|
|
|
"node": true,
|
2017-07-13 17:02:31 +08:00
|
|
|
"es6": true,
|
|
|
|
"browser": true,
|
2017-07-20 15:36:59 +08:00
|
|
|
"jest": true,
|
2017-07-13 17:02:31 +08:00
|
|
|
"jquery": true
|
|
|
|
}
|
|
|
|
};
|