-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 849 Bytes
/
.eslintrc.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
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"prettier",
"plugin:prettier/recommended",
],
plugins: ["@typescript-eslint", "simple-import-sort"],
parserOptions: {
project: "./tsconfig.json",
sourceType: "module",
ecmaVersion: 2018,
tsconfigRootDir: "./",
},
env: {
node: true,
},
rules: {
"prettier/prettier": [
"error",
{
singleQuote: true,
printWidth: 90,
arrowParens: "avoid",
bracketSpacing: true,
},
],
"@typescript-eslint/no-unused-vars-experimental": [
"warn",
{ ignoredNamesRegex: "^_" },
],
"@typescript-eslint/no-unused-vars": "off", // in favor of the one above so we can ignore vars prefixed with _
},
};