eslint-plugin-emotion
Advanced tools
Comparing version 10.0.0-beta.0 to 10.0.0-beta.1
{ | ||
"name": "eslint-plugin-emotion", | ||
"version": "10.0.0-beta.0", | ||
"version": "10.0.0-beta.1", | ||
"description": "ESLint rules for emotion", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -51,3 +51,3 @@ # eslint-plugin-emotion | ||
"emotion/import-from-emotion": "error", | ||
"emotion/styled-import": "error | ||
"emotion/styled-import": "error" | ||
} | ||
@@ -59,10 +59,10 @@ } | ||
> | ||
> These rules assume you are using React, if you are not using React, you should keeping only using the `emotion` package. | ||
> These rules assume you are using React, if you are not using React, you should keep using the `emotion` package. | ||
## Supported Rules | ||
- [jsx-import](./docs/rules/jsx-import.md) | ||
- [styled-import](./docs/rules/styled-import.md) | ||
- [import-from-emotion](./docs/rules/import-from-emotion.md) | ||
- [no-vanilla](./docs/rules/no-vanilla.md) | ||
- [syntax-preference](./docs/rules/syntax-preference.md) | ||
- [jsx-import](https://github.com/emotion-js/emotion/blob/master/packages/eslint-plugin-emotion/docs/rules/jsx-import.md) | ||
- [styled-import](https://github.com/emotion-js/emotion/blob/master/packages/eslint-plugin-emotion/docs/rules/styled-import.md) | ||
- [import-from-emotion](https://github.com/emotion-js/emotion/blob/master/packages/eslint-plugin-emotion/docs/rules/import-from-emotion.md) | ||
- [no-vanilla](https://github.com/emotion-js/emotion/blob/master/packages/eslint-plugin-emotion/docs/rules/no-vanilla.md) | ||
- [syntax-preference](https://github.com/emotion-js/emotion/blob/master/packages/eslint-plugin-emotion/docs/rules/syntax-preference.md) |
@@ -0,1 +1,3 @@ | ||
// @flow | ||
exports.rules = { | ||
@@ -5,4 +7,4 @@ 'import-from-emotion': require('./rules/import-from-emotion'), | ||
'syntax-preference': require('./rules/syntax-preference'), | ||
styled: require('./rules/styled'), | ||
jsx: require('./rules/jsx') | ||
'styled-import': require('./rules/styled-import'), | ||
'jsx-import': require('./rules/jsx-import') | ||
} |
@@ -6,3 +6,3 @@ /** | ||
const { RuleTester } = require('eslint') | ||
const rule = require('../../src/rules/import-from-emotion') | ||
const rule = require('eslint-plugin-emotion').rules['import-from-emotion'] | ||
@@ -9,0 +9,0 @@ RuleTester.setDefaultConfig({ |
@@ -6,3 +6,3 @@ /** | ||
const { RuleTester } = require('eslint') | ||
const rule = require('../../src/rules/jsx-import') | ||
const rule = require('eslint-plugin-emotion').rules['jsx-import'] | ||
@@ -9,0 +9,0 @@ RuleTester.setDefaultConfig({ |
@@ -6,3 +6,3 @@ /** | ||
const { RuleTester } = require('eslint') | ||
const rule = require('../../src/rules/no-vanilla') | ||
const rule = require('eslint-plugin-emotion').rules['no-vanilla'] | ||
@@ -9,0 +9,0 @@ RuleTester.setDefaultConfig({ |
@@ -6,3 +6,3 @@ /** | ||
const { RuleTester } = require('eslint') | ||
const rule = require('../../src/rules/styled-import') | ||
const rule = require('eslint-plugin-emotion').rules['styled-import'] | ||
@@ -9,0 +9,0 @@ RuleTester.setDefaultConfig({ |
@@ -12,3 +12,3 @@ /** | ||
const { RuleTester } = require('eslint') | ||
const rule = require('../../src/rules/syntax-preference') | ||
const rule = require('eslint-plugin-emotion').rules['syntax-preference'] | ||
@@ -15,0 +15,0 @@ RuleTester.setDefaultConfig({ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21227
605
0