-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
29 lines (29 loc) · 853 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
module.exports = {
parser: '@typescript-eslint/parser', // use typescript eslint parser
parserOptions: {
ecmaVersion: 2020, // Let's use es2020!
sourceType: 'module', // you are going to use npmjs.com right?
/*
ecmaFeatures: {
jsx: true // React: Allow JSX
}
*/
},
/*
settings: {
react: {
version: "detect" // React: Detect React Version
}
},
*/
extends: [
'plugin:@typescript-eslint/recommended', // use recommended rule of @typescript-eslint/eslint-plugin
// "plugin:react/recommended", // React: enable react plugin
'prettier/@typescript-eslint', // mitigate conflict between eslint and prettier
'plugin:prettier/recommended', // enable eslint
],
rules: {
// put your eslint rules here:
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
},
};