-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (40 loc) · 931 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
36
37
38
39
40
41
42
43
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"universe/native",
"universe/shared/typescript-analysis",
"prettier"
],
plugins: [],
rules: {
// We will use TypeScript's types for component props instead
"react/prop-types": "off",
// Why would you want unused vars?
"@typescript-eslint/no-unused-vars": "warn",
// I suggest this setting for requiring return types on functions only where useful
"@typescript-eslint/explicit-function-return-type": "off",
// Includes .prettierrc.js rules
"prettier/prettier": [
"warn",
{
endOfLine: "auto",
printWidth: 80,
useTabs: true,
tabWidth: 2,
singleQuote: false,
bracketSameLine: false,
trailingComma: "none",
singleAttributePerLine: true
},
{ usePrettierrc: false }
]
},
overrides: [
{
files: ["*.ts", "*.tsx", "*.d.ts"],
parserOptions: {
project: "./tsconfig.json"
}
}
]
};