forked from blakek/ms-bing-rewards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 785 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
module.exports = {
extends: [
'gsandf',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended'
],
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/explicit-function-return-type': ['off']
}
}
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'array-callback-return': 'error',
camelcase: 'off',
'no-extra-label': 'error',
'no-native-reassign': 'error',
'no-restricted-syntax': ['error'],
'no-unused-labels': 'error',
'no-useless-concat': 'error',
radix: ['error', 'as-needed'],
'require-yield': 'error',
'sort-keys': 'off'
},
settings: {
react: {
version: 'detect'
}
}
};