forked from generalwrex/snekfetch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
67 lines (66 loc) · 1.49 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
'use strict';
module.exports = {
extends: 'airbnb',
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'script',
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
},
env: {
es6: true,
node: true,
},
overrides: [
{
files: ['*.jsx'],
parserOptions: {
sourceType: 'module',
ecmaFeatures: { jsx: true },
},
},
{
files: ['*.mjs'],
parserOptions: { sourceType: 'module' },
env: {
node: true,
},
rules: {
'no-restricted-globals': ['error', 'require'],
},
},
{
files: ['*.web.js'],
env: { browser: true },
},
],
rules: {
'strict': ['error', 'global'],
'no-bitwise': 'off',
'no-iterator': 'off',
'global-require': 'off',
'quote-props': ['error', 'consistent-as-needed'],
'brace-style': ['error', '1tbs', { allowSingleLine: false }],
'curly': ['error', 'all'],
'no-param-reassign': 'off',
'arrow-parens': ['error', 'always'],
'no-multi-assign': 'off',
'no-underscore-dangle': 'off',
'no-restricted-syntax': 'off',
'object-curly-newline': 'off',
'prefer-const': ['error', { destructuring: 'all' }],
'class-methods-use-this': 'off',
'import/no-dynamic-require': 'off',
'import/no-extraneous-dependencies': ['error', {
devDependencies: true,
}],
'import/extensions': 'off',
},
globals: {
WebAssembly: false,
BigInt: false,
URL: false,
},
};