diff --git a/package.json b/package.json index c9842d2d10c18..f67bf6cc969d8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/.stylelintrc.js b/stylelint.config.mjs similarity index 64% rename from .stylelintrc.js rename to stylelint.config.mjs index 03c17d0d5c60b..4f1a9dc8f793e 100644 --- a/.stylelintrc.js +++ b/stylelint.config.mjs @@ -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,