@atlaskit/eslint-plugin-design-system
Version:
The essential plugin for use with the Atlassian Design System.
26 lines • 777 B
JavaScript
import { createLintRule } from '../utils/create-lint-rule';
import { ImportDeclaration } from './linters/import-declaration';
const rule = createLintRule({
meta: {
name: 'use-spotlight-package',
type: 'problem',
fixable: 'code',
hasSuggestions: true,
docs: {
description: 'Discourage the use of @atlaskit/onboarding in favor of @atlaskit/spotlight.',
recommended: false,
severity: 'warn'
},
messages: {
['use-spotlight-package']: '@atlaskit/onboarding is deprecated in favor of @atlaskit/spotlight. Please migrate your spotlight experiences accordingly.'
}
},
create(context) {
return {
ImportDeclaration: node => ImportDeclaration.lint(node, {
context
})
};
}
});
export default rule;