115 lines
1.9 KiB
Plaintext
115 lines
1.9 KiB
Plaintext
{
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"globals": {
|
|
"Hyphenopoly": "readable"
|
|
},
|
|
"plugins": [
|
|
"security"
|
|
],
|
|
"extends": [
|
|
"eslint:all",
|
|
"plugin:security/recommended"
|
|
],
|
|
"rules": {
|
|
"no-undef": "error",
|
|
"complexity": [
|
|
"error",
|
|
6
|
|
],
|
|
"require-unicode-regexp": 0,
|
|
"require-jsdoc": [
|
|
"error",
|
|
{
|
|
"require": {
|
|
"FunctionDeclaration": true,
|
|
"MethodDefinition": true,
|
|
"ClassDeclaration": true,
|
|
"ArrowFunctionExpression": true,
|
|
"FunctionExpression": true
|
|
}
|
|
}
|
|
],
|
|
"no-template-curly-in-string": 2,
|
|
"prefer-template": 0,
|
|
"wrap-iife": 1,
|
|
"max-lines": 0,
|
|
"max-lines-per-function": 0,
|
|
"max-len": [
|
|
1,
|
|
{
|
|
"ignoreStrings": true,
|
|
"ignoreTemplateLiterals": true
|
|
}
|
|
],
|
|
"max-statements": 0,
|
|
"space-before-function-paren": [
|
|
1,
|
|
{
|
|
"anonymous": "always",
|
|
"named": "never",
|
|
"asyncArrow": "never"
|
|
}
|
|
],
|
|
"padded-blocks": [
|
|
1,
|
|
"never"
|
|
],
|
|
"id-length": [
|
|
1,
|
|
{
|
|
"min": 1
|
|
}
|
|
],
|
|
"one-var": 0,
|
|
"func-names": [
|
|
1,
|
|
"as-needed"
|
|
],
|
|
"func-style": [
|
|
1,
|
|
"declaration"
|
|
],
|
|
"object-shorthand": 0,
|
|
"prefer-arrow-callback": 0,
|
|
"no-param-reassign": 0,
|
|
"no-extra-parens": 0,
|
|
"array-element-newline": [
|
|
1,
|
|
{
|
|
"multiline": true,
|
|
"minItems": 12
|
|
}
|
|
],
|
|
"no-magic-numbers": 0,
|
|
"function-paren-newline": [
|
|
1,
|
|
"consistent"
|
|
],
|
|
"no-ternary": 0,
|
|
"no-nested-ternary": 0,
|
|
"prefer-destructuring": 0,
|
|
"max-params": [
|
|
1,
|
|
5
|
|
],
|
|
"lines-around-comment": [
|
|
1,
|
|
{
|
|
"allowBlockStart": true
|
|
}
|
|
],
|
|
"sort-keys": [
|
|
1,
|
|
"asc",
|
|
{
|
|
"caseSensitive": false
|
|
}
|
|
]
|
|
}
|
|
} |