neoclide / Coc Eslint
Eslint extension for coc.nvim
Stars: ✭ 219
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Coc Eslint
Eslint Config Wesbos
No-Sweat™ Eslint and Prettier Setup - with or without VS Code
Stars: ✭ 2,293 (+947.03%)
Mutual labels: eslint
100 Days Of Code Frontend
Curriculum for learning front-end development during #100DaysOfCode.
Stars: ✭ 2,419 (+1004.57%)
Mutual labels: eslint
React Molin
react-molin是一个全新的基于webpack3、react15、react-router4、antd-mobile的前端架构实现方案(h5)
Stars: ✭ 184 (-15.98%)
Mutual labels: eslint
Wanna
💡✔ Wanna is an implementation of a 21st-century to-do list app.
Stars: ✭ 189 (-13.7%)
Mutual labels: eslint
Eslint Plugin Import Helpers
ESLint plugin to help enforce a configurable order for import statements
Stars: ✭ 198 (-9.59%)
Mutual labels: eslint
Awesome Eslint
A list of awesome ESLint plugins, configs, etc.
Stars: ✭ 2,759 (+1159.82%)
Mutual labels: eslint
Eslint Plugin Jsx A11y
Static AST checker for a11y rules on JSX elements.
Stars: ✭ 2,609 (+1091.32%)
Mutual labels: eslint
Express React Boilerplate
Express, MySQL, React/Redux, NodeJs Application Boilerplate
Stars: ✭ 179 (-18.26%)
Mutual labels: eslint
Eslint Config Standard
ESLint Config for JavaScript Standard Style
Stars: ✭ 2,229 (+917.81%)
Mutual labels: eslint
Sharec
📦 Store your configs in one place and share between projects without any pain
Stars: ✭ 198 (-9.59%)
Mutual labels: eslint
Eslint Plugin Eslint Comments
Additional ESLint rules for directive comments of ESLint.
Stars: ✭ 221 (+0.91%)
Mutual labels: eslint
Front End Guide
📚 Study guide and introduction to the modern front end stack.
Stars: ✭ 14,073 (+6326.03%)
Mutual labels: eslint
coc-eslint
Eslint language server extension for coc.nvim.
Forked from vscode-eslint.
Note invoke eslint.showOutputChannel
to invoke command of current eslint statusline.
Supporting
If you like my extension, consider supporting me on Patreon or PayPal:
Install
In your vim/neovim run the following command:
:CocInstall coc-eslint
Features
- Lint
javascript
files using eslint. - Provide
codeActions
for fixing lint issues. - Provide eslint commands:
-
eslint.executeAutofix
Fix all auto-fixable Problems. -
eslint.createConfig
Create ESLint configuration. -
eslint.showOutputChannel
Show Output Channel. -
eslint.resetLibraryExecution
Reset Library Execution Decisions. -
eslint.manageLibraryExecution
Manage Library Execution. -
eslint.lintProject
Run eslint for current project, add errors to quickfix list.
-
Configuration options
Notice these configuration settings allow you to configure the behaviour of the coc-eslint extension. They should be set in your coc-settings.json
file, which can be opened with the :CocConfig
command.
-
eslint.enable
: Controls whether eslint is enabled or not. default:true
-
eslint.execArgv
: Arguments of node used on language server start. default:[]
-
eslint.packageManager
: The package manager you use to install node modules. default:"npm"
Valid options: ["npm","yarn","pnpm"] -
eslint.alwaysShowStatus
: Always show the ESlint status bar item. default:false
-
eslint.nodeEnv
: The value ofNODE_ENV
to use when running eslint tasks. default:null
-
eslint.nodePath
: A path added toNODE_PATH
when resolving the eslint module. default:null
-
eslint.options
: The eslint options object to provide args normally passed to eslint when executed from a command line (see http://eslint.org/docs/developer-guide/nodejs-api#cliengine). default:{}
-
eslint.trace.server
: Traces the communication between VSCode and the eslint linter service. default:"off"
-
eslint.run
: Run the linter on save (onSave) or on type (onType) default:"onType"
Valid options: ["onSave","onType"] -
eslint.autoFixOnSave
: Turns auto fix on save on or off. default:false
-
eslint.quiet
: Turns on quiet mode, which ignores warnings. default:false
-
eslint.onIgnoredFiles
: Whether ESLint should issue a warning on ignored files. default:"off"
Valid options: ["warn","off"] -
eslint.workingDirectories
: Working directories for files in different folders. -
eslint.validate
: An array of language ids which should be validated by ESLint. If not installed ESLint will show an error. -
eslint.probe
: An array of language ids for which the extension should probe if support is installed. default:["javascript","javascriptreact","typescript","typescriptreact","html","vue","markdown"]
-
eslint.runtime
: The location of the node binary to run ESLint under. default:null
-
eslint.debug
: Enables ESLint debug mode (same as --debug on the command line) default:false
-
eslint.codeAction.disableRuleComment
: default:{"enable":true,"location":"separateLine"}
-
eslint.codeAction.showDocumentation
: default:{"enable":true}
-
eslint.codeActionsOnSave.mode
: Specifies the code action mode. Possible values are 'all' and 'problems'. default:"all"
Valid options: ["all","problems"] -
eslint.format.enable
: Enables ESLint as a formatter. default:false
-
eslint.lintTask.options
: Command line options applied when running the task for linting the whole workspace (see https://eslint.org/docs/user-guide/command-line-interface). default:["."]
Auto-fixing
The extension supports automatic fixing of warnings to the extent that it is supported by eslint. For warnings which support an auto-fix. You can apply the quick fix by either:
- Set
eslint.autoFixOnSave
totrue
and save your file (recommended). - Trigger
<Plug>(coc-codeaction)
with mapped keys, and select a fix action in the input list. - Run command
:CocCommand eslint.executeAutofix
. - Trigger command
eslint.executeAutofix
from:CocCommand
.
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].