;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\207" [require lsp-protocol lsp-mode] 2) (defconst lsp-eslint/status-ok 1) (defconst lsp-eslint/status-warn 2) (defconst lsp-eslint/status-error 3) (byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\316\317\320\321\322\323& \210\310\324\312\313\325DD\326\320\327\322\330&\210\310\331\312\313\332DD\333\320\334\322\335&\210\310\336\312\313\337DD\340\320\327\322\341&\210\310\342\312\313\343DD\344\320\345\322\346&\210\310\347\312\313\350DD\351\320\352%\210\310\353\312\313\354DD\355\320\356%\210\310\357\312\313\360DD\361\320\362\322\363&\210\310\364\312\313\365DD\366\320\327\322\367&\210\310\370\312\313\371DD\372\320\373\322\374&\210\310\375\312\313\376DD\377\320\327\322\201@&\210\310\201A\312\313\201BDD\201C\320\201D\322\201E&\210\310\201F\312\313\201GDD\201H\320\201D\322\201I&\210\310\201J\312\313\201KDD\201L\320\327\322\201M&\210\310\201N\312\313\201ODD\201L\320\327\322\201P&\210\310\201Q\312\313\201RDD\201S\320\356\322\201T&\210\310\201U\312\313\201VDD\201W\320\201X\322\201Y&\210\310\201Z\312\313\201[DD\201C\320\352\322\201\\&\210\310\201]\312\313\201^DD\201C\320\352%\210\310\201_\312\313\201`DD\201a\320\327\322\201b&\207" [custom-declare-group lsp-eslint nil "ESlint language server group." :group lsp-mode :link (url-link "https://github.com/Microsoft/vscode-eslint") custom-declare-variable lsp-eslint-server-command funcall function #[0 "\300\207" [("node" "~/server/out/eslintServer.js" "--stdio")] 1] "Command to start eslint server." :risky t :type (repeat string) :package-version (lsp-mode . "6.3") lsp-eslint-enable #[0 "\300\207" [t] 1] "Controls whether eslint is enabled for JavaScript files or not." boolean (lsp-mode . "6.3") lsp-eslint-package-manager #[0 "\300\207" [#1="npm"] 1 #1#] "The package manager you use to install node modules." (choice (const :tag "npm" "npm") (const :tag "yarn" "yarn") (const :tag "pnpm" "pnpm") (string :tag "other")) (lsp-mode . "6.3") lsp-eslint-format #[0 "\300\207" [t] 1] "Whether to perform format." (lsp-mode . "6.3") lsp-eslint-node-path #[0 "\300\207" [nil] 1] "A path added to NODE_PATH when resolving the eslint module." (repeat string) (lsp-mode . "6.3") lsp-eslint-options #[0 "\300\207" [nil] 1] "The eslint options object to provide args normally passed to\n eslint when executed from a command line (see\n http://eslint.org/docs/developer-guide/nodejs-api#cliengine)." alist lsp-eslint-trace-server #[0 "\300\207" [#2="off"] 1 #2#] "Traces the communication between VSCode and the eslint linter service." string lsp-eslint-run #[0 "\300\207" [#3="onType"] 1 #3#] "Run the linter on save (onSave) or on type (onType)" (choice (const :tag "onSave" "onSave") (const :tag "onType" "onType")) (lsp-mode . "6.3") lsp-eslint-auto-fix-on-save #[0 "\300\207" [nil] 1] "Turns auto fix on save on or off." (lsp-mode . "6.3") lsp-eslint-fix-all-problem-type #[0 "\300\207" [#4="all"] 1 #4#] "Determines which problems are fixed when running the\nsource.fixAll code action." (choice (const "all") (const "problems") string) (lsp-mode . "7.0.1") lsp-eslint-quiet #[0 "\300\207" [nil] 1] "Turns on quiet mode, which ignores warnings." (lsp-mode . "6.3") lsp-eslint-working-directories #[0 "\300\207" [[]] 1] "" lsp-string-vector (lsp-mode . "6.3") lsp-eslint-validate #[0 "\300\207" [["javascript" "javascriptreact"]] 1] "An array of language ids which should be validated by ESLint" (lsp-mode . "6.3") lsp-eslint-provide-lint-task #[0 "\300\207" [nil] 1] "Controls whether a task for linting the whole workspace will be available." (lsp-mode . "6.3") lsp-eslint-lint-task-enable #[0 "\300\207" [nil] 1] (lsp-mode . "6.3") lsp-eslint-lint-task-options #[0 "\300\207" [#5="."] 1 #5#] "Command line options applied when running the task for linting the whole workspace (see https://eslint.org/docs/user-guide/command-line-interface)." (lsp-mode . "6.3") lsp-eslint-runtime #[0 "\300\207" [nil] 1] "The location of the node binary to run ESLint under." (repeat string) (lsp-mode . "6.3") lsp-eslint-code-action-disable-rule-comment #[0 "\300\207" [((enable . t) (location . "separateLine"))] 1] (lsp-mode . "6.3") lsp-eslint-code-action-show-documentation #[0 "\300\207" [((enable . t))] 1] lsp-eslint-experimental-incremental-sync #[0 "\300\207" [t] 1] "Controls whether the new incremental text document synchronization should be used." (lsp-mode . "6.3")] 10) (defalias 'lsp--find-eslint #[0 "\302\303 \"\211\205\"\304\305\306 \307=\203\310\202\311$\312!\205 \211\262\262\206(\311\207" [default-directory system-type lsp-find-session-folder lsp-session f-join "node_modules" ".bin" windows-nt "eslint.cmd" "eslint" f-exists\?] 7]) #@38 Create default eslint configuration. (defalias 'lsp-eslint-create-default-configuration #[0 "\302 \303!>\204\304\305\302D\"\210\211\306H\262\204\307\310!\210\311\312\302 \303!>\2040\304\305\302D\"\210\211\306H\262\"\211\204>\307\313!\207\211\314\315\316\317$\320\321\322\323 \"!)\207" [cl-struct-lsp-session-tags default-directory lsp-session type-of signal wrong-type-argument 1 user-error "There are no workspace folders" -filter #[257 "\300\301\302\"\303\"\207" [-none\? make-closure #[257 "\301\302\300\"!\207" [V0 f-exists\? f-join] 5 "\n\n(fn FILE)"] (".eslintrc.js" ".eslintrc.yaml" ".eslintrc.yml" ".eslintrc" ".eslintrc.json")] 5 "\n\n(fn DIR)"] "All workspace folders contain eslint configuration" completing-read "Select project folder: " nil t async-shell-command format "%s --init" lsp--find-eslint] 7 (#$ . 4812) nil]) #@22 (fn INPUT0 INPUT1) (defalias 'lsp-eslint-status-handler #[514 "\303\304\"\305!>\204\306\307\310D\"\210\211\311\312\313\314 =\203%\315\2021\n=\2030\316\2021\317#I\207" [cl-struct-lsp--workspace-tags lsp-eslint/status-error lsp-eslint/status-warn gethash "state" type-of signal wrong-type-argument lsp--workspace 18 propertize "ESLint" face error warn success] 12 (#$ . 5669)]) #@22 (fn INPUT0 INPUT1) (defalias 'lsp-eslint--configuration #[514 "\300\301\302\"\303\304\305\306\"\"\207" [nil gethash "items" apply vector seq-map #[257 "\306\307\"\310!\211\205q\311!\211\205o\312\313 \"\211\205mrq\210\314\315\316\317\320\321\322 F\323\324\n!\325 \2069\326\327\330\"\211\262\331\f\206?\332\333 \334\335\336\324)!\337\340\341!\342\343!F\344\345*\206`\320\321\346\347F\350+\206i\320\321DF\257)\262\262\207" [lsp-eslint-package-manager lsp-eslint-fix-all-problem-type lsp-eslint-format lsp-eslint-options lsp-eslint-run lsp-eslint-node-path gethash "scopeUri" lsp--uri-to-path find-buffer-visiting lsp-find-session-folder lsp-session :validate "probe" :packageManager :codeActionOnSave :enable t :mode :format lsp-json-bool :options make-hash-table :test equal :run "onType" :nodePath :onIgnoredFiles "off" :quiet :workspaceFolder :uri lsp--path-to-uri :name f-filename :codeAction :disableRuleComment :location "separateLine" :showDocumentation lsp-eslint-quiet lsp-eslint-code-action-disable-rule-comment lsp-eslint-code-action-show-documentation] 31 "\n\n(fn INPUT0)"]] 9 (#$ . 6069)]) #@41 Open documentation. (fn INPUT0 INPUT1) (defalias 'lsp-eslint--open-doc #[514 "\300\301\302\"\303!\207" [nil gethash "url" browse-url] 6 (#$ . 7204)]) #@44 Apply all autofixes in the current buffer. (defalias 'lsp-eslint-apply-all-fixes #[0 "\300\301\302\303 !\"\207" [lsp-send-execute-command "eslint.applyAllFixes" vector lsp--versioned-text-document-identifier] 4 (#$ . 7363) nil]) #@61 Perform the source.fixAll.eslint code action, if available. (defalias 'lsp-eslint-fix-all #[0 "\3001 \301\302!0\207\210\303\304!\205\305\306!\207" [(lsp-no-code-actions) lsp-execute-code-action-by-kind "source.fixAll.eslint" called-interactively-p any lsp--info "source.fixAll.eslint action not available"] 2 (#$ . 7598) nil]) (byte-code "\300\301\302\303\304\305\"\306\307\310\311\312\313\314\313\315\313\316\317\320\321\"\322\323\324#\210\211\262\325\317\320\321\"\322\326\327#\210\322\330\331#\210\211\262\332\333\334\335&!\210\336\337!\207" [lsp-register-client make-lsp-client :new-connection lsp-stdio-connection #[0 "\207" [lsp-eslint-server-command] 1] #[0 "A@\205 \301A@!\207" [lsp-eslint-server-command file-exists-p] 2] :activation-fn #[513 "\301\302\303\304#)\266\203\206\305\306\307\310\311$\207" [inhibit-changing-match-data "[^z-a]+\\.\\(?:html\\|jsx?\\|tsx?\\|vue\\)" nil t string-match derived-mode-p js-mode js2-mode typescript-mode html-mode] 9 "\n\n(fn FILENAME &optional _)"] :priority -1 :completion-in-comments\? t :add-on\? :multi-root :notification-handlers make-hash-table :test equal puthash "eslint/status" lsp-eslint-status-handler :request-handlers "workspace/configuration" lsp-eslint--configuration "eslint/openDoc" lsp-eslint--open-doc :server-id eslint :initialized-fn #[257 "\211\301\302\303\304\305\306\307\310\311\312\313\314\315\"\313\314\316\"\313\314\317\"#\"&!)\207" [lsp--cur-workspace lsp--server-register-capability lsp-make-registration :id "random-id" :method "workspace/didChangeWatchedFiles" :register-options\? lsp-make-did-change-watched-files-registration-options :watchers vector lsp-make-file-system-watcher :glob-pattern "**/.eslintr{c.js,c.yaml,c.yml,c,c.json}" "**/.eslintignore" "**/package.json"] 16 "\n\n(fn WORKSPACE)"] provide lsp-eslint] 22)