generated from therockstorm/nx-template
-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.cjs
30 lines (30 loc) · 862 Bytes
/
.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
module.exports = {
env: { browser: true, es2017: true, node: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:sonarjs/recommended",
"plugin:typescript-sort-keys/recommended",
"prettier",
],
ignorePatterns: ["*.cjs", "**/template.js"],
parser: "@typescript-eslint/parser",
parserOptions: { ecmaVersion: 2020, sourceType: "module" },
plugins: [
"@typescript-eslint",
"svelte3",
"simple-import-sort",
"sonarjs",
"typescript-sort-keys",
],
overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }],
root: true,
rules: {
"no-await-in-loop": "warn",
"no-return-await": "warn",
"require-await": "warn",
"simple-import-sort/imports": "warn",
"sort-keys": "warn",
},
settings: { "svelte3/typescript": () => require("typescript") },
};