-
Notifications
You must be signed in to change notification settings - Fork 2
/
eslint.base.config.js
39 lines (37 loc) · 1.03 KB
/
eslint.base.config.js
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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
const prettierConfig = require("eslint-config-prettier");
module.exports = [
{
files: ["**/*.{ts,tsx}"],
rules: {
...prettierConfig.rules,
},
},
{
files: ["**/*.{ts,tsx}"],
rules: {
"@itwin/no-internal": [
"error",
{
tag: ["internal"],
},
],
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowAny: true,
allowBoolean: true,
allowNever: false,
allowNullish: false,
allowNumber: true,
allowRegExp: false,
},
],
curly: ["error", "all"],
},
},
];