-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
…lint8-engine and update its package.json
"name": "@salesforce/code-analyzer-eslint8-engine", | ||
"description": "Plugin package that adds 'eslint' (version 8) as an engine into Salesforce Code Analyzer", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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.
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).