@compiled/eslint-plugin
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -7,2 +7,3 @@ export declare const recommended: { | ||
'@compiled/no-css-tagged-template-expression': string; | ||
'@compiled/no-empty-styled-expression': string; | ||
'@compiled/no-exported-css': string; | ||
@@ -15,4 +16,3 @@ '@compiled/no-exported-keyframes': string; | ||
'@compiled/no-suppress-xcss': string; | ||
'@compiled/no-empty-styled-expression': string; | ||
}; | ||
}; |
@@ -10,2 +10,3 @@ "use strict"; | ||
'@compiled/no-css-tagged-template-expression': 'error', | ||
'@compiled/no-empty-styled-expression': 'error', | ||
'@compiled/no-exported-css': 'error', | ||
@@ -18,5 +19,4 @@ '@compiled/no-exported-keyframes': 'error', | ||
'@compiled/no-suppress-xcss': 'error', | ||
'@compiled/no-empty-styled-expression': 'error', | ||
}, | ||
}; | ||
//# sourceMappingURL=recommended.js.map |
@@ -0,19 +1,79 @@ | ||
export declare const name = "/* NAME */"; | ||
export declare const version = "/* VERSION */"; | ||
export declare const rules: { | ||
'jsx-pragma': import("eslint").Rule.RuleModule; | ||
'local-cx-xcss': import("eslint").Rule.RuleModule; | ||
'no-css-prop-without-css-function': import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<string, [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>; | ||
'no-css-tagged-template-expression': import("eslint").Rule.RuleModule; | ||
'no-emotion-css': import("eslint").Rule.RuleModule; | ||
'no-exported-css': import("eslint").Rule.RuleModule; | ||
'no-exported-keyframes': import("eslint").Rule.RuleModule; | ||
'no-invalid-css-map': import("eslint").Rule.RuleModule; | ||
'no-js-xcss': import("eslint").Rule.RuleModule; | ||
'no-keyframes-tagged-template-expression': import("eslint").Rule.RuleModule; | ||
'no-styled-tagged-template-expression': import("eslint").Rule.RuleModule; | ||
'no-suppress-xcss': import("eslint").Rule.RuleModule; | ||
'no-empty-styled-expression': import("eslint").Rule.RuleModule; | ||
'shorthand-property-sorting': import("eslint").Rule.RuleModule; | ||
readonly 'jsx-pragma': import("eslint").Rule.RuleModule; | ||
readonly 'local-cx-xcss': import("eslint").Rule.RuleModule; | ||
readonly 'no-css-prop-without-css-function': import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<string, [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>; | ||
readonly 'no-css-tagged-template-expression': import("eslint").Rule.RuleModule; | ||
readonly 'no-emotion-css': import("eslint").Rule.RuleModule; | ||
readonly 'no-exported-css': import("eslint").Rule.RuleModule; | ||
readonly 'no-exported-keyframes': import("eslint").Rule.RuleModule; | ||
readonly 'no-invalid-css-map': import("eslint").Rule.RuleModule; | ||
readonly 'no-js-xcss': import("eslint").Rule.RuleModule; | ||
readonly 'no-keyframes-tagged-template-expression': import("eslint").Rule.RuleModule; | ||
readonly 'no-styled-tagged-template-expression': import("eslint").Rule.RuleModule; | ||
readonly 'no-suppress-xcss': import("eslint").Rule.RuleModule; | ||
readonly 'no-empty-styled-expression': import("eslint").Rule.RuleModule; | ||
readonly 'shorthand-property-sorting': import("eslint").Rule.RuleModule; | ||
}; | ||
export declare const plugin: { | ||
readonly meta: { | ||
readonly name: "/* NAME */"; | ||
readonly version: "/* VERSION */"; | ||
}; | ||
readonly rules: { | ||
readonly 'jsx-pragma': import("eslint").Rule.RuleModule; | ||
readonly 'local-cx-xcss': import("eslint").Rule.RuleModule; | ||
readonly 'no-css-prop-without-css-function': import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<string, [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>; | ||
readonly 'no-css-tagged-template-expression': import("eslint").Rule.RuleModule; | ||
readonly 'no-emotion-css': import("eslint").Rule.RuleModule; | ||
readonly 'no-exported-css': import("eslint").Rule.RuleModule; | ||
readonly 'no-exported-keyframes': import("eslint").Rule.RuleModule; | ||
readonly 'no-invalid-css-map': import("eslint").Rule.RuleModule; | ||
readonly 'no-js-xcss': import("eslint").Rule.RuleModule; | ||
readonly 'no-keyframes-tagged-template-expression': import("eslint").Rule.RuleModule; | ||
readonly 'no-styled-tagged-template-expression': import("eslint").Rule.RuleModule; | ||
readonly 'no-suppress-xcss': import("eslint").Rule.RuleModule; | ||
readonly 'no-empty-styled-expression': import("eslint").Rule.RuleModule; | ||
readonly 'shorthand-property-sorting': import("eslint").Rule.RuleModule; | ||
}; | ||
readonly configs: { | ||
readonly recommended: { | ||
plugins: string[]; | ||
rules: { | ||
'@compiled/local-cx-xcss': string; | ||
'@compiled/no-css-prop-without-css-function': string; | ||
'@compiled/no-css-tagged-template-expression': string; | ||
'@compiled/no-empty-styled-expression': string; | ||
'@compiled/no-exported-css': string; | ||
'@compiled/no-exported-keyframes': string; | ||
'@compiled/no-invalid-css-map': string; | ||
'@compiled/no-js-xcss': string; | ||
'@compiled/no-keyframes-tagged-template-expression': string; | ||
'@compiled/no-styled-tagged-template-expression': string; | ||
'@compiled/no-suppress-xcss': string; | ||
}; | ||
}; | ||
readonly 'flat/recommended': { | ||
readonly plugins: { | ||
readonly '@compiled': any; | ||
}; | ||
readonly rules: { | ||
readonly '@compiled/local-cx-xcss': "error"; | ||
readonly '@compiled/no-css-prop-without-css-function': "error"; | ||
readonly '@compiled/no-css-tagged-template-expression': "error"; | ||
readonly '@compiled/no-empty-styled-expression': "error"; | ||
readonly '@compiled/no-exported-css': "error"; | ||
readonly '@compiled/no-exported-keyframes': "error"; | ||
readonly '@compiled/no-invalid-css-map': "error"; | ||
readonly '@compiled/no-js-xcss': "error"; | ||
readonly '@compiled/no-keyframes-tagged-template-expression': "error"; | ||
readonly '@compiled/no-styled-tagged-template-expression': "error"; | ||
readonly '@compiled/no-suppress-xcss': "error"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
export declare const configs: { | ||
recommended: { | ||
readonly recommended: { | ||
plugins: string[]; | ||
@@ -24,2 +84,3 @@ rules: { | ||
'@compiled/no-css-tagged-template-expression': string; | ||
'@compiled/no-empty-styled-expression': string; | ||
'@compiled/no-exported-css': string; | ||
@@ -32,5 +93,23 @@ '@compiled/no-exported-keyframes': string; | ||
'@compiled/no-suppress-xcss': string; | ||
'@compiled/no-empty-styled-expression': string; | ||
}; | ||
}; | ||
readonly 'flat/recommended': { | ||
readonly plugins: { | ||
readonly '@compiled': any; | ||
}; | ||
readonly rules: { | ||
readonly '@compiled/local-cx-xcss': "error"; | ||
readonly '@compiled/no-css-prop-without-css-function': "error"; | ||
readonly '@compiled/no-css-tagged-template-expression': "error"; | ||
readonly '@compiled/no-empty-styled-expression': "error"; | ||
readonly '@compiled/no-exported-css': "error"; | ||
readonly '@compiled/no-exported-keyframes': "error"; | ||
readonly '@compiled/no-invalid-css-map': "error"; | ||
readonly '@compiled/no-js-xcss': "error"; | ||
readonly '@compiled/no-keyframes-tagged-template-expression': "error"; | ||
readonly '@compiled/no-styled-tagged-template-expression': "error"; | ||
readonly '@compiled/no-suppress-xcss': "error"; | ||
}; | ||
}; | ||
}; | ||
export default plugin; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.configs = exports.rules = void 0; | ||
exports.configs = exports.plugin = exports.rules = exports.version = exports.name = void 0; | ||
const flat_recommended_1 = require("./configs/flat-recommended"); | ||
const recommended_1 = require("./configs/recommended"); | ||
@@ -19,2 +20,4 @@ const jsx_pragma_1 = require("./rules/jsx-pragma"); | ||
const shorthand_property_sorting_1 = require("./rules/shorthand-property-sorting"); | ||
exports.name = "@compiled/eslint-plugin"; | ||
exports.version = "0.16.0"; | ||
exports.rules = { | ||
@@ -36,5 +39,19 @@ 'jsx-pragma': jsx_pragma_1.jsxPragmaRule, | ||
}; | ||
exports.configs = { | ||
recommended: recommended_1.recommended, | ||
exports.plugin = { | ||
meta: { | ||
name: exports.name, | ||
version: exports.version, | ||
}, | ||
rules: exports.rules, | ||
configs: { | ||
recommended: recommended_1.recommended, | ||
'flat/recommended': Object.assign(Object.assign({}, flat_recommended_1.flatRecommended), { plugins: { | ||
get '@compiled'() { | ||
return exports.plugin; | ||
}, | ||
} }), | ||
}, | ||
}; | ||
exports.configs = exports.plugin.configs; | ||
exports.default = exports.plugin; | ||
//# sourceMappingURL=index.js.map |
@@ -76,2 +76,3 @@ "use strict"; | ||
docs: { | ||
description: 'Enforces a jsx pragma when using the `css` prop', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/jsx-pragma', | ||
@@ -78,0 +79,0 @@ }, |
@@ -18,2 +18,3 @@ "use strict"; | ||
docs: { | ||
description: 'Ensures the `cx()` function is only used within the `xcss` prop', | ||
recommended: true, | ||
@@ -20,0 +21,0 @@ url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/local-cx-xcss', |
@@ -179,3 +179,3 @@ "use strict"; | ||
recommended: 'error', | ||
description: 'Disallows `css` prop usages without wrapping in the `css` import from `@compiled/react`. Also forbids `css` prop usages where Compiled cannot determine whether the `css` import is included at build time.', | ||
description: 'Disallows `css` prop usages where it is either not wrapped in the `css` import from `@compiled/react` or where `@compiled` cannot determine whether the `css` import is included at build time.', | ||
}, | ||
@@ -182,0 +182,0 @@ messages: { |
@@ -8,2 +8,4 @@ "use strict"; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows the `css` tagged template expression', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-css-tagged-template-expression', | ||
@@ -10,0 +12,0 @@ }, |
@@ -26,2 +26,3 @@ "use strict"; | ||
docs: { | ||
description: 'Disallows `@emotion` usages', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-emotion-css', | ||
@@ -28,0 +29,0 @@ }, |
@@ -41,2 +41,4 @@ "use strict"; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows any `styled` expression to be used when passing empty arguments in `@compiled/react`', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-empty-styled-expression', | ||
@@ -43,0 +45,0 @@ }, |
@@ -8,2 +8,4 @@ "use strict"; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows `css` usages from being exported', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-exported-css', | ||
@@ -10,0 +12,0 @@ }, |
@@ -8,2 +8,4 @@ "use strict"; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows `keyframes` usages from being exported', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-exported-css', | ||
@@ -10,0 +12,0 @@ }, |
@@ -59,2 +59,3 @@ "use strict"; | ||
docs: { | ||
recommended: true, | ||
description: "Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking.", | ||
@@ -61,0 +62,0 @@ url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-invalid-css-map', |
@@ -8,2 +8,4 @@ "use strict"; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows the `keyframes` tagged template expression', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-keyframes-tagged-template-expression', | ||
@@ -10,0 +12,0 @@ }, |
@@ -8,2 +8,4 @@ "use strict"; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows the `styled` tagged template expression', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-styled-tagged-template-expression', | ||
@@ -10,0 +12,0 @@ }, |
@@ -40,3 +40,3 @@ "use strict"; | ||
docs: { | ||
description: 'Prevent unwanted side-effect by ensuring shorthand properties are always defined before their related longhands. See more in the README.', | ||
description: 'Prevent unwanted side-effect by ensuring shorthand properties are always defined before their related longhands.', | ||
recommended: true, | ||
@@ -43,0 +43,0 @@ url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/shorthand-property-sorting', |
{ | ||
"name": "@compiled/eslint-plugin", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "A familiar and performant compile time CSS-in-JS library for React.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://compiledcssinjs.com/docs/pkg-eslint-plugin", |
@@ -13,2 +13,31 @@ # @compiled/eslint-plugin | ||
### Flat Config | ||
Import the `@compiled/eslint-plugin` and add it to your plugins like so, then configure the rules you want to use under the "Supported rules" section. | ||
```ts | ||
import compiled from '@compiled/eslint-plugin'; | ||
export default [ | ||
{ | ||
plugins: { | ||
'@compiled': compiled, | ||
}, | ||
rules: { | ||
'@compiled/no-js-xcss': 'error', | ||
}, | ||
}, | ||
]; | ||
``` | ||
You can also enable the recommended rules for compiled by extending the `flat/recommended` config like so: | ||
```ts | ||
import compiled from '@compiled/eslint-plugin'; | ||
export default [compiled.configs['flat/recommended']]; | ||
``` | ||
### Legacy Config (`.eslintrc`) | ||
Add `@compiled` to the plugins section of your `.eslintrc` configuration file, then configure the rules you want to use under the rules section. | ||
@@ -20,3 +49,3 @@ | ||
"rules": { | ||
"@compiled/rule-name": "error" | ||
"@compiled/no-js-xcss": "error" | ||
} | ||
@@ -37,13 +66,20 @@ } | ||
:white_check_mark: = recommended, :wrench: = automatically fixable, :bulb: = manually fixable | ||
✅ Included in the recommended configuration.\ | ||
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\ | ||
| Name | Description | :white_check_mark: | Fixable | | ||
| -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- | :----------------: | :------: | | ||
| [@compiled/jsx-pragma](./src/rules/jsx-pragma) | Enforces a jsx pragma when using the `css` prop | | :wrench: | | ||
| [@compiled/no-css-tagged-template-expression](./src/rules/no-css-tagged-template-expression) | Disallows the `css` tagged template expression | :white_check_mark: | :wrench: | | ||
| [@compiled/no-emotion-css](./src/rules/no-emotion-css) | Disallows `@emotion` usages | | :wrench: | | ||
| [@compiled/no-exported-css](./src/rules/no-exported-css) | Disallows `css` usages from being exported | :white_check_mark: | | | ||
| [@compiled/no-exported-keyframes](./src/rules/no-exported-keyframes) | Disallows `keyframes` usages from being exported | :white_check_mark: | | | ||
| [@compiled/no-keyframes-tagged-template-expression](./src/rules/no-keyframes-tagged-template-expression) | Disallows the `keyframes` tagged template expression | :white_check_mark: | :wrench: | | ||
| [@compiled/no-styled-tagged-template-expression](./src/rules/no-styled-tagged-template-expression) | Disallows the `styled` tagged template expression | :white_check_mark: | :wrench: | | ||
| [@compiled/no-css-prop-without-css-function](./src/rules/no-css-prop-without-css-function) | Disallows css prop without the css function | :white_check_mark: | :wrench: | | ||
| Name | Description | Recommended | Fixable | | ||
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------: | :-----: | | ||
| [@compiled/jsx-pragma](./src/rules/jsx-pragma) | Enforces a jsx pragma when using the `css` prop | | 🔧 | | ||
| [@compiled/local-cx-xcss](./src/rules/local-cx-xcss) | Ensures the `cx()` function is only used within the `xcss` prop | ✅ | | | ||
| [@compiled/no-css-prop-without-css-function](./src/rules/no-css-prop-without-css-function) | Disallows `css` prop usages where it is either not wrapped in the `css` import from `@compiled/react` or where `@compiled` cannot determine whether the `css` import is included at build time. | ✅ | 🔧 | | ||
| [@compiled/no-css-tagged-template-expression](./src/rules/no-css-tagged-template-expression) | Disallows the `css` tagged template expression | ✅ | 🔧 | | ||
| [@compiled/no-emotion-css](./src/rules/no-emotion-css) | Disallows `@emotion` usages | | 🔧 | | ||
| [@compiled/no-empty-styled-expression](./src/rules/no-empty-styled-expression) | Disallows any `styled` expression to be used when passing empty arguments in `@compiled/react` | ✅ | | | ||
| [@compiled/no-exported-css](./src/rules/no-exported-css) | Disallows `css` usages from being exported | ✅ | | | ||
| [@compiled/no-exported-keyframes](./src/rules/no-exported-keyframes) | Disallows `keyframes` usages from being exported | ✅ | | | ||
| [@compiled/no-invalid-css-map](./src/rules/no-invalid-css-map) | Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking. | ✅ | | | ||
| [@compiled/no-js-xcss](./src/rules/no-js-xcss) | The xcss prop is predicated on adhering to the type contract. Using it without TypeScript breaks this contract and thus is not allowed. | ✅ | | | ||
| [@compiled/no-keyframes-tagged-template-expression](./src/rules/no-keyframes-tagged-template-expression) | Disallows the `keyframes` tagged template expression | ✅ | 🔧 | | ||
| [@compiled/no-styled-tagged-template-expression](./src/rules/no-styled-tagged-template-expression) | Disallows the `styled` tagged template expression | ✅ | 🔧 | | ||
| [@compiled/no-suppress-xcss](./src/rules/no-suppress-xcss) | The xcss prop is predicated on adhering to the type contract. Supressing it breaks this contract and thus is not allowed. | ✅ | | | ||
| [@compiled/shorthand-property-sorting](./src/rules/shorthand-property-sorting) | Prevent unwanted side-effect by ensuring shorthand properties are always defined before their related longhands. | ✅ | | |
@@ -7,2 +7,3 @@ export const recommended = { | ||
'@compiled/no-css-tagged-template-expression': 'error', | ||
'@compiled/no-empty-styled-expression': 'error', | ||
'@compiled/no-exported-css': 'error', | ||
@@ -15,4 +16,3 @@ '@compiled/no-exported-keyframes': 'error', | ||
'@compiled/no-suppress-xcss': 'error', | ||
'@compiled/no-empty-styled-expression': 'error', | ||
}, | ||
}; |
@@ -0,1 +1,2 @@ | ||
import { flatRecommended } from './configs/flat-recommended'; | ||
import { recommended } from './configs/recommended'; | ||
@@ -17,2 +18,5 @@ import { jsxPragmaRule } from './rules/jsx-pragma'; | ||
export const name = '/* NAME */'; | ||
export const version = '/* VERSION */'; | ||
export const rules = { | ||
@@ -33,6 +37,25 @@ 'jsx-pragma': jsxPragmaRule, | ||
'shorthand-property-sorting': shorthandFirst, | ||
}; | ||
} as const; | ||
export const configs = { | ||
recommended, | ||
}; | ||
export const plugin = { | ||
meta: { | ||
name, | ||
version, | ||
}, | ||
rules, | ||
configs: { | ||
recommended, | ||
'flat/recommended': { | ||
...flatRecommended, | ||
plugins: { | ||
get '@compiled'() { | ||
return plugin; | ||
}, | ||
}, | ||
}, | ||
}, | ||
} as const; | ||
export const configs = plugin.configs; | ||
export default plugin; |
@@ -117,2 +117,3 @@ import { COMPILED_IMPORT, DEFAULT_IMPORT_SOURCES } from '@compiled/utils'; | ||
docs: { | ||
description: 'Enforces a jsx pragma when using the `css` prop', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/jsx-pragma', | ||
@@ -119,0 +120,0 @@ }, |
@@ -22,2 +22,3 @@ import type { Rule } from 'eslint'; | ||
docs: { | ||
description: 'Ensures the `cx()` function is only used within the `xcss` prop', | ||
recommended: true, | ||
@@ -24,0 +25,0 @@ url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/local-cx-xcss', |
@@ -225,3 +225,3 @@ import { COMPILED_IMPORT } from '@compiled/utils'; | ||
description: | ||
'Disallows `css` prop usages without wrapping in the `css` import from `@compiled/react`. Also forbids `css` prop usages where Compiled cannot determine whether the `css` import is included at build time.', | ||
'Disallows `css` prop usages where it is either not wrapped in the `css` import from `@compiled/react` or where `@compiled` cannot determine whether the `css` import is included at build time.', | ||
}, | ||
@@ -228,0 +228,0 @@ messages: { |
@@ -8,2 +8,4 @@ import type { Rule } from 'eslint'; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows the `css` tagged template expression', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-css-tagged-template-expression', | ||
@@ -10,0 +12,0 @@ }, |
@@ -32,2 +32,3 @@ import { COMPILED_IMPORT } from '@compiled/utils'; | ||
docs: { | ||
description: 'Disallows `@emotion` usages', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-emotion-css', | ||
@@ -34,0 +35,0 @@ }, |
@@ -53,2 +53,5 @@ import type { Rule } from 'eslint'; | ||
docs: { | ||
recommended: true, | ||
description: | ||
'Disallows any `styled` expression to be used when passing empty arguments in `@compiled/react`', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-empty-styled-expression', | ||
@@ -55,0 +58,0 @@ }, |
@@ -8,2 +8,4 @@ import type { Rule } from 'eslint'; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows `css` usages from being exported', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-exported-css', | ||
@@ -10,0 +12,0 @@ }, |
@@ -8,2 +8,4 @@ import type { Rule } from 'eslint'; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows `keyframes` usages from being exported', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-exported-css', | ||
@@ -10,0 +12,0 @@ }, |
@@ -72,2 +72,3 @@ import { DEFAULT_IMPORT_SOURCES } from '@compiled/utils'; | ||
docs: { | ||
recommended: true, | ||
description: | ||
@@ -74,0 +75,0 @@ "Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking.", |
@@ -8,2 +8,4 @@ import type { Rule } from 'eslint'; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows the `keyframes` tagged template expression', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-keyframes-tagged-template-expression', | ||
@@ -10,0 +12,0 @@ }, |
@@ -8,2 +8,4 @@ import type { Rule } from 'eslint'; | ||
docs: { | ||
recommended: true, | ||
description: 'Disallows the `styled` tagged template expression', | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-styled-tagged-template-expression', | ||
@@ -10,0 +12,0 @@ }, |
@@ -60,3 +60,3 @@ import { | ||
description: | ||
'Prevent unwanted side-effect by ensuring shorthand properties are always defined before their related longhands. See more in the README.', | ||
'Prevent unwanted side-effect by ensuring shorthand properties are always defined before their related longhands.', | ||
recommended: true, | ||
@@ -63,0 +63,0 @@ url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/shorthand-property-sorting', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
457851
162
10731
83