-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
35 lines (35 loc) · 932 Bytes
/
.eslintrc.cjs
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 = {
'env': {
'browser': true,
'es6': true,
},
'extends': [
'google',
],
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly',
},
'parser': 'babel-eslint',
'parserOptions': {
'ecmaVersion': 2018,
'sourceType': 'module',
},
'rules': {
'new-cap': [2, {
capIsNewExceptionPattern: 'ee\..*',
// TODO(janakr): for some reason ee\n .Feature isn't matched.
capIsNewExceptions: ['Feature']}],
'max-len': [2, {
'ignorePattern': '^import .*',
// TODO(janakr): this is true by default, why does it have to be specified
// as soon as I start setting max-len explicitly?
'ignoreUrls': true,
}],
// TODO(https://github.com/google/eslint-config-google/issues/58):
// Was fighting with clang and we believe clang is doing a good enough
// job.
'indent': 'off',
'no-multi-spaces': 'off',
},
};