]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/.eslintrc.json
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / .eslintrc.json
CommitLineData
39ae355f
TL
1{
2 "root": true,
3 "ignorePatterns": [
4 "projects/**/*"
5 ],
6 "overrides": [
7 {
8 "files": [
9 "*.ts"
10 ],
11 "parserOptions": {
12 "project": [
13 "tsconfig.json"
14 ],
15 "createDefaultProgram": true
16 },
17 "extends": [
18 "plugin:@angular-eslint/recommended",
19 "plugin:@angular-eslint/template/process-inline-templates"
20 ],
21 "rules": {
22 "no-multiple-empty-lines": [
23 "error",
24 {
25 "max": 2,
26 "maxEOF": 1
27 }
28 ],
29 "spaced-comment": [
30 "error",
31 "always",
32 {
33 "exceptions": ["-", "+", "*"]
34 }
35 ],
36 "curly": [
37 "error",
38 "multi-line"
39 ],
40 "guard-for-in": "error",
41 "no-restricted-imports": ["error", {
42 "paths": ["rxjs/Rx", {
43 "name" : "@angular/core/testing",
44 "importNames": ["async"]
45 }],
46 "patterns": ["(\\.{1,2}/){2,}"]
47 }],
48 "no-console": [
49 "error",
50 {
51 "allow": [
52 "debug",
53 "info",
54 "time",
55 "timeEnd",
56 "trace"
57 ]
58 }
59 ],
60 "no-trailing-spaces": "error",
61 "no-caller": "error",
62 "no-bitwise": "error",
63 "no-duplicate-imports": "error",
64 "no-eval": "error",
65 "@angular-eslint/directive-selector": [
66 "error",
67 { "type": "attribute", "prefix": "cd", "style": "camelCase" }
68 ],
69 "@angular-eslint/component-selector": [
70 "error",
71 { "type": "element", "prefix": "cd", "style": "kebab-case" }
72 ]
73 }
74 },
75 {
76 "files": [
77 "*.html"
78 ],
79 "extends": [
80 "plugin:@angular-eslint/template/recommended"
81 ],
82 "rules": {
83 "@angular-eslint/template/eqeqeq": "off"
84 }
85 }
86 ]
87}