-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
39 lines (39 loc) · 1.13 KB
/
index.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
module.exports = {
extends: [
'eslint-config-airbnb-base',
'eslint-config-airbnb-base/rules/strict',
'plugin:eslint-comments/recommended',
'plugin:prettier/recommended',
],
env: {
es6: true,
commonjs: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
plugins: ['prettier'],
rules: {
'eqeqeq': ['error', 'smart'],
'max-len': ['error', {
code: 80,
// Allow import, export and implements statements. Also long backticks
ignorePattern: '^import [^,]+ from |^export | implements | `.{30,}`',
ignoreComments: true,
}],
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
'no-underscore-dangle': ['error', { allowAfterThis: true }],
'no-use-before-define': ['error', { functions: false, 'classes': true }],
'no-warning-comments': ['error', { terms: ['fixme'], location: 'start' }],
'object-curly-newline': ['error', { consistent: true }],
'import/no-anonymous-default-export': ['error'],
'prettier/prettier': [
'error',
{
'singleQuote': true,
'trailingComma': 'all',
},
],
},
};