-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
33 lines (32 loc) · 847 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
/** @format */
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended'],
plugins: ['@typescript-eslint'],
settings: {
react: {
pragma: 'React',
version: 'detect',
},
},
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
node: false,
},
rules: {
'@typescript-eslint/no-this-alias': [
'error',
{
allowDestructuring: true, // Allow `const { props, state } = this`; false by default
allowedNames: ['_this'], // Allow `const vm= this`; `[]` by default
},
],
},
}