-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve css in js configuration for RN and WEB
- Loading branch information
1 parent
dd29557
commit 126d91b
Showing
6 changed files
with
500 additions
and
110 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,10 @@ | ||
const config = require('@linters/stylelint-config') | ||
|
||
delete config.rules['unit-disallowed-list'] | ||
delete config.rules['media-feature-name-disallowed-list'] | ||
|
||
module.exports = { | ||
...config, | ||
processors: ['stylelint-processor-styled-components'], | ||
extends: ['@linters/stylelint-config'], | ||
customSyntax: '@stylelint/postcss-css-in-js', | ||
rules: { | ||
...config.rules, | ||
// | ||
// Turn off base rules | ||
// | ||
|
||
// Possible errors | ||
|
||
'font-family-no-missing-generic-family-keyword': null, | ||
'no-empty-source': null, | ||
'string-no-newline': null, | ||
'selector-pseudo-class-no-unknown': null, | ||
'selector-pseudo-element-no-unknown': null, | ||
'selector-type-no-unknown': null, | ||
'no-descending-specificity': null, | ||
|
||
// Limit language features | ||
|
||
'selector-max-empty-lines': null, | ||
'selector-no-vendor-prefix': null, | ||
|
||
// Stylistic issues | ||
|
||
'no-missing-end-of-source-newline': null, | ||
'function-name-case': null, | ||
'value-keyword-case': null, | ||
// false positive | ||
'no-empty-first-line': null, | ||
|
||
// TODO: add styled-components rules | ||
}, | ||
} |
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
Oops, something went wrong.