tlint (Tighten linter for Laravel) extension for coc.nvim
MIT License
tlint (Tighten linter for Laravel) extension for coc.nvim.
CocInstall:
:CocInstall coc-tighten-lint
vim-plug:
Plug 'yaegassy/coc-tighten-lint', {'do': 'yarn install --frozen-lockfile'}
tlint lint
tlint format
tlint.json
configuration filetighten-lint.toolPath
settingvendor/bin/tlint
(project)~/.config/coc/extensions/coc-tighten-lint-data/tlint/vendor/bin/tlint
~/AppData/Local/coc/extensions/coc-tighten-lint-data/tlint/vendor/bin/tlint
:CocComannd tighten-lint.install
"onLanguage:php"
"onLanguage:blade"
tighten-lint.enable
: Enable coc-tighten-lint extension, default: true
tighten-lint.toolPath
: The path to the tlint (Absolute path), default: ""
tighten-lint.lintOnOpen
: Lint file on opening, default: true
tighten-lint.lintOnChange
: Lint file on change, default: true
tighten-lint.lintOnSave
: Lint file on save, default: true
tighten-lint.defaultSeverity
: Severity of violations, valid option "error", "warning", "info", "hint"
, default: "error"
tighten-lint.severities
: Source to severity mappings, default: {}
tighten-lint.only
: Policies to include, default: []
{
// ...snip
"tighten-lint.defaultSeverity": "warning",
"tighten-lint.only": [
"AlphabeticalImports",
"NoInlineVarDocs",
"ImportFacades"
],
"tighten-lint.severities": {
"NoInlineVarDocs": "info"
},
// ...snip
}
If you wish to use a configuration file you should place the tlint.json
file in the root of your project folder in the required format e.g.
example: tslint.json
{
"preset": "laravel",
"disabled": ["NoInlineVarDocs"],
"excluded": ["tests/"]
}
tighten-lint.install
: Install tlintRun: tighten-lint.autoFix
MIT
This extension is built with create-coc-extension