DiscordTickets/.eslintrc.json

229 lines
3.2 KiB
JSON
Raw Permalink Normal View History

2022-03-18 18:27:32 +02:00
{
"env": {
"browser": false,
"commonjs": false,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
2022-03-22 01:28:20 +02:00
"plugins": [
"unused-imports"
],
2022-03-18 18:27:32 +02:00
"root": true,
"rules": {
"array-bracket-newline": [
"error",
"consistent"
],
"array-bracket-spacing": [
"error",
"never"
],
"array-element-newline": [
"error",
"consistent"
],
"arrow-body-style": [
"error",
"as-needed"
],
"arrow-parens": [
"error",
"as-needed"
],
"block-spacing": [
"error",
"always"
],
"brace-style": [
"error",
"1tbs"
],
"comma-dangle": [
"error",
{
2022-04-16 18:43:38 +03:00
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline",
"imports": "always-multiline",
2022-03-18 18:27:32 +02:00
"objects": "always-multiline"
}
],
"comma-spacing": [
"error",
{
"after": true,
"before": false
}
],
"comma-style": [
"error",
"last"
],
"computed-property-spacing": [
"error",
"never"
],
"curly": [
"error",
"multi-line", // "multi"
"consistent"
],
"default-case-last": [
"error"
],
"dot-location": [
"error",
"property"
],
"dot-notation": [
"error"
],
"eqeqeq": [
"error"
],
"func-call-spacing": [
"error",
"never"
],
"indent": [
"error",
"tab"
],
"linebreak-style": [
"off",
"windows"
],
"max-depth": [
"warn",
{
"max": 5
}
],
"max-len": [
"warn",
{
2022-07-16 01:19:42 +03:00
"code": 180,
2022-03-18 18:27:32 +02:00
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreTrailingComments": true,
"ignoreUrls": true
}
],
"max-lines": [
"warn"
],
"max-statements-per-line": [
"error"
],
"multiline-comment-style": [
2022-05-06 02:01:19 +03:00
"off"
2022-03-18 18:27:32 +02:00
],
"no-console": [
2022-09-26 18:39:32 +03:00
"warn"
2022-03-18 18:27:32 +02:00
],
2022-07-17 16:13:44 +03:00
"no-prototype-builtins": [
"off"
],
2022-03-18 18:27:32 +02:00
"no-return-assign": [
"error"
],
"no-template-curly-in-string": [
"warn"
],
"no-trailing-spaces": [
"error"
],
"no-underscore-dangle": [
"warn",
2022-03-18 18:27:32 +02:00
{
"allowAfterThis": true,
"allowFunctionParams": true
}
],
"no-unneeded-ternary": [
"error"
],
2022-03-22 01:28:20 +02:00
"no-unused-expressions": [
"error"
],
2022-03-18 18:27:32 +02:00
"no-var": [
"error"
],
"no-whitespace-before-property": [
"error"
],
"object-curly-newline": [
"error",
{
"minProperties": 2,
"multiline": true
}
],
"object-curly-spacing": [
"error",
"always"
],
"object-property-newline": [
"error"
],
"operator-linebreak": [
"error"
],
"prefer-arrow-callback": [
"error"
],
"prefer-const": [
"error",
{
"destructuring": "all",
"ignoreReadBeforeAssign": false
}
],
"quotes": [
"error",
"single"
],
"rest-spread-spacing": [
"error",
"never"
],
"semi": [
"error",
"always"
],
"sort-keys": [
2022-04-16 18:43:38 +03:00
"warn",
2022-03-18 18:27:32 +02:00
"asc",
{
"natural": true
}
],
"space-in-parens": [
"error",
"never"
],
"spaced-comment": [
"error",
"always"
2022-03-22 01:28:20 +02:00
],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
2022-03-18 18:27:32 +02:00
]
}
2022-04-16 18:43:38 +03:00
}