-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.js
More file actions
51 lines (50 loc) · 1.25 KB
/
base.js
File metadata and controls
51 lines (50 loc) · 1.25 KB
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
'use strict';
/**
* ## Eslint
* #### npm script
* ```json
* {
* "scripts": {
* "lint": "eslint --ignore-path .gitignore --format=node_modules/eslint-formatter-pretty ./"
* }
* }
* ```
* @module base
* @example
* module.exports = require('begin-linting');
*/
module.exports = {
root: true,
env: {
es6: true,
},
extends: 'airbnb-base',
parserOptions: { sourceType: 'script' },
rules: {
strict: ['error', 'global'],
'no-bitwise': ['error', { allow: ['~'] }],
'func-names': ['warn', 'as-needed'],
'no-console': ['warn', { allow: ['warn', 'error', 'info', 'debug'] }],
'prefer-const': 0,
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: false }],
'no-plusplus': 0,
'no-confusing-arrow': 0,
'no-param-reassign': 0,
'no-underscore-dangle': ['error', { allow: ['_id'] }],
'global-require': 0,
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
'max-len': ['error', 100, 2, {
ignoreUrls: true,
ignoreComments: true,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}],
},
};