-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy patheslint.config.mjs
More file actions
101 lines (97 loc) · 4.73 KB
/
Copy patheslint.config.mjs
File metadata and controls
101 lines (97 loc) · 4.73 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
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
97
98
99
100
101
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
// ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
// ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// ┃ Copyright (c) 2017, the Perspective Authors. ┃
// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
// ┃ This file is part of the Perspective library, distributed under the terms ┃
// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
import tseslint from "typescript-eslint";
// import globals from "globals";
export default tseslint.config(
{
ignores: [
"docs/**",
"tools/**",
"rust/**",
"examples/**",
"packages/cli/**/*",
"packages/jupyterlab/**/*",
// "packages/viewer-charts/**/*",
// "packages/viewer-datagrid/**/*",
"packages/workspace/**/*",
"packages/react/**/*",
".emsdk/**",
"**/py_modules/**",
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"**/target/**",
"**/pkg/**",
],
},
...tseslint.configs.recommended,
{
files: ["**/*.{ts,mts,tsx}"],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
// globals: {
// ...globals.browser,
// ...globals.node,
// },
},
rules: {
"@typescript-eslint/no-explicit-any": "off",
curly: "warn",
"padding-line-between-statements": [
"warn",
{ blankLine: "always", prev: "block-like", next: "*" },
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
args: "none",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
// // This is why we can't have nice things. I like this rule, but
// // `prettier` doesn't, so we conform or perish.
//
// "lines-around-comment": [
// "warn",
// {
// beforeLineComment: true,
// beforeBlockComment: true,
// },
// ],
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-wrapper-object-types": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
"no-empty": "off",
"no-prototype-builtins": "off",
"no-control-regex": "off",
"no-useless-escape": "off",
"no-async-promise-executor": "off",
"no-cond-assign": "off",
"no-misleading-character-class": "off",
},
},
{
files: ["examples/**/*.{ts,mts,tsx}", "tools/bench/**/*.{ts,mts,tsx}"],
rules: {
"@typescript-eslint/no-unused-vars": "warn",
},
},
);