forked from badrap/bar-of-progress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (32 loc) · 798 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
module.exports = {
env: {
browser: true,
es6: true,
},
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint",
],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
project: "./tsconfig.json",
},
plugins: ["prettier"],
rules: {
"prettier/prettier": "warn",
"linebreak-style": ["error", "unix"],
eqeqeq: ["error", "smart"],
"@typescript-eslint/no-for-in-array": ["error"],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{ accessibility: "no-public" },
],
"@typescript-eslint/explicit-function-return-type": [
"error",
{ allowExpressions: true, allowTypedFunctionExpressions: true },
],
},
};