-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.cjs
44 lines (44 loc) · 1.07 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
plugins: ["svelte3"],
extends: ["airbnb-base", "prettier"],
parserOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
env: {
es6: true,
browser: true,
},
overrides: [
{
files: ["**/*.svelte"],
processor: "svelte3/svelte3",
},
],
rules: {
"no-cond-assign": ["error", "except-parens"],
"no-param-reassign": ["error", { props: false }],
"no-return-assign": ["error", "except-parens"],
"no-undef-init": "off",
"no-underscore-dangle": "off",
// see https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/OTHER_PLUGINS.md#eslint-plugin-import
"import/first": "off",
"import/no-mutable-exports": "off",
"import/prefer-default-export": "off",
"import/no-duplicates": "off",
"lines-between-class-members": [
"error",
"always",
{ exceptAfterSingleLine: true },
],
},
settings: {
"svelte3/ignore-styles": (attribs) => "lang" in attribs,
"import/resolver": {
node: {
extensions: [".d.ts"],
},
},
},
};