-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[code-infra] Use shared .stylelintrc.js config
- Loading branch information
1 parent
87ef64b
commit d112027
Showing
1 changed file
with
3 additions
and
25 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,27 +1,5 @@ | ||
const baseline = require('@mui/monorepo/.stylelintrc'); | ||
|
||
module.exports = { | ||
extends: 'stylelint-config-standard', | ||
ignoreFiles: [ | ||
// TypeScript declaration files contain no styles. | ||
// Stylelint is also reporting parseError on `docs/types/react-docgen.d.ts`. | ||
'**/*.d.ts', | ||
], | ||
rules: { | ||
'alpha-value-notation': null, | ||
'custom-property-pattern': null, | ||
'declaration-colon-newline-after': null, | ||
'function-parentheses-newline-inside': null, // not compatible with prettier | ||
'media-feature-range-notation': null, | ||
'no-empty-source': null, | ||
'no-missing-end-of-source-newline': null, | ||
'selector-class-pattern': null, | ||
'string-no-newline': null, // not compatible with prettier | ||
'value-keyword-case': null, | ||
'value-list-comma-newline-after': null, // not compatible with prettier | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/*.js', '**/*.cjs', '**/*.mjs', '**/*.jsx', '**/*.ts', '**/*.tsx'], | ||
customSyntax: 'postcss-styled-syntax', | ||
}, | ||
], | ||
...baseline, | ||
}; |