neoclide / coc-stylelint

Stylelint language server extension for coc.nvim
44 stars 3 forks source link

--stdin-filename attribute is not used now #3

Open utrumo opened 5 years ago

utrumo commented 5 years ago

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

chemzqm commented 5 years ago

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

utrumo commented 5 years ago

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

cj commented 5 years ago

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

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

utrumo commented 5 years ago

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

chemzqm commented 5 years ago

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.

bytesoverflow commented 5 years ago

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

willxy commented 4 years ago

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

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

chuckmasucci commented 4 years ago

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

chemzqm commented 4 years ago

Need some rework.