Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@stylistic/eslint-plugin-migrate
Advanced tools
ESLint plugin to migrate built-in rules to stylistic rules
An ESLint plugin for migrating built-in stylistic rules to the @stylistic
namespace.
npm i -D @stylistic/eslint-plugin-migrate
Extend the plugin:@stylistic/migrate/recommended
preset in your ESLint configuration. It will check the .eslintrc.{js|json}
file and the eslint-config-*/index.js
files in your workspace automatically.
// .eslintrc.js
module.exports = {
extends: [
'plugin:@stylistic/migrate/recommended'
],
};
You can install the plugin manually:
// .eslintrc.js
module.exports = {
plugins: [
'@stylistic/migrate'
],
}
And opt-in to your eslint configure file by adding /* eslint @stylistic/migrate/rules: "error" */
to the top of your file:
/* eslint @stylistic/migrate/rules: "error" */
module.exports = {
rules: {
indent: ['error', 2], // Error: Use @stylistic/indent instead
}
}
FAQs
ESLint plugin to migrate built-in rules to stylistic rules
The npm package @stylistic/eslint-plugin-migrate receives a total of 7,225 weekly downloads. As such, @stylistic/eslint-plugin-migrate popularity was classified as popular.
We found that @stylistic/eslint-plugin-migrate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.