$ npm install @hint/hint-manifest-file-extension
manifest-file-extension)manifest-file-extension warns against using non-standard file
extensions for the web app manifest file.
While the .webmanifest file extension is not
enforced by the specification, nor is it required by browsers, using
it makes it:
The hint checks if the recommended .webmanifest
file extension is used for the web app manifest file.
<link rel="manifest" href="site.json">
<link rel="manifest" href="site.manifest">
<link rel="manifest" href="site.webmanifest">
This package is installed automatically by webhint:
npm install hint --save-dev
To use it, activate it via the .hintrc configuration file:
{
"connector": {...},
"formatters": [...],
"hints": {
"manifest-file-extension": "error",
...
},
"parsers": [...],
...
}
Note: The recommended way of running webhint is as a devDependency of
your project.
© 2010 - cnpmjs.org x YWFE | Home | YWFE