eslint-plugin-quintoandar
Advanced tools
Comparing version 1.13.1 to 1.14.0
@@ -24,2 +24,3 @@ /* eslint-disable global-require */ | ||
'no-theme-usage': require('./rules/no-theme-usage'), | ||
'no-cozy-theme-import': require('./rules/no-cozy-theme-import'), | ||
'quintoandar-import-order': require('./rules/quintoandar-import-order'), | ||
@@ -46,2 +47,3 @@ }, | ||
'no-theme-usage': 2, | ||
'no-cozy-theme-import': 2, | ||
'quintoandar-import-order': 2, | ||
@@ -48,0 +50,0 @@ }, |
{ | ||
"name": "eslint-plugin-quintoandar", | ||
"version": "1.13.1", | ||
"version": "1.14.0", | ||
"description": "An eslint-plugin for PWA-Tenants custom rules", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -126,2 +126,28 @@ <div align="center"> | ||
### No cozy theme import | ||
Do not import cozy theme. | ||
Replace it with one of the cozy tokens. | ||
#### How to use it | ||
Just add the code below in your rules array: | ||
```js | ||
"quintoandar/no-cozy-theme-import": 2, | ||
``` | ||
### No theme usage | ||
Do not use theme.palette, theme.spacing, theme.elevations or theme.shape. | ||
Replace it with one of the cozy tokens. | ||
#### How to use it | ||
Just add the code below in your rules array: | ||
```js | ||
"quintoandar/no-theme-usage": 2, | ||
``` | ||
### No ThemeProvider import | ||
@@ -128,0 +154,0 @@ |
74395
46
1705
340