Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
utrumo opened this issue Aug 20, 2019 · 9 comments
Open

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

utrumo opened this issue Aug 20, 2019 · 9 comments

Comments

@utrumo
Copy link

utrumo commented Aug 20, 2019

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

@chemzqm
Copy link
Member

chemzqm commented Aug 20, 2019

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

@utrumo
Copy link
Author

utrumo commented Aug 20, 2019

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
Copy link

cj commented Aug 21, 2019

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

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

@utrumo
Copy link
Author

utrumo commented Sep 24, 2019

Please adds --stdin-filename to stylelint call for solve problem with stylelint and stylelint-processor-styled-components it use this attribute for ignoreFiles globs.
neoclide/coc.nvim#1200
iamcco/coc-diagnostic#8 (comment)
npm scripts for demonstration of problem

@utrumo utrumo changed the title Not working after update to 1.1.0 --stdin-filename attribute is not used now Sep 24, 2019
@chemzqm
Copy link
Member

chemzqm commented Sep 24, 2019

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.

@tobydeh
Copy link

tobydeh commented Oct 22, 2019

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

@willxy
Copy link

willxy commented Feb 19, 2020

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

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

@chuckmasucci
Copy link

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

@chemzqm
Copy link
Member

chemzqm commented Apr 29, 2020

Need some rework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants