forked from Cweili/svelte-fa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (35 loc) · 886 Bytes
/
.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
// ===============================================================
// Airbnb JavaScript Style Guide
// https://github.com/airbnb/javascript
// https://github.com/walmartlabs/eslint-config-defaults
// http://eslint.org/docs/rules/
// ===============================================================
module.exports = {
extends: ['airbnb-base'],
plugins: ['svelte3'],
env: {
es6: true,
browser: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
overrides: [
{
files: ['*.svelte'],
processor: 'svelte3/svelte3',
},
],
rules: {
eqeqeq: 0,
'no-multi-assign': 0,
'no-new': 0,
'no-restricted-syntax': 0,
'max-len': 1,
'import/no-extraneous-dependencies': 1,
'import/no-mutable-exports': 0,
'import/no-unresolved': [2, { ignore: ['svelte-fa'] }],
},
};