UNPKG

@atlaskit/eslint-plugin-ui-styling-standard

Version:

The eslint plugin to enforce and educate on Atlassian's UI Styling Standard

56 lines (54 loc) • 3.35 kB
"use strict"; var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var atlaskitDesignSystemPlugin = _interopRequireWildcard(require("@atlaskit/eslint-plugin-design-system")); function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } /** * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen} * @codegen <<SignedSource::856ecaae15d6d75373055852fa8db5f0>> * @codegenCommand afm workspace @atlaskit/eslint-plugin-ui-styling-standard codegen */ var config = { plugins: { // NOTE: The reference to this plugin is inserted dynamically while creating the plugin in `index.codegen.tsx` '@atlaskit/design-system': atlaskitDesignSystemPlugin }, rules: { '@atlaskit/ui-styling-standard/convert-props-syntax': 'error', '@atlaskit/ui-styling-standard/enforce-style-prop': 'error', '@atlaskit/ui-styling-standard/local-cx-xcss': 'error', '@atlaskit/ui-styling-standard/no-array-arguments': 'error', '@atlaskit/ui-styling-standard/no-atlaskit-theme': 'error', '@atlaskit/ui-styling-standard/no-classname-prop': 'error', '@atlaskit/ui-styling-standard/no-container-queries': 'error', '@atlaskit/ui-styling-standard/no-dynamic-styles': 'error', '@atlaskit/ui-styling-standard/no-exported-styles': 'error', '@atlaskit/ui-styling-standard/no-global-styles': 'error', '@atlaskit/ui-styling-standard/no-important-styles': 'error', '@atlaskit/ui-styling-standard/no-imported-style-values': 'error', '@atlaskit/ui-styling-standard/no-nested-selectors': 'error', '@atlaskit/ui-styling-standard/no-styled': 'error', '@atlaskit/ui-styling-standard/no-unsafe-selectors': 'error', '@atlaskit/ui-styling-standard/no-unsafe-values': 'error', '@atlaskit/ui-styling-standard/no-unused-cssmap-properties': 'warn', '@atlaskit/ui-styling-standard/use-compiled': 'error', '@atlaskit/design-system/consistent-css-prop-usage': ['error', { excludeReactComponents: true, shouldAlwaysCheckXcss: true }], '@atlaskit/design-system/no-css-tagged-template-expression': 'error', '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error', '@atlaskit/design-system/no-styled-tagged-template-expression': 'error', '@atlaskit/design-system/no-empty-styled-expression': ['error', { importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components'] }], '@atlaskit/design-system/no-invalid-css-map': ['error', { allowedFunctionCalls: [['@atlaskit/tokens', 'token']] }], '@atlaskit/design-system/no-css-map-scoped': 'error' } }; var _default = exports.default = config;