@atlaskit/eslint-plugin-design-system
Version:
The essential plugin for use with the Atlassian Design System.
27 lines • 953 B
JavaScript
import _defineProperty from "@babel/runtime/helpers/defineProperty";
import { createLintRule } from '../utils/create-lint-rule';
import { ImportDeclaration as _ImportDeclaration } from './linters/import-declaration';
var 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: _defineProperty({}, 'use-spotlight-package', '@atlaskit/onboarding is deprecated in favor of @atlaskit/spotlight. Please migrate your spotlight experiences accordingly.')
},
create: function create(context) {
return {
ImportDeclaration: function ImportDeclaration(node) {
return _ImportDeclaration.lint(node, {
context: context
});
}
};
}
});
export default rule;