mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-27 06:29:19 +08:00
44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
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"],
|
|
"prefer-const": "warn",
|
|
"no-var": "error",
|
|
"eqeqeq": "error",
|
|
},
|
|
"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,
|
|
"handleDataTablesAjaxError": false
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2017
|
|
},
|
|
"root": true,
|
|
"env":{
|
|
"node": true,
|
|
"es6": true,
|
|
"browser": true,
|
|
"jest": true,
|
|
"jquery": true
|
|
}
|
|
};
|