blessing-skin-server/.eslintrc.js

39 lines
948 B
JavaScript
Raw Normal View History

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",
"comma-style": ["warn", "last"]
},
"globals": {
"url": false,
"swal": false,
"fetch": false,
"trans": false,
"logout": false,
"toastr": false,
"isEmpty": false,
"showMsg": false,
"blessing": true,
"debounce": false,
"showModal": false,
"showAjaxError": false,
"getQueryString": false,
"TexturePreview": false
},
2017-07-20 15:36:59 +08:00
"parserOptions": {
"ecmaVersion": 2017
},
2017-07-13 17:02:31 +08:00
"env":{
2017-07-20 15:36:59 +08:00
"commonjs": 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
}
};