1 // taken from https://github.com/matrix-org/matrix-appservice-irc/blob/d69e4d1c40f9856812c948e4dc17e7747273fd67/.eslintrc
3 "parser": "@typescript-eslint/parser",
20 "plugin:@typescript-eslint/recommended"
24 "consistent-return": "off",
31 "no-constant-condition": 0,
35 "no-duplicate-case": 2,
38 "no-empty-character-class": 2,
41 "no-extend-native": 2,
42 "no-extra-boolean-cast": 2,
46 "no-invalid-regexp": 2,
48 "no-irregular-whitespace": 1,
55 "no-negated-in-lhs": 2,
59 "no-return-assign": 2,
63 "no-unexpected-multiline": 2,
64 "no-unused-expressions": 2,
65 "no-use-before-define": [1, "nofunc"],
66 "no-useless-escape": 0,
70 "array-bracket-spacing": [1, "never"],
72 "brace-style": [1, "stroustrup", { "allowSingleLine": true }],
73 "comma-spacing": [1, {"before": false, "after": true}],
74 "comma-style": [1, "last"],
75 "computed-property-spacing": [1, "never"],
76 "consistent-this": [1, "self"],
80 "no-mixed-spaces-and-tabs": 1,
81 "no-nested-ternary": 1,
83 "no-trailing-spaces": 1,
84 "keyword-spacing": [1, {"before": true, "after": true}],
85 "space-before-blocks": [1, "always"],
86 "@typescript-eslint/ban-ts-ignore": 0,
87 "@typescript-eslint/explicit-function-return-type": 0,
88 "@typescript-eslint/explicit-module-boundary-types": 0,
89 "@typescript-eslint/no-shadow": ["error"],
90 "no-unused-vars": 0, // covered by @typescript-eslint/no-unused-vars
91 "strict": ["error", "never" ],
94 "indent": ["error", 4, {
95 "FunctionDeclaration": {"parameters": "first"},
96 "FunctionExpression": {"parameters": "first"},
99 "no-control-regex": "off",