-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.base.config.js
More file actions
54 lines (53 loc) · 1.52 KB
/
eslint.base.config.js
File metadata and controls
54 lines (53 loc) · 1.52 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
43
44
45
46
47
48
49
50
51
52
53
54
/*---------------------------------------------------------------------------------------------
* 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");
const stylistic = require("@stylistic/eslint-plugin");
module.exports = [
{
files: ["**/*.{ts,tsx}"],
rules: {
...prettierConfig.rules,
},
},
{
files: ["**/*.{ts,tsx}"],
plugins: {
"@stylistic": stylistic,
},
rules: {
"@itwin/no-internal": [
"error",
{
tag: ["internal"],
},
],
"@typescript-eslint/no-non-null-assertion": "off",
"@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,
},
],
"@typescript-eslint/no-empty-object-type": [
"error",
{
allowObjectTypes: "always",
},
],
"@stylistic/padding-line-between-statements": [
"error",
{ blankLine: "always", prev: "import", next: "*" },
{ blankLine: "any", prev: "import", next: "import" },
],
curly: ["error", "all"],
},
},
];