coc-stylelint icon indicating copy to clipboard operation
coc-stylelint copied to clipboard

--stdin-filename attribute is not used now

Open utrumo opened this issue 5 years ago • 9 comments

I have got an error: "[coc.nvim] stylelint: Undefined rule function-calc-no-invalid" my eslint config like in this post

utrumo avatar Aug 20 '19 06:08 utrumo

Can't help, don't know what's problem with your stylelint.

chemzqm avatar Aug 20 '19 07:08 chemzqm

This is a link on repository with project example with configurated stylelint for lit-element and .vimrc config for last version of neovim. Stylelint config are working (you can check it: 'npm run lint:css' or 'npx stylelint ./index.js').

In neovim i have got an error: "[coc.nvim] stylelint: Undefined rule function-calc-no-invalid"

In previos version of coc-styleint this extension works well, after i adds "onLanguage:javascript" to package.json and "javascript" to selector array in index.ts

utrumo avatar Aug 20 '19 07:08 utrumo

@chemzqm It seems to be ignoring my stylelint.config.js too:

Here is my CocInfo https://gist.github.com/cj/5de098e26485989b7bd15668d6457d9a

cj avatar Aug 21 '19 23:08 cj

Please adds --stdin-filename to stylelint call for solve problem with stylelint and stylelint-processor-styled-components it use this attribute for ignoreFiles globs. https://github.com/neoclide/coc.nvim/issues/1200 https://github.com/iamcco/coc-diagnostic/issues/8#issuecomment-534205961 npm scripts for demonstration of problem

utrumo avatar Sep 24 '19 08:09 utrumo

Can't help, it uses https://github.com/shinnn/stylelint-vscode/blob/master/index.js, but I don't know how to make -stdin-filename work with it.

chemzqm avatar Sep 24 '19 10:09 chemzqm

Im having the same issue - is there anything i need to do to fix the issue?

tobydeh avatar Oct 22 '19 12:10 tobydeh

Just installed coc; I'm seeing the same error.

[coc.nvim] stylelint: Undefined rule function-calc-no-invalid

willxy avatar Feb 19 '20 21:02 willxy

I was able to fix the error by removing this extension and installing coc-stylelintplus - https://github.com/bmatcuk/coc-stylelintplus

chuckmasucci avatar Apr 28 '20 18:04 chuckmasucci

Need some rework.

chemzqm avatar Apr 29 '20 08:04 chemzqm