-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
37 lines (35 loc) · 1.46 KB
/
index.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
// https://github.com/google/eslint-config-google
// https://standardjs.com/rules.html
// https://github.com/airbnb/javascript
// standard: https://github.com/standard/eslint-config-standard/blob/master/eslintrc.json
// google: https://github.com/google/eslint-config-google/blob/master/index.js
// airbnb: https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules
// TypeScript: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
module.exports = {
'extends': ['overwolf', 'plugin:@typescript-eslint/recommended'],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 2018,
'sourceType': 'module',
'project': './tsconfig.json',
},
'plugins': [
'@typescript-eslint',
],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
/* Overwolf */
'@typescript-eslint/indent': 'off', // disable indentation in favor of ours
'no-invalid-this': 'off', // https://github.com/typescript-eslint/typescript-eslint/issues/491
'no-undef': 'off', // https://github.com/typescript-eslint/typescript-eslint/issues/342
'lines-between-class-members': [
'error', 'always', {
exceptAfterSingleLine: true,
},
], // allow grouped members
'new-cap': ['error', { 'capIsNew': false }],
'no-useless-constructor': 'off',
},
};