-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.25 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
module.exports = {
"env": {
"browser": true,
"jest": true,
"node": true,
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
// add these parser options
// "tsconfigRootDir": __dirname,
// "project": ["./tsconfig.json"],
"extraFileExtensions": [".svelte"],
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"google",
],
"plugins": ["html", "svelte3", "@typescript-eslint", "@typescript-eslint/eslint-plugin", "eslint-plugin-tsdoc"],
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3",
},
],
"settings": {
"svelte3/typescript": require("typescript"),
"svelte3/ignore-styles": () => true,
},
"rules": {
"new-cap": "off",
"@typescript-eslint/no-explicit-any": "off",
"object-curly-spacing": ["error", "always"],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"quotes": ["error", "double"],
"jsx-quotes": "warn",
"quote-props": ["error", "consistent"],
"require-jsdoc": "off",
"max-len": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"tsdoc/syntax": "warn",
"valid-jsdoc": "off",
},
};