forked from 0xgen0/ethernal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
67 lines (67 loc) · 1.51 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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 9,
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
spread: true,
},
sourceType: 'module',
},
plugins: ['disable', 'react', 'svelte3', 'prettier'],
processor: 'disable/disable',
rules: {
'prettier/prettier': 'error',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/prop-types': 0,
'no-underscore-dangle': 0,
'no-bitwise': 0,
camelcase: 1,
'no-script-url': 1,
'no-param-reassign': 0,
},
extends: ['plugin:react/recommended', 'airbnb-base', 'prettier'],
overrides: [
{
files: ['**/*.svelte'],
processor: 'svelte3/svelte3',
settings: {
'disable/plugins': ['prettier'],
'svelte3/ignore-styles': ({ lang }) => lang === 'scss',
},
rules: {
'svelte3/lint-template': 2,
'prettier/prettier': 'off',
// Known issues
'import/first': 'off',
'import/no-mutable-exports': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'prefer-const': 1,
},
},
],
settings: {
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx'],
},
},
},
globals: {
BUILD_TIMESTAMP: true,
CACHE_API: true,
COMMIT: true,
ENV: true,
ETH_URL: true,
MODE: true,
SENTRY_DSN: true
},
};