lkytal / coffeelinter Goto Github PK
View Code? Open in Web Editor NEWCoffee Lint extension for VS Code
License: GNU Affero General Public License v3.0
Coffee Lint extension for VS Code
License: GNU Affero General Public License v3.0
You should link to https://coffeelint.github.io instead
I'm not sure if this functionality is deprecated or otherwise discouraged in coffeescript in general, however it seems to still be valid so...
As discussed in various places (such as https://stackoverflow.com/questions/5953670/extend-class-and-pass-all-constructor-arguments-to-super), this is accepted syntax, therefore should not be flagged as a lint error?
There seems to be no way to pass --literate
to coffeelint
for .litcoffee
files.
I have set coffeelint.defaultRules in my user settings. This works as expected until I run npm install
, now the settings I have in coffeelint.defaultRules are no long respected. After npm install I have the following files in my directory structure:
$ find . -name "coffeelint.json"
./node_modules/coffeelint/coffeelint.json
./node_modules/coffeelint-newline-after-function/coffeelint.json
I believe one of these files is taking precedent over my user settings. This is undesired, and according to the documentation, should not happen since I don't have a coffeelint.json in the root of my project.
I think this is best extension can work on vscode and support coffeescript. But we still missing most important path is intellisence. Without intellisence we will lost suggestion, autocomplete, quick reference function format from import file etc etc. It really help working faster. Can we have plan to upgrade it ??
vscode: 1.19.2
I upgraded to version 1.3.0 today and began to get an error
Error: Cannot find module 'coffeeLint'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/squall/.vscode/extensions/lkytal.coffeelinter-1.3.0/server/src/server.js:5:20)
at Object.<anonymous> (/home/squall/.vscode/extensions/lkytal.coffeelinter-1.3.0/server/src/server.js:91:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
[Error - 16:46:30] Connection to server got closed. Server will not be restarted.
I am unable to change any of the default linter settings in VSCode for my workspace.
There is no coffeelint.json file in my workspace. I don't see a ~/coffeelint.json file for my user. Other instructions have included using the node project's own package.json to change settings -- that doesn't work either. There is no json object within the extension settings to modify.
I want to turn off the Line exceeds maximum length
linter warning, but cannot figure out how to do this.
"coffeelinter.requireConfig": true
The VS Code extension for Prettier has this option.
When true, this extension should be disabled for packages without a coffeelint.json
file in the same directory as their package.json
file.
Meaning that when I reload vscode, with my workspace in the following structure:
/
api/
web/
coffeelint.json
sourcefile.coffee
then this exctension will apply the standard coffee linting rules to sourcefile.coffee
when I open it. This changes once /web/coffeelint.json
is saved, which needs to be done after every restart.
Workaround: ln -s web/coffeelint.json coffeelint.json
.
Thanks!
When using the VS Code extension in combination with a coffeelint.json that extends our own node module with linter rules.
coffeelint.json
{
"extends": "@ttab/coffeescript-style"
}
The result is that the default rules from the extension is applied.
For example, .vue
single file components. While coffee syntax highlighting works here, the linter ignores anything that isnt pure .coffee
, it seems.
When I add vue
to documentSelector
, it is being considered, but unfortunately also tries to parse the html + css contained in the file. So... I am not really sure how this works, but I guess you know how to support other file extensions in general.
Thanks for this extension
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.