Permalink
Cannot retrieve contributors at this time
42 lines (35 sloc)
1.14 KB
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* eslint-env node */ | |
| module.exports = { | |
| customSyntax: 'postcss-jsx', | |
| extends: ['stylelint-config-recommended', 'stylelint-config-prettier'], | |
| rules: { | |
| 'declaration-colon-newline-after': null, | |
| // This is formatting related | |
| 'declaration-bang-space-before': null, | |
| // Doesn't work when we use values from theme | |
| 'unit-no-unknown': null, | |
| 'font-family-no-missing-generic-family-keyword': null, | |
| 'media-feature-name-no-unknown': null, | |
| // Does not seem useful | |
| 'no-descending-specificity': null, | |
| // Breaks with interpolated template values | |
| 'function-no-unknown': null, | |
| 'property-no-unknown': [ | |
| true, | |
| { | |
| // originX, orginY are used with framer motion | |
| ignoreProperties: ['origin-x', 'origin-y'], | |
| }, | |
| ], | |
| // Allow empty template eg - styled(thing)`` | |
| 'no-empty-source': null, | |
| 'property-disallowed-list': [ | |
| // Prefer `gap` over `grid-gap`, it does the same thing | |
| 'grid-gap', | |
| // Can't set per-property custom messages.. so try and bring them here | |
| { | |
| message: 'Disallowed property. (See `stylelint.config.js` as to why)', | |
| }, | |
| ], | |
| }, | |
| }; |