Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
ember-template-lint-plugin-prettier
Advanced tools
It runs Prettier as a rule. Then it reports differences as individual ember-template-lint issues.
yarn add -D prettier ember-template-lint-plugin-prettier
The project's Prettier version will then be used by the prettier rule.
Note that prettier
and (of course) ember-template-lint
are required as peerDependencies of this package.
Also, this plugin don't provide a recommended set of rules (that you often provide in the extends
config key). You'll have to enable them manually (see Usage).
module.exports = {
extends: 'recommended',
plugins: ['ember-template-lint-plugin-prettier'],
rules: {
prettier: true, // turn this plugin's rule on
"eol-last": false, // or `"eol-last": "never"`
"self-closing-void-elements": false // idem
},
};
The two ember-template-lint rules mentioned above are conflicting with Prettier formatting if you turn them on. More details there:
eol-last
: a PR is opened on Prettier to append newlines to handelbars files. Prettier does that for every other language.self-closing-void-elements
rule could be removed from the set of recommended rules according to this issue.I have tried the plugin on ember-observer: to lint / format / lint the templates. I don't have other issue. But this list could probably be appeneded if we were formatting against an other code base!
This plugin has been inspired by the prettier plugin for Eslint.
v1.0.0-beta.0 (2019-06-25)
FAQs
A prettier plugin for ember-template-lint
The npm package ember-template-lint-plugin-prettier receives a total of 9,957 weekly downloads. As such, ember-template-lint-plugin-prettier popularity was classified as popular.
We found that ember-template-lint-plugin-prettier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.