Skip to content

Commit

Permalink
[code-infra] Use shared .stylelintrc.js config
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed May 26, 2024
1 parent 87ef64b commit d112027
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions .stylelintrc.js
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,
};

0 comments on commit d112027

Please sign in to comment.