forked from snowflakedb/snowflake-connector-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
38 lines (38 loc) · 1022 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
36
37
38
module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es2021': true,
'mocha': true,
'node': true
},
'extends': 'eslint:recommended',
'overrides': [],
'parserOptions': {
'ecmaVersion': 'latest'
},
'rules': {
'brace-style': ['warn', '1tbs'],
'curly': ['warn', 'all'],
'indent': ['warn', 2],
'linebreak-style': ['warn', 'unix'],
'no-async-promise-executor': ['warn'],
'no-console': ['warn', { 'allow': ['warn', 'error'] }],
'no-empty': ['warn'],
'no-ex-assign': ['warn'],
'no-extra-semi': ['warn'],
'no-inner-declarations': ['warn'],
'no-loss-of-precision': ['warn'],
'no-mixed-spaces-and-tabs': ['error'],
'no-prototype-builtins': ['warn'],
'no-redeclare': ['warn'],
'no-undef': ['warn'],
'no-unused-vars': ['warn'],
'no-useless-catch': ['warn'],
'no-useless-escape': ['warn'],
'no-var': ['warn'],
'prefer-const': ['warn'],
'quotes': ['warn', 'single'],
'semi': ['warn', 'always']
}
};