forked from analogdevicesinc/codefusion-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
96 lines (94 loc) · 2.41 KB
/
.eslintrc.json
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
/*
* The rules that are commented out are causing major linting issues.
* It would be best to tack each one of these rules as individual efforts.
*/
"root": true,
"overrides": [
{
"files": ["**/*.js", "**/*.ts", "**/*.jsx", "**/*.tsx"],
"plugins": ["header", "simple-import-sort"],
"extends": [
"xo",
//"xo-typescript",
"plugin:react/jsx-runtime",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"rules": {
// "header/header": [
// 2,
// "block",
// [
// {
// "pattern": "Copyright \\(c\\) \\d{4}(-\\d{4})? Analog Devices, Inc. All Rights Reserved."
// }
// ]
// ],
"import/no-unassigned-import": 0,
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"import/no-cycle": 0,
"import/no-absolute-path": 0,
"n/file-extension-in-import": 0,
"@typescript-eslint/prefer-nullish-coalescing": 0,
"@typescript-eslint/naming-convention": 0,
// "react/jsx-tag-spacing": [
// "error",
// {
// "beforeSelfClosing": "always"
// }
// ],
"comma-dangle": 0,
"indent": 0,
"@typescript-eslint/indent": 0,
"@typescript-eslint/comma-dangle": 0,
"@typescript-eslint/triple-slash-reference": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-return": 0
// "@typescript-eslint/naming-convention": [
// "error",
// {
// "selector": "variableLike",
// "format": ["camelCase", "PascalCase", "UPPER_CASE"],
// "leadingUnderscore": "allow",
// "trailingUnderscore": "allow"
// }
// ],
// "padding-line-between-statements": [
// "error",
// {
// "blankLine": "always",
// "prev": "*",
// "next": "return"
// },
// {
// "blankLine": "always",
// "prev": "multiline-block-like",
// "next": "*"
// },
// {
// "blankLine": "always",
// "prev": "*",
// "next": "multiline-block-like"
// }
// ],
// "simple-import-sort/imports": "error",
// "simple-import-sort/exports": "error"
}
}
],
"ignorePatterns": [
"**/node_modules/**",
// TODO: Fix the linting for each package.
"packages/elf-parser",
"packages/pinconfig-ui",
"packages/cli",
"packages/ide/src/webviews/**/*",
"packages/cfs-lib"
]
}