4chan-XZ/.eslintrc
2023-04-22 05:33:23 +02:00

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"]
}
]
}
}