-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patheslint.config.js
38 lines (36 loc) · 905 Bytes
/
eslint.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
import ts from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
const myRules = {
// https://eslint.org/docs/latest/rules/max-len
// Temporary rule to see if eslint will work:
//'max-len': ['warn', { code: 3, ignoreComments: false, ignoreRegExpLiterals: true, ignoreStrings: true, ignoreTemplateLiterals: true }],
};
export default [
{
rules: myRules,
},
{
ignores: [".bos/*"],
},
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaFeatures: { modules: true },
ecmaVersion: "latest",
project: "./tsconfig.json",
},
},
plugins: {
"@typescript-eslint": ts,
ts,
},
rules: {
...ts.configs["eslint-recommended"].rules,
...ts.configs["recommended"].rules,
...myRules,
"ts/return-await": 2,
},
},
];