forked from diederikfeilzer/node-omx-interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
31 lines (31 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
module.exports = {
root: true,
env: {
es6: true,
node: true,
},
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: '2018',
},
extends: [
'eslint:recommended',
],
plugins: [],
// add your custom rules here
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'indent': ['error', 'tab', { 'SwitchCase': 1 }],
'quotes': ['error', 'single'],
'semi': ['warn', 'always'],
'no-unused-vars': ['warn'],
'eol-last': ['error', 'always'],
'comma-spacing': ['error', { 'before': false, 'after': true }],
'comma-dangle': ['warn', 'always-multiline'],
'no-tabs': ['error', { allowIndentationTabs: true }],
'space-infix-ops': ['error', {'int32Hint': false}],
'keyword-spacing': ['error', { 'before': true, 'after': true }],
'curly': 'error',
},
};