forked from dodona-edu/dolos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
42 lines (41 loc) · 1.4 KB
/
Copy patheslint.config.mjs
File metadata and controls
42 lines (41 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { defineConfig } from "eslint/config";
import eslint from "@eslint/js";
export default defineConfig(
eslint.configs.recommended,
{
rules: {
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": ["error", { allowExpressions: true }],
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-parameter-properties": "off",
"arrow-parens": ["error", "as-needed"],
"comma-dangle": [
"error",
{
arrays: "only-multiline",
objects: "only-multiline",
imports: "only-multiline",
exports: "only-multiline",
functions: "only-multiline",
},
],
semi: ["error", "always"],
indent: ["error", 2],
"max-len": ["error", { code: 120 }],
"no-unused-vars": "off",
"no-invalid-this": "error",
"no-param-reassign": ["error", { props: false }],
"object-curly-spacing": ["error", "always"],
quotes: ["error", "double"],
"require-jsdoc": "off",
"space-before-function-paren": [
"error",
{
anonymous: "always",
named: "never",
asyncArrow: "always",
},
],
},
},
);