You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add https://github.com/rwjblue/ember-cli-template-lint as a default addon for the app and addon blueprints using the recommended rules.
7
+
8
+
# Motivation
9
+
10
+
Linting and security in templates would help not only individual developers write better apps with better accessibility and security, but would also help teams to be on the same page and stick to a handful of standards.
11
+
12
+
# Detailed design
13
+
14
+
1. Move ember-cli-template-lint to the ember-cli org (better for contributing and getting work off one person, @rwjblue)
15
+
2. Add the dependency to the app blueprint here: https://github.com/ember-cli/ember-cli/blob/master/blueprints/app/files/package.json#L19
16
+
3. Also add it to the addon blueprint, like the eslint addon here: https://github.com/ember-cli/ember-cli/blob/master/blueprints/addon/index.js#L66
17
+
18
+
# How We Teach This
19
+
20
+
The same way that we teach ESLint being on by default.
21
+
22
+
# Drawbacks
23
+
24
+
- More chatter in the terminal.
25
+
- An additional dependency.
26
+
- Recommended rules might not be good for everyone.. but that same issue probably exists with ESLint.
27
+
28
+
# Alternatives
29
+
30
+
Do nothing and have people write sub par template code.
0 commit comments