-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
35 lines (35 loc) · 776 Bytes
/
.eslintrc.js
File metadata and controls
35 lines (35 loc) · 776 Bytes
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
module.exports = {
env: {
es6: true,
node: true,
mocha: true
},
extends: [
'airbnb',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'eslint-plugin-import',
'prettier'
],
rules: {
'prettier/prettier': 'error',
'no-magic-numbers': 2,
'comma-dangle': [2, 'never'],
'no-use-before-define': 0,
semi: [2, 'never'],
'object-curly-spacing': 0,
quotes: [1, 'single', { allowTemplateLiterals: true }],
'func-names': [2, 'never'],
'prefer-arrow-callback': 0,
'arrow-parens': ['error', 'as-needed'],
'max-len': ['error', { 'ignoreTrailingComments': true, 'ignoreComments': true }]
},
};