@mui/internal-code-infra 0.0.3-canary.13 → 0.0.3-canary.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.3-canary.13",
3
+ "version": "0.0.3-canary.14",
4
4
  "description": "Infra scripts and configs to be used across MUI repos.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -11,6 +11,7 @@
11
11
  },
12
12
  "sideEffects": false,
13
13
  "exports": {
14
+ "./stylelint": "./src/stylelint/index.mjs",
14
15
  "./package.json": "./package.json",
15
16
  "./prettier": "./src/prettier.mjs",
16
17
  "./eslint": "./src/eslint/index.mjs",
@@ -56,14 +57,16 @@
56
57
  "globals": "^16.4.0",
57
58
  "globby": "^14.1.0",
58
59
  "minimatch": "^10.0.3",
60
+ "postcss-styled-syntax": "^0.7.1",
59
61
  "regexp.escape": "^2.0.1",
60
62
  "resolve-pkg-maps": "^1.0.0",
61
63
  "semver": "^7.7.2",
64
+ "stylelint-config-standard": "^39.0.0",
62
65
  "typescript-eslint": "^8.44.0",
63
66
  "yargs": "^18.0.0",
64
- "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.22",
67
+ "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.10",
65
68
  "@mui/internal-babel-plugin-display-name": "1.0.4-canary.7",
66
- "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.10"
69
+ "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.22"
67
70
  },
68
71
  "peerDependencies": {
69
72
  "eslint": "^9.0.0",
@@ -94,7 +97,7 @@
94
97
  "publishConfig": {
95
98
  "access": "public"
96
99
  },
97
- "gitSha": "4da928da2bd2bc10ede2e75639e7efc682774e09",
100
+ "gitSha": "643915892c1c031f8898ee68768421731ebb1176",
98
101
  "scripts": {
99
102
  "typescript": "tsc -p tsconfig.json",
100
103
  "test": "pnpm -w test --project @mui/internal-code-infra",
@@ -0,0 +1,43 @@
1
+ import postcssStylesSyntax from 'postcss-styled-syntax';
2
+ import standardConfig from 'stylelint-config-standard';
3
+
4
+ /** @type {import('stylelint').Config} */
5
+ export default {
6
+ extends: standardConfig,
7
+ rules: {
8
+ // Adopted from mui/material-ui repo
9
+ 'alpha-value-notation': null,
10
+ 'custom-property-pattern': null,
11
+ 'media-feature-range-notation': null,
12
+ 'no-empty-source': null,
13
+ 'selector-class-pattern': null,
14
+ 'string-no-newline': null, // not compatible with prettier
15
+ 'value-keyword-case': null,
16
+ 'import-notation': null,
17
+
18
+ // Responsibility of prettier:
19
+ 'at-rule-empty-line-before': null,
20
+ 'comment-empty-line-before': null,
21
+ 'custom-property-empty-line-before': null,
22
+ 'declaration-empty-line-before': null,
23
+ 'rule-empty-line-before': null,
24
+
25
+ // Tailwind
26
+ 'at-rule-no-unknown': [true, { ignoreAtRules: ['theme', 'config'] }],
27
+
28
+ // Don't assume we use a preprocessor
29
+ 'property-no-vendor-prefix': null,
30
+ 'property-no-deprecated': null,
31
+ 'declaration-property-value-keyword-no-deprecated': null,
32
+
33
+ // Responsibility of a minifier
34
+ 'color-hex-length': null,
35
+ 'declaration-block-no-redundant-longhand-properties': null,
36
+ },
37
+ overrides: [
38
+ {
39
+ files: ['**/*.?(c|m)[jt]s?(x)'],
40
+ customSyntax: postcssStylesSyntax,
41
+ },
42
+ ],
43
+ };
@@ -154,3 +154,16 @@ declare module '@babel/preset-typescript' {
154
154
  declare const preset: PluginItem;
155
155
  export default preset;
156
156
  }
157
+
158
+ declare module 'stylelint-config-standard' {
159
+ import type { Config } from 'stylelint';
160
+
161
+ declare const configExtends: Config['extends'];
162
+ export default configExtends;
163
+ }
164
+ declare module 'postcss-styled-syntax' {
165
+ import type { Syntax } from 'postcss';
166
+
167
+ declare const syntax: Syntax;
168
+ export default syntax;
169
+ }