aboutsummaryrefslogtreecommitdiffhomepage
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-31 16:56:52 +0100
committerChocobozzz <me@florianbigard.com>2020-02-03 08:31:02 +0100
commita15871560f80e07386c1dabb8370cd2664ecfd1f (patch)
tree44440e140c9e43b0d7f97ade777a76e649e0553d /.eslintrc.json
parenta22046d166805222ca76060e471b6cb3d419a32d (diff)
downloadPeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.tar.gz
PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.tar.zst
PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.zip
Move to eslintcontain
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json88
1 files changed, 88 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 000000000..a86c5bbba
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,88 @@
1{
2 "extends": "standard-with-typescript",
3 "rules": {
4 "eol-last": [
5 "error",
6 "always"
7 ],
8 "indent": "off",
9 "no-lone-blocks": "off",
10 "no-mixed-operators": "off",
11 "max-len": [
12 "error",
13 {
14 "code": 140
15 }
16 ],
17 "array-bracket-spacing": [
18 "error",
19 "always"
20 ],
21 "quote-props": [
22 "error",
23 "consistent-as-needed"
24 ],
25 "padded-blocks": "off",
26 "no-async-promise-executor": "off",
27 "dot-notation": "off",
28 "promise/param-names": "off",
29 "import/first": "off",
30 "operator-linebreak": [
31 "error",
32 "after",
33 {
34 "overrides": {
35 "?": "before",
36 ":": "before"
37 }
38 }
39 ],
40 "@typescript-eslint/indent": [
41 "error",
42 2,
43 {
44 "SwitchCase": 1,
45 "MemberExpression": "off"
46 }
47 ],
48 "@typescript-eslint/consistent-type-assertions": [
49 "error",
50 {
51 "assertionStyle": "as"
52 }
53 ],
54 "@typescript-eslint/array-type": [
55 "error",
56 {
57 "default": "array"
58 }
59 ],
60 "@typescript-eslint/restrict-template-expressions": [
61 "off",
62 {
63 "allowNumber": "true"
64 }
65 ],
66 "@typescript-eslint/quotes": "off",
67 "@typescript-eslint/no-var-requires": "off",
68 "@typescript-eslint/explicit-function-return-type": "off",
69 "@typescript-eslint/promise-function-async": "off",
70 "@typescript-eslint/no-dynamic-delete": "off",
71 "@typescript-eslint/strict-boolean-expressions": "off",
72 "@typescript-eslint/consistent-type-definitions": "off",
73 "@typescript-eslint/no-misused-promises": "off",
74 "@typescript-eslint/no-namespace": "off",
75 "@typescript-eslint/no-extraneous-class": "off",
76 // bugged but useful
77 "@typescript-eslint/restrict-plus-operands": "off"
78 },
79 "ignorePatterns": [
80 "node_modules/"
81 ],
82 "parserOptions": {
83 "project": [
84 "./tsconfig.json",
85 "./server/tools/tsconfig.json"
86 ]
87 }
88}