-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.template-lintrc.js
115 lines (112 loc) · 2.87 KB
/
.template-lintrc.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
'use strict';
module.exports = {
plugins: ['ember-template-lint-plugin-prettier'],
extends: ['recommended', 'ember-template-lint-plugin-prettier:recommended'],
ignore: [
'apps/*/node_modules',
'apps/*/dist',
'apps/*/dist-*',
'apps/*/tmp',
'apps/*/DEBUG',
'apps/*/vendor',
'apps/*/blueprints',
'apps/*/public',
'engines/*/node_modules',
'engines/*/dist',
'engines/*/dist-*',
'engines/*/tmp',
'engines/*/DEBUG',
'engines/*/vendor',
'engines/*/blueprints',
'engines/*/public',
'addons/*/node_modules',
'addons/*/dist',
'addons/*/dist-*',
'addons/*/tmp',
'addons/*/DEBUG',
'addons/*/vendor',
'addons/*/blueprints',
'addons/*/public',
'.github',
],
rules: {
'no-bare-strings': [
'×',
'/',
'#',
'(',
')',
'!',
'+',
'-',
'%',
':',
',',
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'+1',
'-1',
'<',
'>',
'EXCEL',
'PDF',
'x',
'.',
'-',
'=',
'×',
],
'no-curly-component-invocation': [
'error',
{ allow: ['liquid-outlet'], noImplicitThis: true, requireDash: true },
],
'no-implicit-this': ['error', { allow: ['liquid-outlet'] }],
'link-href-attributes': 'error',
'no-invalid-interactive': 'error',
'no-action': 'error',
'simple-unless': 'error',
'no-positive-tabindex': 'error',
'no-negated-condition': 'error',
'no-unused-block-params': 'error',
'no-inline-styles': ['error', { allowDynamicStyles: true }],
'require-valid-alt-text': 'error',
'no-nested-interactive': 'error',
'no-quoteless-attributes': 'error',
'require-context-role': 'error',
'no-link-to-tagname': 'error',
'no-element-event-actions': 'error',
'no-this-in-template-only-components': false, // false positives on route templates
'no-unnecessary-concat': 'error',
'require-presentational-children': 'error',
'no-empty-headings': 'error',
'require-valid-named-block-naming-format': 'kebab-case',
'no-down-event-binding': 'error',
'no-autofocus-attribute': 'error',
'no-whitespace-for-layout': 'error',
'no-duplicate-attributes': 'error',
'style-concatenation': 'error',
'require-iframe-title': 'error',
'no-triple-curlies': 'error',
'table-groups': {
'allowed-thead-components': ['sortable-thead'],
},
'no-outlet-outside-routes': 'error',
'no-invalid-link-text': 'error',
'no-link-to-positional-params': 'error',
'require-input-label': 'error',
'no-yield-only': 'error',
'no-forbidden-elements': 'error',
'no-duplicate-id': 'error',
'no-passed-in-event-handlers': 'error',
'no-potential-path-strings': 'error',
'no-unknown-arguments-for-builtin-components': 'error',
},
};