INNER CODE UNIT · JavaScript

movedToCssicorn

sindresorhus/eslint-plugin-unicorn · index.js:10

const movedToCssicorn = ruleName => ({
	message: `Moved to \`eslint-cssicorn\` as \`cssicorn/${ruleName}\`.`,
	replacedBy: [
		{
			plugin: {
				name: 'eslint-cssicorn',
				url: 'https://github.com/sindresorhus/eslint-cssicorn',
			},
			// ESLint prefixes the rule name with the plugin name, so it must not include `cssicorn/`.
			rule: {
				name: ruleName,
				url: `https://github.com/sindresorhus/eslint-cssicorn/blob/main/docs/rules/${ruleName}.md`,
			},
		},
	],
});

const deprecatedRules = createDeprecatedRules({

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…