mirror of
https://github.com/LalleSX/4chan-XZ.git
synced 2026-01-30 09:48:12 +01:00
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
{
|
|
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"es6": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"semi": ["error", "always"],
|
|
"quotes": ["error", "double"],
|
|
"indent": [
|
|
"error",
|
|
2,
|
|
{
|
|
"SwitchCase": 1,
|
|
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
|
|
"MemberExpression": 1,
|
|
"FunctionDeclaration": { "parameters": "first" },
|
|
"FunctionExpression": { "parameters": "first" },
|
|
"CallExpression": { "arguments": "first" },
|
|
"ArrayExpression": "first",
|
|
"ObjectExpression": "first",
|
|
"ImportDeclaration": "first",
|
|
"flatTernaryExpressions": true
|
|
}
|
|
],
|
|
"no-console": "warn",
|
|
"no-debugger": "warn",
|
|
"sort-imports": [
|
|
"error",
|
|
{
|
|
"ignoreCase": false,
|
|
"ignoreDeclarationSort": true,
|
|
"ignoreMemberSort": false,
|
|
"memberSyntaxSortOrder": ["none", "single", "multiple", "all"]
|
|
}
|
|
]
|
|
}
|
|
}
|