forked from snowflakedb/snowflake-connector-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
61 lines (61 loc) · 1.58 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es2021': true,
'mocha': true,
'node': true
},
'extends': 'eslint:recommended',
'overrides': [
{
'files': ['samples/*.js'],
'rules': {
'no-console': ['warn'],
}
}
],
'parserOptions': {
'ecmaVersion': 'latest'
},
'rules': {
'array-bracket-spacing': ['warn'],
'arrow-spacing': ['warn'],
'block-spacing': ['warn'],
'brace-style': ['warn', '1tbs'],
'camelcase': ['warn'],
'comma-spacing': ['warn'],
'curly': ['warn', 'all'],
'eqeqeq': ['warn'],
'indent': ['warn', 2],
'key-spacing': ['warn'],
'keyword-spacing': ['warn'],
'linebreak-style': ['warn', 'unix'],
'no-async-promise-executor': ['warn'],
'no-console': ['error', { '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'],
'object-curly-spacing': ['warn', 'always'],
'prefer-const': ['warn'],
'quotes': ['warn', 'single'],
'semi': ['warn', 'always'],
'semi-spacing': ['warn'],
'space-before-function-paren': ['warn', {
'anonymous': 'always',
'named': 'never',
'asyncArrow': 'always',
}],
'space-infix-ops': ['warn'],
}
};