Commit a3b4437
committed
lint: make js code block standalone-parseable + fix test property order
- docs/rules/template-require-iframe-title.md: wrap the config example
in `module.exports = {...}` so eslint can parse it as a standalone
module (bare object literals are parsed as block statements, which
trips 'missing semicolon' on the inner object).
- tests/lib/rules/template-require-iframe-title.js: move `output`
before `options` on the allowWhitespaceOnlyTitle test case to match
eslint-plugin/test-case-property-ordering's [code, output, options,
errors] sequence.
- Prettier reflow of the config example (single-line rule array)
applied via `prettier --write`.1 parent 1e7f1f0 commit a3b4437
2 files changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 55 | + | |
59 | 56 | | |
60 | | - | |
| 57 | + | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | 155 | | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments