-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
31 lines (31 loc) · 1.04 KB
/
.eslintrc.js
File metadata and controls
31 lines (31 loc) · 1.04 KB
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
/**
* Configures Eslint
* This controls how your code is formatted and ensures that consistent style is followed
* We also integrate Prettier here so formatting doesn't conflict
*
* Your code editor might show an Eslint error for this file.
* Something about parserOptions.project. It's ok!
* It's because this file si not in the tsconfig project, so this is not being linted.
*/
module.exports = {
"extends": [
// enable the airbnb style guide with modifications with Typescript
"airbnb-typescript",
// enable the Prettier integration - run Prettier as part of eslint
// configure Prettier in the .prettierrc file
"plugin:prettier/recommended",
"prettier/react",
"prettier/@typescript-eslint"
],
"parserOptions": {
// configure your .tsconfig
"project": "./tsconfig.json"
},
"rules": {
// make the prettier rules fail the linter
"prettier/prettier": 1,
// disable the console rule since this is a Node server
// renable if you have a more sophisticated logging setup
"no-console": 0,
}
}