forked from microsoft/appcenter-sampleapp-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (39 loc) · 1.05 KB
/
.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
const path = require("path");
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint"
// any other eslint plugins your team might need/use
],
env: {
// pick your environments
browser: true,
jest: true,
node: true
},
parserOptions: {
// this can be an array or string (if you only have one tsconfig.json)
project: [
// include all of your `tsconfig.json` files in here
// the example here is taken from portal
path.resolve(__dirname, "./tsconfig.json"),
path.resolve(__dirname, "./server/tsconfig.json"),
path.resolve(__dirname, "./fixtures/tsconfig.json")
],
tsconfigRootDir: __dirname,
ecmaVersion: 2018,
sourceType: "module"
},
// for getting help/started on picking rules, a good place to look for
// a minimal setup that includes only a couple stylistic rules is
// in the portal's eslintrc.js file
rules: {
// ...
},
extends: [
// any other plugins here,
"prettier",
"prettier/@typescript-eslint"
]
};