Skip to content

NEW: @W-18495367@: Make a copy of eslint engine into code-analyzer-eslint8-engine and update its package.json #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025

Conversation

stephen-carter-at-sf
Copy link
Collaborator

This PR just makes a copy and updates the engine and plugin names, updates the package.json, and the build script. It doesn't modify the existing code-analyzer-eslint-engine (which will come in the next PR).

Comment on lines +2 to +3
"name": "@salesforce/code-analyzer-eslint8-engine",
"description": "Plugin package that adds 'eslint' (version 8) as an engine into Salesforce Code Analyzer",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changed and the directory changed.

"dependencies": {
"@babel/core": "^7.26.7",
"@babel/eslint-parser": "^7.27.0",
"@eslint/js": "8.57.1",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Locking in a few of these (removing the ^ as discussed in the spike doc).

import {ESLINT_ENGINE_CONFIG_DESCRIPTION, ESLint8EngineConfig, validateAndNormalizeConfig} from "./config";
import {ESLint8Engine} from "./engine";

export class ESLint8EnginePlugin extends EnginePluginV1 {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed the plugin

import {getMessage} from "./messages";
import {RULE_MAPPINGS} from "./rule-mappings";

export class ESLint8Engine extends Engine {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed the engine class

import {RULE_MAPPINGS} from "./rule-mappings";

export class ESLint8Engine extends Engine {
static readonly NAME = "eslint";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping the engine name as 'eslint' for now.

@stephen-carter-at-sf stephen-carter-at-sf merged commit 0c54694 into dev May 12, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants