aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/eslint.lua
Commit message (Collapse)AuthorAgeFilesLines
* refactor: rename "server_configurations" => "configs" #3330Justin M. Keyes2024-10-011-202/+0
| | | | | | | | | | | | | | Problem: The name `server_configurations` is extremely verbose and irritatingly formal and dogmatic. This overlong name is a constant nuisance when reading, writing, and coding. It's also not even correct: these configurations are just as much "client" configurations as they are "server" configurations. Solution: - Rename to a shorter name. - Leave placeholder files for any old URLs that link to the old location.
* fix(eslint): useFlatConfig revert to experimental (#3184)Saiful Islam2024-05-311-2/+4
|
* fix(eslint): useFlatConfig is not experimental anymore (#3183)Saiful Islam2024-05-301-4/+2
| | | | As [Support for the new ESLint flat config files has improved](https://github.com/microsoft/vscode-eslint?tab=readme-ov-file#version-305---pre-release)
* feat(eslint): add support for .cjs, .ts, .mts, .cts config files (#3083)Ray Guo2024-03-201-0/+8
|
* fix(eslint): support eslint mjs flat config file (#3059)Marces Engel2024-03-081-1/+5
| | | | | * fix: support eslint mjs flat config file * fix: styling
* chore(eslint): deprecate packageManager setting (#2839)Zephyr Lykos2023-09-301-1/+1
| | | https://github.com/microsoft/vscode-eslint/pull/1646
* feat: check eslint config file to enable flat config support (#2596)sxyazi2023-05-111-0/+5
|
* fix: use exepath on server command (#2595)Raphael2023-05-091-9/+2
|
* fix(eslint): get root patterns by given path (#2556)Raphael2023-04-121-3/+4
|
* fix(stylelint_lsp): update root directory pattern (#2447)Wuelner Martínez2023-02-121-14/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(stylelint_lsp): update root directory pattern Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> * feat(util): add `add_package_json_to_config_files_if_field_exists` function Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> * fix(stylelint_lsp): update update root directory pattern implementation Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> * fix(eslint): update update root directory pattern implementation Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> * fix(util): update `is_windows` detection Co-authored-by: Raphael <glephunter@gmail.com> * fix(util): update new function name Co-authored-by: Raphael <glephunter@gmail.com> * fix(server_configurations): update new function name implementation Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> * fix(stylelint_lsp): fix duplicate equals Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> --------- Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com> Co-authored-by: Raphael <glephunter@gmail.com>
* docs(eslint): fix on save example creates a buflocal autocmd (#2450)Jose Veiga2023-02-111-2/+10
| | | | | * docs(eslint): fix on save example creates a buflocal autocmd * docs(eslint): fix example spacing
* Add more ESLint options (#2254)Mark Skelton2022-11-241-0/+6
|
* fix(eslint): root dir not found if using package.json config (#2234)Fernando Gómez2022-11-101-9/+3
| | | | ESLint server would not find root directory when config is set in `package.json`
* fix(eslint): support flat config (#2229)Michael Chris Lopez2022-11-071-0/+1
| | | | Eslint have a new config scheme called flag config. Will become the only supported config in v9. https://eslint.org/blog/2022/08/new-config-system-part-2/#the-new-config-file%3A-eslint.config.js
* fix: check the package.json has eslintConfig field for eslint (#2208)Raphael2022-10-211-10/+31
| | | | | * fix: check the package.json has eslintConfig field for eslint * fix: remove duplicate windows check
* feat: eslint support astro file (#2190)Raphael2022-10-131-0/+1
|
* feat(eslint): enable for svelte filetype (#2149)Cameron Nemo2022-09-231-0/+1
| | | ESLint supports analyzing Svelte files.
* feat(eslint): support yarn2 PnP projects #1777William Boman2022-07-051-0/+7
| | | | | | | https://yarnpkg.com/features/pnp Yarn's PnP feature changes the way packages are installed. Instead of building on the `node_modules` resolution, it introduces a single `.pnp.*js` file in the project. This file is responsible for orchestrating and resolving dependencies. The eslint LSP server will assume that regular `node_modules` resolution applies when locating the `eslint` package - which will not work in Yarn PnP projects. To work around this, Yarn provides the ability to run Node programs in "PnP-compat" mode via `yarn exec` and `yarn node`. My understanding is that this simply hooks into the `require()` function to resolve modules via PnP instead Node's builtin module resolution.
* fix(eslint): fetch active buf client in fix_all (#1978)Guillaume Lagrange2022-07-021-11/+1
|
* docs(eslint): reformatting (#1956)Michael Härtl2022-06-141-5/+6
|
* fix(eslint): add missing root_pattern (#1869)Anton2022-04-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Even though this file name was removed from the official docs https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-file-formats Eslint still supports the older `.eslintrc` and it is used in tests https://github.com/eslint/eslint/blob/9ecd42f36462331a0d697e74323a4d24f0cf02fc/tests/fixtures/.eslintrc The loading is done by the legacy package `@eslint/eslintrc` that is still used by eslint itself ``` ~/Documents/repositories/eslint $ npm instll && rg '".eslintrc"' ./node_modules/@eslint/eslintrc/lib -B 6 ./node_modules/@eslint/eslintrc/lib/config-array-factory.js 66-const configFilenames = [ 67- ".eslintrc.js", 68- ".eslintrc.cjs", 69- ".eslintrc.yaml", 70- ".eslintrc.yml", 71- ".eslintrc.json", 72: ".eslintrc", ```
* docs(eslint): update `autocmd` exampleAngus Findlay2022-03-281-1/+1
|
* fix(npm): resolve the command correctly on windowskylo2522021-12-081-1/+7
|
* fix(eslint): openDoc function on Linux (#1529)Denis Mitana2021-12-021-0/+2
| | | | | Now the `open` command is used to execute eslint's `openDoc` function, but `xdg-open` is the default command in Linux used to open a file or URL in the user's preferred application.
* fix(eslint): default to location mode for workingDirectory (#1506)Michael Lingelbach2021-11-281-4/+2
| | | | | * location mode uses the workspace folder location or the file location (if no workspace folder is open) as the working directory
* chore: prefix all vim.notify message with [lspconfig] (#1496)William Boman2021-11-271-2/+2
|
* fix(eslint): match opts to sync request (#1492)Michael Lingelbach2021-11-261-3/+3
| | | Co-authored-by: Eloy Toro <eloytoro@gmail.com>
* chore: clean up importsMichael Lingelbach2021-11-251-1/+1
|
* feat: expose configsMichael Lingelbach2021-11-251-0/+166