-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
37 lines (35 loc) · 1.26 KB
/
.eslintrc
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
// Copyright (C) 2022 Matt Varghese
// Distributed under GNU GENERAL PUBLIC LICENSE Version 3
// See ~/LICENSE for details
// GitHub: https://github.com/mattvarghese/typescript-tutorial
{
/* NOTE: you can use
* // eslint-disable-line
* or // eslint-disable-next-line
* comments to suppress false positives / errors we don't care about
*/
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
// Ref: https://carldesouza.com/configuring-eslint-semi-colons-rule/
// https://eslint.org/docs/latest/rules/semi
// "semi": [2,"always"],
// Ref: https://stackoverflow.com/questions/58474874/eslint-demands-semicolon-and-wants-it-removed-at-the-same-time
"@typescript-eslint/semi": ["error", "always"],
"no-unexpected-multiline": "error",
// Ref: https://typescript-eslint.io/rules/member-delimiter-style/
"@typescript-eslint/member-delimiter-style": "error"
}
}