You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created this repository to define the standard here and keep discussion away from both Luacheck and Autocomplete-Lua repositories.
We can use the Code space to push examples and such and the Project space to detail specific implementation details.
What I would like to achieve with this is to create a single file format that could replace .luacheckrc and .luacompleterc. This doesn't mean that this file would become the main file of both Luacheck and Autocomplete-Lua, it can have less options that those provided by the .luacheckrc and .luacompleterc files. This file tries to offer the most minimal API for most project in a format that would fit both Luacheck and Autocomplete-Lua.
So let me begin detailing what I consider would be a good starting point:
{"lua": "luajit-2.0",//Base lua version (used by both)"standard": ["busted","love"],//This is taken from Luacheck (Autocomplete can ignore it)"path": "./?.lua,./?/init.lua",//This is taken from Autocomplete (Luacheck can ignore it)"cwd": "current/working/directory",//This is the important part!"globals": {"my_global": {//TYPE DEFINITION//Luacheck"read-only": false,"other-fields": true,//Autocomplete"type": "table",//Both"fields": {"my_field": {"read-only": true,"type": "function","args": [["name","displayName"],"other","..."],//No way to define argTypes, could be expanded later"return": "Something"//Anything that isn't a standard type is a namedType"docs": "Documentation in markdown","link": "link"}}}},//Named types, ignored by Luacheck"types": {"Something": {//TYPE DEFINITION}}}
As you can see there is no much differece to what the current files look like!, We are just merging them
The text was updated successfully, but these errors were encountered:
@dapetcu21 @mpeterv
I have created this repository to define the standard here and keep discussion away from both Luacheck and Autocomplete-Lua repositories.
We can use the Code space to push examples and such and the Project space to detail specific implementation details.
What I would like to achieve with this is to create a single file format that could replace
.luacheckrc
and.luacompleterc
. This doesn't mean that this file would become the main file of both Luacheck and Autocomplete-Lua, it can have less options that those provided by the.luacheckrc
and.luacompleterc
files. This file tries to offer the most minimal API for most project in a format that would fit both Luacheck and Autocomplete-Lua.So let me begin detailing what I consider would be a good starting point:
As you can see there is no much differece to what the current files look like!, We are just merging them
The text was updated successfully, but these errors were encountered: