]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/.eslintrc.json
Translated using Weblate (Ukrainian)
[github/Chocobozzz/PeerTube.git] / client / .eslintrc.json
CommitLineData
9df52d66
C
1{
2 "root": true,
3 "ignorePatterns": [
4 "projects/**/*",
5 "node_modules/"
6 ],
7 "overrides": [
8 {
9 "files": [
10 "*.ts"
11 ],
12 "parserOptions": {
13 "project": [
e5a818d3 14 "tsconfig.eslint.json"
9df52d66 15 ],
e5a818d3 16 "createDefaultProgram": false
9df52d66
C
17 },
18 "extends": [
19 "../.eslintrc.json",
20 "plugin:@angular-eslint/ng-cli-compat",
21 "plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
22 "plugin:@angular-eslint/template/process-inline-templates"
23 ],
24 "rules": {
25 "lines-between-class-members": "off",
26 "@typescript-eslint/lines-between-class-members": [ "off" ],
27 "arrow-body-style": "off",
28 "import/no-webpack-loader-syntax": "off",
29 "no-underscore-dangle": "off",
30 "node/no-callback-literal": "off",
31 "@angular-eslint/component-selector": [
32 "error",
33 {
34 "type": [ "element", "attribute" ],
35 "prefix": "my",
36 "style": "kebab-case"
37 }
38 ],
39 "@angular-eslint/directive-selector": [
40 "error",
41 {
42 "type": [ "element", "attribute" ],
43 "prefix": "my",
44 "style": "camelCase"
45 }
46 ],
47 "@typescript-eslint/no-this-alias": [
48 "error",
49 {
50 "allowDestructuring": true,
51 "allowedNames": ["self", "player"]
52 }
53 ],
54 "@typescript-eslint/prefer-readonly": "off",
55 "@angular-eslint/use-component-view-encapsulation": "error",
56 "prefer-arrow/prefer-arrow-functions": "off",
57 "@typescript-eslint/await-thenable": "error",
58 "@typescript-eslint/consistent-type-definitions": "off",
59 "@typescript-eslint/dot-notation": "off",
60 "@typescript-eslint/explicit-member-accessibility": [
61 "off",
62 {
63 "accessibility": "explicit"
64 }
65 ],
66 "@typescript-eslint/member-ordering": [
67 "off"
68 ],
69 "@typescript-eslint/member-delimiter-style": [
70 "error",
71 {
72 "multiline": {
73 "delimiter": "none",
74 "requireLast": true
75 },
76 "singleline": {
77 "delimiter": "comma",
78 "requireLast": false
79 }
80 }
81 ],
82 "@typescript-eslint/prefer-for-of": "off",
83 "@typescript-eslint/no-empty-function": "error",
84 "@typescript-eslint/no-floating-promises": "off",
85 "@typescript-eslint/no-inferrable-types": "error",
86 "@typescript-eslint/no-shadow": [
87 "off",
88 {
89 "hoist": "all"
90 }
91 ],
92 "@typescript-eslint/no-unnecessary-qualifier": "error",
93 "@typescript-eslint/no-unnecessary-type-assertion": "error",
94 "@typescript-eslint/no-unused-expressions": [
95 "error",
96 {
97 "allowTaggedTemplates": true,
98 "allowShortCircuit": true
99 }
100 ],
101 "@typescript-eslint/quotes": [
102 "error",
103 "single",
104 {
105 "avoidEscape": true,
106 "allowTemplateLiterals": true
107 }
108 ],
109 "@typescript-eslint/semi": [
110 "error",
111 "never"
112 ],
113 "brace-style": [
114 "error",
115 "1tbs"
116 ],
117 "comma-dangle": "error",
118 "curly": [
119 "error",
120 "multi-line"
121 ],
122 "dot-notation": "off",
123 "no-useless-return": "off",
124 "indent": "off",
125 "no-bitwise": "off",
126 "no-console": "off",
127 "no-return-assign": "off",
128 "no-constant-condition": "error",
129 "no-control-regex": "error",
130 "no-duplicate-imports": "error",
131 "no-empty": "error",
132 "no-empty-function": [
133 "error",
134 { "allow": [ "constructors" ] }
135 ],
136 "no-invalid-regexp": "error",
137 "no-multiple-empty-lines": "error",
138 "no-redeclare": "error",
139 "no-regex-spaces": "error",
140 "no-return-await": "error",
141 "no-shadow": "off",
142 "no-unused-expressions": "error",
143 "semi": "error",
144 "space-before-function-paren": [
145 "error",
146 "always"
147 ],
148 "space-in-parens": [
149 "error",
150 "never"
151 ],
152 "object-shorthand": [
153 "error",
154 "properties"
155 ]
156 }
157 },
158 {
159 "files": [
160 "*.html"
161 ],
162 "extends": [
163 "plugin:@angular-eslint/template/recommended"
164 ],
165 "rules": {}
166 }
167 ]
168}