Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
coc-stylelintplus
Advanced tools
stylelint extension for coc.nvim supporting additional features
coc-stylelintplus is an extension for coc.nvim that supports additional features that coc-stylelint is missing. For example:
stylelint --fix
on the file.Formatting (ie, stylelint --fix
) can be configured to run automatically on
save, in response to format requests, or run manually using a command.
coc-stylelintplus uses stylelint-lsp as the language server.
With coc.nvim installed, run the following:
:CocInstall coc-stylelintplus
Alternatively, you can add the following to your init.vim and coc-stylelintplus will be automatically installed the next time you start nvim:
let g:coc_global_extensions = ['coc-stylelintplus']
If you are using coc-stylelintplus with coc-css, you'll want to disable coc-css's validation in your coc-settings.json file, otherwise you'll get duplicated or conflicting errors:
{
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"wxss.validate": false
}
coc-css still provides some useful functionality with validation disabled, so it makes sense to use it together with coc-stylelintplus.
false
) - automatically apply
fixes in response to format requests.false
) - automatically apply fixes
on save.null
) - stylelint config to use.null
) - path to stylelint config
file.null
) - stylelint config
overrides.false
) - Run stylelint on
javascript/typescript files.true
) - if false, disable linting and
auto-formatting.false
) - lint on save.true
) - lint after changes.If neither config nor configFile are specified, stylelint will attempt to automatically find a config file based on the location of the file you are editing.
If both validateOnSave and validateOnType are set to false
, no
linting will occur but auto-fixes can still be applied if you have it enabled.
validateOnSave is automatically enabled if you enable autoFixOnSave
because revalidation must occur after fixes are applied. You may wish to
explicitly turn on validateOnSave if you are using another editor extension
that will make changes to the file on save, otherwise, diagnostic messages from
stylelint may be out-of-date after a save (ie, may point to the wrong line or
may have been fixed by the automatic changes on save, etc).
Default filetypes handled by coc-stylelintplus are css, less, postcss, sass,
scss, sugarss, vue, and wxss. This list can be overridden with the filetypes
option. If you enable the cssInJs
option, javascript, javascriptreact,
typescript, and typescriptreact will be added to the list.
FAQs
stylelint extension for coc.nvim supporting additional features
The npm package coc-stylelintplus receives a total of 21 weekly downloads. As such, coc-stylelintplus popularity was classified as not popular.
We found that coc-stylelintplus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.