51 lines
1.4 KiB
JSON
51 lines
1.4 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true,
|
|
"jquery": true
|
|
},
|
|
"extends": [
|
|
"airbnb-base",
|
|
"eslint:recommended"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"globals": {
|
|
"LRR": "readonly",
|
|
"Common": "readonly",
|
|
"Server": "readonly",
|
|
"tagger": "readonly",
|
|
"marked": "readonly",
|
|
"Awesomplete": "readonly",
|
|
"tippy": "readonly",
|
|
"Index": "readonly",
|
|
"IndexTable": "readonly",
|
|
"Swiper": "readonly"
|
|
},
|
|
"ignorePatterns": ["**/vendor/*.js"],
|
|
"rules": {
|
|
"func-names": ["error", "never"],
|
|
"indent": ["error", 4],
|
|
"quotes": ["error", "double"],
|
|
"no-alert": "off",
|
|
"no-else-return": "off",
|
|
"no-param-reassign": ["error", { "props": false }],
|
|
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
|
|
"no-multi-assign": ["error", { "ignoreNonDeclaration": true }],
|
|
"no-unused-expressions": [
|
|
"error",
|
|
{
|
|
"allowShortCircuit": true,
|
|
"allowTernary": true
|
|
}
|
|
],
|
|
"one-var": "off",
|
|
"one-var-declaration-per-line": ["error", "initializations"],
|
|
"prefer-destructuring": ["error", {"object": true, "array": false}],
|
|
"function-paren-newline": "off",
|
|
"function-call-argument-newline": "off"
|
|
}
|
|
}
|