-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode.js
30 lines (30 loc) · 931 Bytes
/
node.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
module.exports = {
'env': {
'node': true,
'es6': true,
'browser': false,
'mocha': true
},
'plugins': [
],
'extends': [
'airbnb-base/legacy',
'gfp/rules/base'
],
rules: {
// disallow modifying variables that are declared using const
'no-const-assign': 'error',
// suggest using template literals instead of string concatenation
// http://eslint.org/docs/rules/prefer-template
'prefer-template': 'error',
// specify whether double or single quotes should be used
// Override Airbnb and allow template literals
quotes: ['error', 'single', {
avoidEscape: true,
allowTemplateLiterals: true
}],
// enforce usage of spacing in template strings
// http://eslint.org/docs/rules/template-curly-spacing
'template-curly-spacing': 'error'
}
};