Skip to content

Commit

Permalink
[code-infra] Simplify .stylelintrc.js
Browse files Browse the repository at this point in the history
A continuation of mui#42411
  • Loading branch information
oliviertassinari committed May 28, 2024
1 parent f9283ba commit 70327ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"jsonlint": "node ./scripts/jsonlint.mjs",
"eslint": "eslint . --cache --report-unused-disable-directives --ext .js,.ts,.tsx --max-warnings 0",
"eslint:ci": "eslint . --report-unused-disable-directives --ext .js,.ts,.tsx --max-warnings 0",
"stylelint": "stylelint --reportInvalidScopeDisables --reportNeedlessDisables \"docs/**/*.{js,ts,tsx}\"",
"stylelint": "stylelint --reportInvalidScopeDisables --reportNeedlessDisables \"docs/**/*.{js,ts,tsx}\" --ignore-path .gitignore",
"markdownlint": "markdownlint-cli2 \"**/*.md\"",
"valelint": "git ls-files | grep -h \".md$\" | xargs vale --filter='.Level==\"error\"'",
"prettier": "pretty-quick --ignore-path .eslintignore --branch next",
Expand Down
10 changes: 1 addition & 9 deletions .stylelintrc.js → stylelint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
module.exports = {
export default {
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',
'docs/.next/**/*',
'docs/export/**/*',
'**/node_modules/**/*',
],
rules: {
'alpha-value-notation': null,
'custom-property-pattern': null,
Expand Down

0 comments on commit 70327ca

Please sign in to comment.