ember-learn / deprecation-app

Deprecation guides for ember.js, ember-data, and ember-cli
https://deprecations.emberjs.com/
22 stars 69 forks source link

Lint: disallow `diff` as code fence language in favour of syntax highlighting diffs #1387

Closed IgnaceMaes closed 4 months ago

IgnaceMaes commented 4 months ago

In the following PR, code block fences with diff as language were refactored to use the data-diff attributes of the syntax highlighter: https://github.com/ember-learn/deprecation-app/pull/1385

Linting should be added against diff as language to not allow any new usages.

Bad

\```diff
- some deletion
+ some addition
\```

Good

\```js {data-diff="-1,+2"}
some deletion
some addition
\```