From 8fee886dc19035009a85fba73657eb06f0555877 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 27 Nov 2023 14:49:27 +0530 Subject: [PATCH 01/18] initial changes --- .eslintrc.js | 3 + package.json | 2 - packages/mui-base/package.json | 2 +- renovate.json | 5 -- tslint.json | 25 ------ yarn.lock | 151 +++------------------------------ 6 files changed, 18 insertions(+), 170 deletions(-) delete mode 100644 tslint.json diff --git a/.eslintrc.js b/.eslintrc.js index 48f261573e5a3b..86e5c6343bca15 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -208,6 +208,9 @@ module.exports = { 'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }], 'lines-around-directive': 'off', + + "semi": "off", + "@typescript-eslint/semi": "error" }, overrides: [ { diff --git a/package.json b/package.json index eafd97c5d268c7..f61e098e302a77 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,6 @@ "cpy-cli": "^5.0.0", "cross-env": "^7.0.3", "danger": "^11.3.0", - "dtslint": "^4.2.1", "enzyme": "^3.11.0", "eslint": "^8.54.0", "eslint-config-airbnb": "^19.0.4", @@ -164,7 +163,6 @@ "stylelint-processor-styled-components": "^1.10.0", "terser-webpack-plugin": "^5.3.9", "ts-node": "^10.9.1", - "tslint": "5.14.0", "typescript": "^5.1.6", "webpack": "^5.88.2", "webpack-bundle-analyzer": "^4.9.1", diff --git a/packages/mui-base/package.json b/packages/mui-base/package.json index 0dde47e6f3e86c..4e4bdf2ecdc4ca 100644 --- a/packages/mui-base/package.json +++ b/packages/mui-base/package.json @@ -37,7 +37,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-base/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json", + "typescript": "tsc -p tsconfig.json", "typescript:module-augmentation": "node scripts/testModuleAugmentation.js" }, "dependencies": { diff --git a/renovate.json b/renovate.json index 0fd37a390b3ada..737df43f189a77 100644 --- a/renovate.json +++ b/renovate.json @@ -66,11 +66,6 @@ "groupName": "React", "matchPackageNames": ["react", "react-dom", "react-is", "react-test-renderer"] }, - { - "groupName": "tslint", - "matchPackageNames": ["tslint"], - "allowedVersions": "<= 5.14.0" - }, { "groupName": "typescript-eslint", "matchPackagePatterns": "@typescript-eslint/*" diff --git a/tslint.json b/tslint.json deleted file mode 100644 index 218fda5ae6d022..00000000000000 --- a/tslint.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "defaultSeverity": "error", - "extends": ["dtslint/dtslint.json"], - "jsRules": {}, - "rules": { - // $ExpectError -> @ts-expect-error - // $ExpectType -> `expectType` from `@mui/types` - // Don't disable this rule unless you made sure `tsc` runs on the same files - // Otherwise some files won't be type-checked - "expect": true, - "file-name-casing": false, - "no-boolean-literal-compare": false, - "no-empty-interface": false, - // Does not recognize const assertions - "no-object-literal-type-assertion": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-generics": false, - "no-redundant-jsdoc": false, - "semicolon": [true, "always", "ignore-bound-class-methods"], - // rules conflicting with eslint - "prefer-template": false, - // rules conflicting with babel - "strict-export-declare-modifiers": false - } -} diff --git a/yarn.lock b/yarn.lock index 9738d790002b5b..690b0de4f85f85 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1494,7 +1494,7 @@ resolved "https://registry.yarnpkg.com/@csstools/selector-specificity/-/selector-specificity-3.0.0.tgz#798622546b63847e82389e473fd67f2707d82247" integrity sha512-hBI9tfBtuPIi885ZsZ32IMEU/5nlZH/KOVYJCOh7gyMxaVLGmLedYqFN6Ui1LXkI8JlC8IsuC0rF0btcRZKd5g== -"@definitelytyped/header-parser@^0.0.189", "@definitelytyped/header-parser@latest": +"@definitelytyped/header-parser@^0.0.189": version "0.0.189" resolved "https://registry.yarnpkg.com/@definitelytyped/header-parser/-/header-parser-0.0.189.tgz#9e7a62778973728e63caa854a25466f23c169798" integrity sha512-5zzTaVAJayCJXWgm6T3kn0V/J/TGY/5mqkfio9bGI0dlKvV/xt0gXCBUFpUT6a0buPcqpsr5eS540XftHvgThQ== @@ -1503,12 +1503,12 @@ "@definitelytyped/utils" "0.0.187" semver "^7.5.4" -"@definitelytyped/typescript-versions@0.0.181", "@definitelytyped/typescript-versions@^0.0.181", "@definitelytyped/typescript-versions@latest": +"@definitelytyped/typescript-versions@0.0.181", "@definitelytyped/typescript-versions@^0.0.181": version "0.0.181" resolved "https://registry.yarnpkg.com/@definitelytyped/typescript-versions/-/typescript-versions-0.0.181.tgz#104320db46b4ce69bfcbfa7f10e5b0d034471d2f" integrity sha512-D3iVQSPLNg8r9xissfcrBP0dsv9hsexz1z/KXBJ97fsqSLIGIiAzaDJJnY9NLzbAOzeazk6Ezetn8k0sIlXetg== -"@definitelytyped/utils@0.0.187", "@definitelytyped/utils@^0.0.187", "@definitelytyped/utils@latest": +"@definitelytyped/utils@0.0.187", "@definitelytyped/utils@^0.0.187": version "0.0.187" resolved "https://registry.yarnpkg.com/@definitelytyped/utils/-/utils-0.0.187.tgz#26c123209a03df938f0b669aa95db16dd0c9ea72" integrity sha512-sJlAKn7Rnqrw4qvgYudjs8vyqsOzgwWmqX20QWt7EW1c3Z1Pt7JkeaaSA3TSWDlwjP6gLGbf2pmDOBnQkAdR5w== @@ -4593,11 +4593,6 @@ ansi-regex@^6.0.1: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - integrity sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA== - ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -5099,15 +5094,6 @@ b4a@^1.6.4: resolved "https://registry.yarnpkg.com/b4a/-/b4a-1.6.4.tgz#ef1c1422cae5ce6535ec191baeed7567443f36c9" integrity sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw== -babel-code-frame@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - integrity sha512-XqYMR2dfdGMW+hd0IUZ2PwK+fGeFkOxZJ0wY+JaQAHzt1Zx8LcvpiZD2NiGkEG8qx0CfkAOr5xt76d1e8vG90g== - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - babel-core@^7.0.0-bridge.0: version "7.0.0-bridge.0" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" @@ -5540,11 +5526,6 @@ buffers@~0.1.1: resolved "https://registry.yarnpkg.com/buffers/-/buffers-0.1.1.tgz#b24579c3bed4d6d396aeee6d9a8ae7f5482ab7bb" integrity sha512-9q/rDEGSb/Qsvv2qvzIzdluL5k7AaJOTrw23z9reQthrbF7is4CtlT0DXyO1oei2DCp4uojjzQ7igaSHp1kAEQ== -builtin-modules@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - integrity sha512-wxXCdllwGhI2kCC0MnvTGYTMvnVZTvqgypkiTI8Pa5tcz2i6VqsqwYGgqwXji+4RgCzms6EajE4IxiUH6HH8nQ== - builtin-modules@^3.1.0: version "3.3.0" resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6" @@ -5819,17 +5800,6 @@ chalk@5.0.1: resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.0.1.tgz#ca57d71e82bb534a296df63bbacc4a1c22b2a4b6" integrity sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w== -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - integrity sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A== - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - chalk@^2.3.0, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" @@ -6219,17 +6189,12 @@ combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" -command-exists@^1.2.8: - version "1.2.9" - resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69" - integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== - commander@^10.0.1: version "10.0.1" resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== -commander@^2.12.1, commander@^2.18.0, commander@^2.19.0, commander@^2.20.0: +commander@^2.18.0, commander@^2.19.0, commander@^2.20.0: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -7218,11 +7183,6 @@ diff@5.0.0: resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== -diff@^3.2.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" - integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== - diff@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" @@ -7393,34 +7353,6 @@ dotenv@~16.3.1: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e" integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ== -dts-critic@latest: - version "3.3.11" - resolved "https://registry.yarnpkg.com/dts-critic/-/dts-critic-3.3.11.tgz#93b7c1ba8017b310623b7cfb72548e0e138b68c8" - integrity sha512-HMO2f9AO7ge44YO8OK18f+cxm/IaE1CFuyNFbfJRCEbyazWj5X5wWDF6W4CGdo5Ax0ILYVfJ7L/rOwuUN1fzWw== - dependencies: - "@definitelytyped/header-parser" latest - command-exists "^1.2.8" - rimraf "^3.0.2" - semver "^6.2.0" - tmp "^0.2.1" - yargs "^15.3.1" - -dtslint@^4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/dtslint/-/dtslint-4.2.1.tgz#c416db9bb7ce3face599b7097b9cd0e7f478fdf7" - integrity sha512-57mWY9osUEfS6k62ATS9RSgug1dZcuN4O31hO76u+iEexa6VUEbKoPGaA2mNtc0FQDcdTl0zEUtti79UQKSQyQ== - dependencies: - "@definitelytyped/header-parser" latest - "@definitelytyped/typescript-versions" latest - "@definitelytyped/utils" latest - dts-critic latest - fs-extra "^6.0.1" - json-stable-stringify "^1.0.1" - strip-json-comments "^2.0.1" - tslint "5.14.0" - tsutils "^2.29.0" - yargs "^15.1.0" - duplexer2@^0.1.2, duplexer2@~0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" @@ -7853,7 +7785,7 @@ escape-string-regexp@5.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8" integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: +escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== @@ -9169,7 +9101,7 @@ glob@^10.2.2, glob@^10.3.7: minipass "^5.0.0 || ^6.0.2 || ^7.0.0" path-scurry "^1.10.1" -glob@^7.0.0, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.1.7, glob@^7.2.0: +glob@^7.0.0, glob@^7.0.5, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.1.7, glob@^7.2.0: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -9407,13 +9339,6 @@ hard-rejection@^2.1.0: resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883" integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - integrity sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg== - dependencies: - ansi-regex "^2.0.0" - has-bigints@^1.0.1, has-bigints@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" @@ -10684,11 +10609,6 @@ jmespath@0.16.0: resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - integrity sha512-RjTcuD4xjtthQkaWH7dFlH85L+QaVtSoOyGdZ3g6HFhS9dFNDfLyqgm2NFe2X6cQpeFmt0452FJjFG5UameExg== - js-yaml@4.1.0, js-yaml@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" @@ -10696,7 +10616,7 @@ js-yaml@4.1.0, js-yaml@^4.1.0: dependencies: argparse "^2.0.1" -js-yaml@^3.10.0, js-yaml@^3.13.1, js-yaml@^3.7.0: +js-yaml@^3.10.0, js-yaml@^3.13.1: version "3.14.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== @@ -10833,13 +10753,6 @@ json-stable-stringify-without-jsonify@^1.0.1: resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== -json-stable-stringify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - integrity sha512-i/J297TW6xyj7sDFa7AmBPkQvLIxWr2kKPWI26tXydnZrzVAocNqn5DMNT1Mzk0vit1V5UkRM7C1KdVNp7Lmcg== - dependencies: - jsonify "~0.0.0" - json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" @@ -10885,11 +10798,6 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" - integrity sha512-trvBk1ki43VZptdBI5rIlG4YOzyeH/WefQt5rj1grasPn4iiZWKet8nkgc4GlsAylaztn0qZfUYOiTsASJFdNA== - jsonparse@^1.2.0, jsonparse@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" @@ -12361,7 +12269,7 @@ mkdirp-classic@^0.5.2, mkdirp-classic@^0.5.3: resolved "https://registry.yarnpkg.com/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz#fa10c9115cc6d8865be221ba47ee9bed78601113" integrity sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A== -"mkdirp@>=0.5 0", mkdirp@^0.5.1, mkdirp@^0.5.5: +"mkdirp@>=0.5 0", mkdirp@^0.5.5: version "0.5.6" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== @@ -15022,7 +14930,7 @@ resolve-url@^0.2.1: resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== -resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.11.0, resolve@^1.11.1, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.2, resolve@^1.22.4, resolve@^1.3.2: +resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.11.0, resolve@^1.11.1, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.2, resolve@^1.22.4: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== @@ -15330,7 +15238,7 @@ semver-compare@^1.0.0: dependencies: lru-cache "^6.0.0" -"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.6.0, semver@^5.7.0, semver@^5.7.1, semver@^5.7.2: +"semver@2 || 3 || 4 || 5", semver@^5.6.0, semver@^5.7.0, semver@^5.7.1, semver@^5.7.2: version "5.7.2" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== @@ -15342,7 +15250,7 @@ semver@7.5.3: dependencies: lru-cache "^6.0.0" -semver@^6.0.0, semver@^6.2.0, semver@^6.3.0, semver@^6.3.1: +semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== @@ -16118,7 +16026,7 @@ strip-json-comments@5.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-5.0.1.tgz#0d8b7d01b23848ed7dbdf4baaaa31a8250d8cfa0" integrity sha512-0fk9zBqO67Nq5M/m45qHCJxylV/DhBlIOVExqgOMiCCrzrhU6tCibRXNqE3jwJLftzE9SNuZtYbpzcO+i9FiKw== -strip-json-comments@^2.0.1, strip-json-comments@~2.0.1: +strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== @@ -16300,11 +16208,6 @@ supports-color@8.1.1, supports-color@^8.0.0, supports-color@^8.1.1: dependencies: has-flag "^4.0.0" -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - integrity sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g== - supports-color@^5.0.0, supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -16797,7 +16700,7 @@ tslib@2.4.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== -tslib@^1.8.0, tslib@^1.8.1: +tslib@^1.8.1: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== @@ -16807,37 +16710,11 @@ tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.4.0, tslib@^2.5 resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.0.tgz#b295854684dbda164e181d259a22cd779dcd7bc3" integrity sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA== -tslint@5.14.0: - version "5.14.0" - resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.14.0.tgz#be62637135ac244fc9b37ed6ea5252c9eba1616e" - integrity sha512-IUla/ieHVnB8Le7LdQFRGlVJid2T/gaJe5VkjzRVSRR6pA2ODYrnfR1hmxi+5+au9l50jBwpbBL34txgv4NnTQ== - dependencies: - babel-code-frame "^6.22.0" - builtin-modules "^1.1.1" - chalk "^2.3.0" - commander "^2.12.1" - diff "^3.2.0" - glob "^7.1.1" - js-yaml "^3.7.0" - minimatch "^3.0.4" - mkdirp "^0.5.1" - resolve "^1.3.2" - semver "^5.3.0" - tslib "^1.8.0" - tsutils "^2.29.0" - tsscmp@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/tsscmp/-/tsscmp-1.0.6.tgz#85b99583ac3589ec4bfef825b5000aa911d605eb" integrity sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA== -tsutils@^2.29.0: - version "2.29.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.29.0.tgz#32b488501467acbedd4b85498673a0812aca0b99" - integrity sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA== - dependencies: - tslib "^1.8.1" - tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" @@ -17936,7 +17813,7 @@ yargs@16.2.0, yargs@^16.1.1, yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" -yargs@^15.0.2, yargs@^15.1.0, yargs@^15.3.1: +yargs@^15.0.2: version "15.4.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== From c79a829bb1f1d5b8da15ff3ef15a3d6812b19be8 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 27 Nov 2023 17:52:08 +0530 Subject: [PATCH 02/18] changes --- .eslintrc.js | 11 +++++++++-- .../material/components/image-list/tslint.json | 6 ------ docs/tslint.json | 8 -------- package.json | 1 + packages/mui-icons-material/package.json | 4 ++-- .../test/generated-types/tslint.json | 5 ----- packages/mui-joy/package.json | 2 +- packages/mui-lab/package.json | 2 +- packages/mui-material-next/package.json | 2 +- packages/mui-material/package.json | 2 +- packages/mui-private-theming/package.json | 2 +- packages/mui-styled-engine-sc/package.json | 2 +- packages/mui-styled-engine/package.json | 2 +- packages/mui-styles/package.json | 2 +- packages/mui-system/package.json | 2 +- packages/mui-types/package.json | 2 +- packages/mui-utils/package.json | 2 +- packages/typescript-to-proptypes/tslint.json | 1 - packages/zero-next-plugin/package.json | 2 +- packages/zero-runtime/package.json | 2 +- packages/zero-tag-processor/package.json | 2 +- packages/zero-vite-plugin/package.json | 2 +- scripts/jsonlint.mjs | 2 +- yarn.lock | 16 ++++++++++++++++ 24 files changed, 44 insertions(+), 40 deletions(-) delete mode 100644 docs/data/material/components/image-list/tslint.json delete mode 100644 docs/tslint.json delete mode 100644 packages/mui-icons-material/test/generated-types/tslint.json delete mode 100644 packages/typescript-to-proptypes/tslint.json diff --git a/.eslintrc.js b/.eslintrc.js index 86e5c6343bca15..89070a8777c57f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -35,6 +35,7 @@ module.exports = { 'eslint-plugin-react-hooks', '@typescript-eslint/eslint-plugin', 'eslint-plugin-filenames', + '@stylistic/js', ], settings: { 'import/resolver': { @@ -209,8 +210,8 @@ module.exports = { 'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }], 'lines-around-directive': 'off', - "semi": "off", - "@typescript-eslint/semi": "error" + semi: 'off', + '@typescript-eslint/semi': 'error', }, overrides: [ { @@ -290,6 +291,12 @@ module.exports = { '@next/next/no-img-element': 'off', }, }, + { + files: ['docs/**/*'], + rules: { + '@stylistic/js/no-trailing-spaces': ['error', 2], + }, + }, // Next.js entry points pages { files: ['docs/pages/**/*.js'], diff --git a/docs/data/material/components/image-list/tslint.json b/docs/data/material/components/image-list/tslint.json deleted file mode 100644 index dcf439eb04824f..00000000000000 --- a/docs/data/material/components/image-list/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "../../../tslint.json", - "rules": { - "no-relative-import-in-test": false - } -} diff --git a/docs/tslint.json b/docs/tslint.json deleted file mode 100644 index d35877747ecfb7..00000000000000 --- a/docs/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../tslint.json", - "rules": { - "no-irregular-whitespace": false, - "no-object-literal-type-assertion": false, - "no-trailing-whitespace": [true, "ignore-template-strings"] - } -} diff --git a/package.json b/package.json index f61e098e302a77..718c650cc3ec3d 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,7 @@ "@playwright/test": "1.40.0", "@slack/bolt": "^3.15.0", "@slack/web-api": "^6.10.0", + "@stylistic/eslint-plugin-js": "^1.4.1", "@types/enzyme": "^3.10.16", "@types/fs-extra": "^11.0.4", "@types/lodash": "^4.14.202", diff --git a/packages/mui-icons-material/package.json b/packages/mui-icons-material/package.json index 35d9a2ed3fa429..57a4ee26c29cf8 100644 --- a/packages/mui-icons-material/package.json +++ b/packages/mui-icons-material/package.json @@ -42,8 +42,8 @@ "src:download": "node ./scripts/download.mjs", "src:icons": "cross-env UV_THREADPOOL_SIZE=64 node ./builder.mjs --output-dir src --svg-dir material-icons --renameFilter ./renameFilters/material-design-icons.mjs && yarn build:lib:clean", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-icons-material/**/*.test.{mjs,js,ts,tsx}'", - "test:built-typings": "tslint -p test/generated-types/tsconfig.json \"test/generated-types/*.{ts,tsx}\"", - "typescript": "tslint -p tsconfig.json \"src/**/*.{ts,tsx}\"" + "test:built-typings": "tsc -p test/generated-types/tsconfig.json \"test/generated-types/*.{ts,tsx}\"", + "typescript": "tsc -p tsconfig.json \"src/**/*.{ts,tsx}\"" }, "dependencies": { "@babel/runtime": "^7.23.4" diff --git a/packages/mui-icons-material/test/generated-types/tslint.json b/packages/mui-icons-material/test/generated-types/tslint.json deleted file mode 100644 index b44ff572bc8c39..00000000000000 --- a/packages/mui-icons-material/test/generated-types/tslint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rules": { - "no-unsafe-any": true - } -} diff --git a/packages/mui-joy/package.json b/packages/mui-joy/package.json index 91e21eeab1378f..8bbdb63a70daa4 100644 --- a/packages/mui-joy/package.json +++ b/packages/mui-joy/package.json @@ -34,7 +34,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-joy/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json", + "typescript": "tsc -p tsconfig.json", "typescript:module-augmentation": "node scripts/testModuleAugmentation.js" }, "dependencies": { diff --git a/packages/mui-lab/package.json b/packages/mui-lab/package.json index 2d37bc83238d60..35f5686bf5a5ed 100644 --- a/packages/mui-lab/package.json +++ b/packages/mui-lab/package.json @@ -38,7 +38,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-lab/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json" + "typescript": "tsc -p tsconfig.json" }, "dependencies": { "@babel/runtime": "^7.23.4", diff --git a/packages/mui-material-next/package.json b/packages/mui-material-next/package.json index cfcf4b2680271b..71c15936f4e79d 100644 --- a/packages/mui-material-next/package.json +++ b/packages/mui-material-next/package.json @@ -36,7 +36,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-material-next/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json", + "typescript": "tsc -p tsconfig.json", "typescript:module-augmentation": "node scripts/testModuleAugmentation.js" }, "dependencies": { diff --git a/packages/mui-material/package.json b/packages/mui-material/package.json index d027f014cb05be..aba84bd0cd963d 100644 --- a/packages/mui-material/package.json +++ b/packages/mui-material/package.json @@ -38,7 +38,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-material/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json", + "typescript": "tsc -p tsconfig.json", "typescript:module-augmentation": "node scripts/testModuleAugmentation.js" }, "dependencies": { diff --git a/packages/mui-private-theming/package.json b/packages/mui-private-theming/package.json index 5b28cbf940a746..9379ceb86d58ce 100644 --- a/packages/mui-private-theming/package.json +++ b/packages/mui-private-theming/package.json @@ -35,7 +35,7 @@ "prebuild": "rimraf build", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-private-theming/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json" + "typescript": "tsc -p tsconfig.json" }, "dependencies": { "@babel/runtime": "^7.23.4", diff --git a/packages/mui-styled-engine-sc/package.json b/packages/mui-styled-engine-sc/package.json index 6f72d3f7d7acc4..4c5583cfbfd496 100644 --- a/packages/mui-styled-engine-sc/package.json +++ b/packages/mui-styled-engine-sc/package.json @@ -35,7 +35,7 @@ "prebuild": "rimraf build", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-styled-engine-sc/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json" + "typescript": "tsc -p tsconfig.json" }, "dependencies": { "@babel/runtime": "^7.23.4", diff --git a/packages/mui-styled-engine/package.json b/packages/mui-styled-engine/package.json index 04e21738184d6b..bb4ac871d231cd 100644 --- a/packages/mui-styled-engine/package.json +++ b/packages/mui-styled-engine/package.json @@ -35,7 +35,7 @@ "prebuild": "rimraf build", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-styled-engine/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json" + "typescript": "tsc -p tsconfig.json" }, "dependencies": { "@babel/runtime": "^7.23.4", diff --git a/packages/mui-styles/package.json b/packages/mui-styles/package.json index bc8692a18da593..2ce1ac8849f699 100644 --- a/packages/mui-styles/package.json +++ b/packages/mui-styles/package.json @@ -35,7 +35,7 @@ "prebuild": "rimraf build", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-styles/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json" + "typescript": "tsc -p tsconfig.json" }, "dependencies": { "@babel/runtime": "^7.23.4", diff --git a/packages/mui-system/package.json b/packages/mui-system/package.json index 69cb9e16510f26..3df0f398d0bac9 100644 --- a/packages/mui-system/package.json +++ b/packages/mui-system/package.json @@ -36,7 +36,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-system/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json", + "typescript": "tsc -p tsconfig.json", "typescript:module-augmentation": "node scripts/testModuleAugmentation.js" }, "dependencies": { diff --git a/packages/mui-types/package.json b/packages/mui-types/package.json index a280044427ddf9..23c0f646c0fd01 100644 --- a/packages/mui-types/package.json +++ b/packages/mui-types/package.json @@ -31,7 +31,7 @@ "prebuild": "rimraf build", "release": "yarn build && npm publish build", "test": "echo 'No runtime test. Type tests are run with the `typescript` script.'", - "typescript": "tslint -p tsconfig.json \"*.{ts,tsx}\"" + "typescript": "tsc -p tsconfig.json" }, "sideEffects": false, "publishConfig": { diff --git a/packages/mui-utils/package.json b/packages/mui-utils/package.json index 4e34b7c4aca08e..55f70cb0a991b4 100644 --- a/packages/mui-utils/package.json +++ b/packages/mui-utils/package.json @@ -36,7 +36,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-utils/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json" + "typescript": "tsc -p tsconfig.json" }, "dependencies": { "@babel/runtime": "^7.23.4", diff --git a/packages/typescript-to-proptypes/tslint.json b/packages/typescript-to-proptypes/tslint.json deleted file mode 100644 index 0967ef424bce67..00000000000000 --- a/packages/typescript-to-proptypes/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/packages/zero-next-plugin/package.json b/packages/zero-next-plugin/package.json index f2be2eb0880549..41880a2e8d9964 100644 --- a/packages/zero-next-plugin/package.json +++ b/packages/zero-next-plugin/package.json @@ -35,7 +35,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/zero-babel-plugin/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json", + "typescript": "tsc -p tsconfig.json", "typescript:module-augmentation": "node scripts/testModuleAugmentation.js" }, "dependencies": { diff --git a/packages/zero-runtime/package.json b/packages/zero-runtime/package.json index 5eeba1046c73fe..3ae171d559a9f4 100644 --- a/packages/zero-runtime/package.json +++ b/packages/zero-runtime/package.json @@ -35,7 +35,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/zero-runtime/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json", + "typescript": "tsc -p tsconfig.json", "typescript:module-augmentation": "node scripts/testModuleAugmentation.js" }, "dependencies": { diff --git a/packages/zero-tag-processor/package.json b/packages/zero-tag-processor/package.json index ef01b074f7fa49..7a32574f08cc12 100644 --- a/packages/zero-tag-processor/package.json +++ b/packages/zero-tag-processor/package.json @@ -35,7 +35,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/zero-babel-plugin/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json", + "typescript": "tsc -p tsconfig.json", "typescript:module-augmentation": "node scripts/testModuleAugmentation.js" }, "dependencies": { diff --git a/packages/zero-vite-plugin/package.json b/packages/zero-vite-plugin/package.json index cff43c4a02bdb4..338967cf8a621c 100644 --- a/packages/zero-vite-plugin/package.json +++ b/packages/zero-vite-plugin/package.json @@ -35,7 +35,7 @@ "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "yarn build && npm publish build", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/zero-babel-plugin/**/*.test.{js,ts,tsx}'", - "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json", + "typescript": "tsc -p tsconfig.json", "typescript:module-augmentation": "node scripts/testModuleAugmentation.js" }, "dependencies": { diff --git a/scripts/jsonlint.mjs b/scripts/jsonlint.mjs index 040f960b737e29..5f25925de42ac7 100644 --- a/scripts/jsonlint.mjs +++ b/scripts/jsonlint.mjs @@ -19,7 +19,7 @@ async function run() { const filenames = await globby('**/*.json', { cwd: workspaceRoot, gitignore: true, - ignore: [...eslintignore, '**/tsconfig*.json', '**/tslint.json'], + ignore: [...eslintignore, '**/tsconfig*.json'], }); let passed = true; diff --git a/yarn.lock b/yarn.lock index 690b0de4f85f85..0c9837fb2fd2f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3335,6 +3335,17 @@ "@styled-system/core" "^5.1.2" "@styled-system/css" "^5.1.5" +"@stylistic/eslint-plugin-js@^1.4.1": + version "1.4.1" + resolved "https://registry.yarnpkg.com/@stylistic/eslint-plugin-js/-/eslint-plugin-js-1.4.1.tgz#c86a861b9858ee9e25b3d51792ef2f8ac5089048" + integrity sha512-WXHPEVw5PB7OML7cLwHJDEcCyLiP7vzKeBbSwmpHLK0oh0JYkoJfTg2hEdFuQT5rQxFy3KzCy9R1mZ0wgLjKrA== + dependencies: + acorn "^8.11.2" + escape-string-regexp "^4.0.0" + eslint-visitor-keys "^3.4.3" + espree "^9.6.1" + graphemer "^1.4.0" + "@swc/helpers@0.5.1": version "0.5.1" resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.1.tgz#e9031491aa3f26bfcc974a67f48bd456c8a5357a" @@ -4429,6 +4440,11 @@ acorn@^8.0.4, acorn@^8.4.1, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.9.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.9.0.tgz#78a16e3b2bcc198c10822786fa6679e245db5b59" integrity sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ== +acorn@^8.11.2: + version "8.11.2" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b" + integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w== + add-stream@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" From 64b9d1c14457f6bac08de3167e75fd51d123d060 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 27 Nov 2023 17:57:45 +0530 Subject: [PATCH 03/18] yarn deduplicate --- yarn.lock | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/yarn.lock b/yarn.lock index 0c9837fb2fd2f3..a43e5a50bed6cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4435,12 +4435,7 @@ acorn@^5.7.3: resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e" integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== -acorn@^8.0.4, acorn@^8.4.1, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.9.0: - version "8.9.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.9.0.tgz#78a16e3b2bcc198c10822786fa6679e245db5b59" - integrity sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ== - -acorn@^8.11.2: +acorn@^8.0.4, acorn@^8.11.2, acorn@^8.4.1, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.9.0: version "8.11.2" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b" integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w== From fc9cb290b48f3054972a7ff71b578530aa51f651 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 27 Nov 2023 18:31:18 +0530 Subject: [PATCH 04/18] fix syntax --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 89070a8777c57f..bed0d736e8ac06 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -294,7 +294,7 @@ module.exports = { { files: ['docs/**/*'], rules: { - '@stylistic/js/no-trailing-spaces': ['error', 2], + '@stylistic/js/no-trailing-spaces': ['error'], }, }, // Next.js entry points pages From f5022110322c0884738866f9dc925f0fec6e9671 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 27 Nov 2023 18:40:17 +0530 Subject: [PATCH 05/18] remove source files from command --- packages/mui-icons-material/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-icons-material/package.json b/packages/mui-icons-material/package.json index 57a4ee26c29cf8..6cef02704bf22d 100644 --- a/packages/mui-icons-material/package.json +++ b/packages/mui-icons-material/package.json @@ -43,7 +43,7 @@ "src:icons": "cross-env UV_THREADPOOL_SIZE=64 node ./builder.mjs --output-dir src --svg-dir material-icons --renameFilter ./renameFilters/material-design-icons.mjs && yarn build:lib:clean", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-icons-material/**/*.test.{mjs,js,ts,tsx}'", "test:built-typings": "tsc -p test/generated-types/tsconfig.json \"test/generated-types/*.{ts,tsx}\"", - "typescript": "tsc -p tsconfig.json \"src/**/*.{ts,tsx}\"" + "typescript": "tsc -p tsconfig.json" }, "dependencies": { "@babel/runtime": "^7.23.4" From d5c6f9f97f767dbde8921784d0f0ac94adfcf5bf Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 27 Nov 2023 18:49:34 +0530 Subject: [PATCH 06/18] remove path --- packages/mui-icons-material/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-icons-material/package.json b/packages/mui-icons-material/package.json index 6cef02704bf22d..4143d68afce973 100644 --- a/packages/mui-icons-material/package.json +++ b/packages/mui-icons-material/package.json @@ -42,7 +42,7 @@ "src:download": "node ./scripts/download.mjs", "src:icons": "cross-env UV_THREADPOOL_SIZE=64 node ./builder.mjs --output-dir src --svg-dir material-icons --renameFilter ./renameFilters/material-design-icons.mjs && yarn build:lib:clean", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-icons-material/**/*.test.{mjs,js,ts,tsx}'", - "test:built-typings": "tsc -p test/generated-types/tsconfig.json \"test/generated-types/*.{ts,tsx}\"", + "test:built-typings": "tsc -p test/generated-types/tsconfig.json", "typescript": "tsc -p tsconfig.json" }, "dependencies": { From 993f5023479808be3313c7256d66b6b595a2d238 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 27 Nov 2023 19:02:43 +0530 Subject: [PATCH 07/18] remove unnecessary tsconfig file --- packages/mui-icons-material/package.json | 3 +-- packages/mui-icons-material/tsconfig.json | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 packages/mui-icons-material/tsconfig.json diff --git a/packages/mui-icons-material/package.json b/packages/mui-icons-material/package.json index 4143d68afce973..44fbaa1daea208 100644 --- a/packages/mui-icons-material/package.json +++ b/packages/mui-icons-material/package.json @@ -42,8 +42,7 @@ "src:download": "node ./scripts/download.mjs", "src:icons": "cross-env UV_THREADPOOL_SIZE=64 node ./builder.mjs --output-dir src --svg-dir material-icons --renameFilter ./renameFilters/material-design-icons.mjs && yarn build:lib:clean", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-icons-material/**/*.test.{mjs,js,ts,tsx}'", - "test:built-typings": "tsc -p test/generated-types/tsconfig.json", - "typescript": "tsc -p tsconfig.json" + "test:built-typings": "tsc -p test/generated-types/tsconfig.json" }, "dependencies": { "@babel/runtime": "^7.23.4" diff --git a/packages/mui-icons-material/tsconfig.json b/packages/mui-icons-material/tsconfig.json deleted file mode 100644 index 4082f16a5d91ce..00000000000000 --- a/packages/mui-icons-material/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../../tsconfig.json" -} From 307d1f1e85d3d450d3e20bb9ddd7d79e80ffdc1d Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 27 Nov 2023 19:24:42 +0530 Subject: [PATCH 08/18] extend root tsconfig --- packages/mui-icons-material/test/generated-types/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/mui-icons-material/test/generated-types/tsconfig.json b/packages/mui-icons-material/test/generated-types/tsconfig.json index 2b6725f237455d..1d374abfc76f15 100644 --- a/packages/mui-icons-material/test/generated-types/tsconfig.json +++ b/packages/mui-icons-material/test/generated-types/tsconfig.json @@ -1,4 +1,5 @@ { + "extends": "../../../../tsconfig.json", "compilerOptions": { "module": "commonjs", "target": "es5", From 914c057e8341da8757d6d6d0293aa03004c88195 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 27 Nov 2023 19:51:37 +0530 Subject: [PATCH 09/18] fix tsconfig --- .../mui-icons-material/test/generated-types/tsconfig.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/mui-icons-material/test/generated-types/tsconfig.json b/packages/mui-icons-material/test/generated-types/tsconfig.json index 1d374abfc76f15..00118c1ceb953d 100644 --- a/packages/mui-icons-material/test/generated-types/tsconfig.json +++ b/packages/mui-icons-material/test/generated-types/tsconfig.json @@ -1,5 +1,4 @@ { - "extends": "../../../../tsconfig.json", "compilerOptions": { "module": "commonjs", "target": "es5", @@ -8,11 +7,8 @@ "moduleResolution": "node", "strict": true, "noEmit": true, - "baseUrl": "../../../", "noErrorTruncation": true, "paths": { - "@mui/material": ["./mui-material/src"], - "@mui/material/*": ["./mui-material/src/*"], "@mui/icons-material": ["./mui-icons-material/build"], "@mui/icons-material/*": ["./mui-icons-material/build/*"] } From 1421f9a82cc300cb6638ec054eff9aa44cc7caac Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Tue, 28 Nov 2023 11:55:17 +0530 Subject: [PATCH 10/18] fix tsconfig for icons typing test --- .../test/generated-types/tsconfig.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/mui-icons-material/test/generated-types/tsconfig.json b/packages/mui-icons-material/test/generated-types/tsconfig.json index 00118c1ceb953d..93866c4bbff210 100644 --- a/packages/mui-icons-material/test/generated-types/tsconfig.json +++ b/packages/mui-icons-material/test/generated-types/tsconfig.json @@ -1,4 +1,5 @@ { + "extends": "../../../../tsconfig.json", "compilerOptions": { "module": "commonjs", "target": "es5", @@ -7,11 +8,20 @@ "moduleResolution": "node", "strict": true, "noEmit": true, + "baseUrl": "../../../", "noErrorTruncation": true, "paths": { + "@mui/base": ["./mui-base/src"], + "@mui/base/*": ["./mui-base/src/*"], + "@mui/material": ["./mui-material/src"], + "@mui/material/*": ["./mui-material/src/*"], + "@mui/system": ["./mui-system/src"], + "@mui/system/*": ["./mui-system/src/*"], "@mui/icons-material": ["./mui-icons-material/build"], - "@mui/icons-material/*": ["./mui-icons-material/build/*"] - } + "@mui/icons-material/*": ["./mui-icons-material/build/*"], + "@mui/utils": ["./mui-utils/src"], + "@mui/utils/*": ["./mui-utils/src/*"], + }, }, "exclude": ["**/node_modules/"] } From ccdf6911b2e415e6ab8163ca26b7aa6949fbf410 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Tue, 28 Nov 2023 12:00:24 +0530 Subject: [PATCH 11/18] prettier --- .../mui-icons-material/test/generated-types/tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mui-icons-material/test/generated-types/tsconfig.json b/packages/mui-icons-material/test/generated-types/tsconfig.json index 93866c4bbff210..04643c80db434f 100644 --- a/packages/mui-icons-material/test/generated-types/tsconfig.json +++ b/packages/mui-icons-material/test/generated-types/tsconfig.json @@ -20,8 +20,8 @@ "@mui/icons-material": ["./mui-icons-material/build"], "@mui/icons-material/*": ["./mui-icons-material/build/*"], "@mui/utils": ["./mui-utils/src"], - "@mui/utils/*": ["./mui-utils/src/*"], - }, + "@mui/utils/*": ["./mui-utils/src/*"] + } }, "exclude": ["**/node_modules/"] } From c5dcc9acb99016a3d475015d9b0c18a0527014a1 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Tue, 28 Nov 2023 12:25:36 +0530 Subject: [PATCH 12/18] testing removing disable max-line-length rule of tslint --- packages/mui-material/src/colors/amber.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/mui-material/src/colors/amber.d.ts b/packages/mui-material/src/colors/amber.d.ts index 65c7f05c9b7e83..71a0d5161a86e5 100644 --- a/packages/mui-material/src/colors/amber.d.ts +++ b/packages/mui-material/src/colors/amber.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![amber 50](https://mui.com/static/colors-preview/amber-50-24x24.png) ![amber 100](https://mui.com/static/colors-preview/amber-100-24x24.png) ![amber 200](https://mui.com/static/colors-preview/amber-200-24x24.png) ![amber 300](https://mui.com/static/colors-preview/amber-300-24x24.png) ![amber 400](https://mui.com/static/colors-preview/amber-400-24x24.png) ![amber 500](https://mui.com/static/colors-preview/amber-500-24x24.png) ![amber 600](https://mui.com/static/colors-preview/amber-600-24x24.png) ![amber 700](https://mui.com/static/colors-preview/amber-700-24x24.png) ![amber 800](https://mui.com/static/colors-preview/amber-800-24x24.png) ![amber 900](https://mui.com/static/colors-preview/amber-900-24x24.png) ![amber A100](https://mui.com/static/colors-preview/amber-A100-24x24.png) ![amber A200](https://mui.com/static/colors-preview/amber-A200-24x24.png) ![amber A400](https://mui.com/static/colors-preview/amber-A400-24x24.png) ![amber A700](https://mui.com/static/colors-preview/amber-A700-24x24.png) */ From 0130b5551ae8397db6a797b07b4f7c982e0d5c1c Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Tue, 28 Nov 2023 12:39:08 +0530 Subject: [PATCH 13/18] remove all max-line-length instances --- packages/mui-material/src/colors/blue.d.ts | 1 - packages/mui-material/src/colors/blueGrey.d.ts | 1 - packages/mui-material/src/colors/brown.d.ts | 1 - packages/mui-material/src/colors/common.d.ts | 1 - packages/mui-material/src/colors/cyan.d.ts | 1 - packages/mui-material/src/colors/deepOrange.d.ts | 1 - packages/mui-material/src/colors/deepPurple.d.ts | 1 - packages/mui-material/src/colors/green.d.ts | 1 - packages/mui-material/src/colors/grey.d.ts | 1 - packages/mui-material/src/colors/indigo.d.ts | 1 - packages/mui-material/src/colors/lightBlue.d.ts | 1 - packages/mui-material/src/colors/lightGreen.d.ts | 1 - packages/mui-material/src/colors/lime.d.ts | 1 - packages/mui-material/src/colors/orange.d.ts | 1 - packages/mui-material/src/colors/pink.d.ts | 1 - packages/mui-material/src/colors/purple.d.ts | 1 - packages/mui-material/src/colors/red.d.ts | 1 - packages/mui-material/src/colors/teal.d.ts | 1 - packages/mui-material/src/colors/yellow.d.ts | 1 - scripts/buildColorTypes.js | 2 +- 20 files changed, 1 insertion(+), 20 deletions(-) diff --git a/packages/mui-material/src/colors/blue.d.ts b/packages/mui-material/src/colors/blue.d.ts index f4d1444a89934d..fefec760e0e96a 100644 --- a/packages/mui-material/src/colors/blue.d.ts +++ b/packages/mui-material/src/colors/blue.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![blue 50](https://mui.com/static/colors-preview/blue-50-24x24.png) ![blue 100](https://mui.com/static/colors-preview/blue-100-24x24.png) ![blue 200](https://mui.com/static/colors-preview/blue-200-24x24.png) ![blue 300](https://mui.com/static/colors-preview/blue-300-24x24.png) ![blue 400](https://mui.com/static/colors-preview/blue-400-24x24.png) ![blue 500](https://mui.com/static/colors-preview/blue-500-24x24.png) ![blue 600](https://mui.com/static/colors-preview/blue-600-24x24.png) ![blue 700](https://mui.com/static/colors-preview/blue-700-24x24.png) ![blue 800](https://mui.com/static/colors-preview/blue-800-24x24.png) ![blue 900](https://mui.com/static/colors-preview/blue-900-24x24.png) ![blue A100](https://mui.com/static/colors-preview/blue-A100-24x24.png) ![blue A200](https://mui.com/static/colors-preview/blue-A200-24x24.png) ![blue A400](https://mui.com/static/colors-preview/blue-A400-24x24.png) ![blue A700](https://mui.com/static/colors-preview/blue-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/blueGrey.d.ts b/packages/mui-material/src/colors/blueGrey.d.ts index b90527dd41affb..2bbc8f25299c91 100644 --- a/packages/mui-material/src/colors/blueGrey.d.ts +++ b/packages/mui-material/src/colors/blueGrey.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![blueGrey 50](https://mui.com/static/colors-preview/blueGrey-50-24x24.png) ![blueGrey 100](https://mui.com/static/colors-preview/blueGrey-100-24x24.png) ![blueGrey 200](https://mui.com/static/colors-preview/blueGrey-200-24x24.png) ![blueGrey 300](https://mui.com/static/colors-preview/blueGrey-300-24x24.png) ![blueGrey 400](https://mui.com/static/colors-preview/blueGrey-400-24x24.png) ![blueGrey 500](https://mui.com/static/colors-preview/blueGrey-500-24x24.png) ![blueGrey 600](https://mui.com/static/colors-preview/blueGrey-600-24x24.png) ![blueGrey 700](https://mui.com/static/colors-preview/blueGrey-700-24x24.png) ![blueGrey 800](https://mui.com/static/colors-preview/blueGrey-800-24x24.png) ![blueGrey 900](https://mui.com/static/colors-preview/blueGrey-900-24x24.png) ![blueGrey A100](https://mui.com/static/colors-preview/blueGrey-A100-24x24.png) ![blueGrey A200](https://mui.com/static/colors-preview/blueGrey-A200-24x24.png) ![blueGrey A400](https://mui.com/static/colors-preview/blueGrey-A400-24x24.png) ![blueGrey A700](https://mui.com/static/colors-preview/blueGrey-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/brown.d.ts b/packages/mui-material/src/colors/brown.d.ts index a8cf47ebc1aba8..b02ecf7a8a6d6c 100644 --- a/packages/mui-material/src/colors/brown.d.ts +++ b/packages/mui-material/src/colors/brown.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![brown 50](https://mui.com/static/colors-preview/brown-50-24x24.png) ![brown 100](https://mui.com/static/colors-preview/brown-100-24x24.png) ![brown 200](https://mui.com/static/colors-preview/brown-200-24x24.png) ![brown 300](https://mui.com/static/colors-preview/brown-300-24x24.png) ![brown 400](https://mui.com/static/colors-preview/brown-400-24x24.png) ![brown 500](https://mui.com/static/colors-preview/brown-500-24x24.png) ![brown 600](https://mui.com/static/colors-preview/brown-600-24x24.png) ![brown 700](https://mui.com/static/colors-preview/brown-700-24x24.png) ![brown 800](https://mui.com/static/colors-preview/brown-800-24x24.png) ![brown 900](https://mui.com/static/colors-preview/brown-900-24x24.png) ![brown A100](https://mui.com/static/colors-preview/brown-A100-24x24.png) ![brown A200](https://mui.com/static/colors-preview/brown-A200-24x24.png) ![brown A400](https://mui.com/static/colors-preview/brown-A400-24x24.png) ![brown A700](https://mui.com/static/colors-preview/brown-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/common.d.ts b/packages/mui-material/src/colors/common.d.ts index 79be4360fdde4f..73fc30b15bd3a8 100644 --- a/packages/mui-material/src/colors/common.d.ts +++ b/packages/mui-material/src/colors/common.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![common black](https://mui.com/static/colors-preview/common-black-24x24.png) ![common white](https://mui.com/static/colors-preview/common-white-24x24.png) */ diff --git a/packages/mui-material/src/colors/cyan.d.ts b/packages/mui-material/src/colors/cyan.d.ts index b5d519f7e77404..99e1e72f8dfc29 100644 --- a/packages/mui-material/src/colors/cyan.d.ts +++ b/packages/mui-material/src/colors/cyan.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![cyan 50](https://mui.com/static/colors-preview/cyan-50-24x24.png) ![cyan 100](https://mui.com/static/colors-preview/cyan-100-24x24.png) ![cyan 200](https://mui.com/static/colors-preview/cyan-200-24x24.png) ![cyan 300](https://mui.com/static/colors-preview/cyan-300-24x24.png) ![cyan 400](https://mui.com/static/colors-preview/cyan-400-24x24.png) ![cyan 500](https://mui.com/static/colors-preview/cyan-500-24x24.png) ![cyan 600](https://mui.com/static/colors-preview/cyan-600-24x24.png) ![cyan 700](https://mui.com/static/colors-preview/cyan-700-24x24.png) ![cyan 800](https://mui.com/static/colors-preview/cyan-800-24x24.png) ![cyan 900](https://mui.com/static/colors-preview/cyan-900-24x24.png) ![cyan A100](https://mui.com/static/colors-preview/cyan-A100-24x24.png) ![cyan A200](https://mui.com/static/colors-preview/cyan-A200-24x24.png) ![cyan A400](https://mui.com/static/colors-preview/cyan-A400-24x24.png) ![cyan A700](https://mui.com/static/colors-preview/cyan-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/deepOrange.d.ts b/packages/mui-material/src/colors/deepOrange.d.ts index b17ec8a323765c..3c389b3c930b5c 100644 --- a/packages/mui-material/src/colors/deepOrange.d.ts +++ b/packages/mui-material/src/colors/deepOrange.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![deepOrange 50](https://mui.com/static/colors-preview/deepOrange-50-24x24.png) ![deepOrange 100](https://mui.com/static/colors-preview/deepOrange-100-24x24.png) ![deepOrange 200](https://mui.com/static/colors-preview/deepOrange-200-24x24.png) ![deepOrange 300](https://mui.com/static/colors-preview/deepOrange-300-24x24.png) ![deepOrange 400](https://mui.com/static/colors-preview/deepOrange-400-24x24.png) ![deepOrange 500](https://mui.com/static/colors-preview/deepOrange-500-24x24.png) ![deepOrange 600](https://mui.com/static/colors-preview/deepOrange-600-24x24.png) ![deepOrange 700](https://mui.com/static/colors-preview/deepOrange-700-24x24.png) ![deepOrange 800](https://mui.com/static/colors-preview/deepOrange-800-24x24.png) ![deepOrange 900](https://mui.com/static/colors-preview/deepOrange-900-24x24.png) ![deepOrange A100](https://mui.com/static/colors-preview/deepOrange-A100-24x24.png) ![deepOrange A200](https://mui.com/static/colors-preview/deepOrange-A200-24x24.png) ![deepOrange A400](https://mui.com/static/colors-preview/deepOrange-A400-24x24.png) ![deepOrange A700](https://mui.com/static/colors-preview/deepOrange-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/deepPurple.d.ts b/packages/mui-material/src/colors/deepPurple.d.ts index 4fbc20ee25af8e..ed0adcdfd4e002 100644 --- a/packages/mui-material/src/colors/deepPurple.d.ts +++ b/packages/mui-material/src/colors/deepPurple.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![deepPurple 50](https://mui.com/static/colors-preview/deepPurple-50-24x24.png) ![deepPurple 100](https://mui.com/static/colors-preview/deepPurple-100-24x24.png) ![deepPurple 200](https://mui.com/static/colors-preview/deepPurple-200-24x24.png) ![deepPurple 300](https://mui.com/static/colors-preview/deepPurple-300-24x24.png) ![deepPurple 400](https://mui.com/static/colors-preview/deepPurple-400-24x24.png) ![deepPurple 500](https://mui.com/static/colors-preview/deepPurple-500-24x24.png) ![deepPurple 600](https://mui.com/static/colors-preview/deepPurple-600-24x24.png) ![deepPurple 700](https://mui.com/static/colors-preview/deepPurple-700-24x24.png) ![deepPurple 800](https://mui.com/static/colors-preview/deepPurple-800-24x24.png) ![deepPurple 900](https://mui.com/static/colors-preview/deepPurple-900-24x24.png) ![deepPurple A100](https://mui.com/static/colors-preview/deepPurple-A100-24x24.png) ![deepPurple A200](https://mui.com/static/colors-preview/deepPurple-A200-24x24.png) ![deepPurple A400](https://mui.com/static/colors-preview/deepPurple-A400-24x24.png) ![deepPurple A700](https://mui.com/static/colors-preview/deepPurple-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/green.d.ts b/packages/mui-material/src/colors/green.d.ts index 73efd38759f569..e5a7141955a0df 100644 --- a/packages/mui-material/src/colors/green.d.ts +++ b/packages/mui-material/src/colors/green.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![green 50](https://mui.com/static/colors-preview/green-50-24x24.png) ![green 100](https://mui.com/static/colors-preview/green-100-24x24.png) ![green 200](https://mui.com/static/colors-preview/green-200-24x24.png) ![green 300](https://mui.com/static/colors-preview/green-300-24x24.png) ![green 400](https://mui.com/static/colors-preview/green-400-24x24.png) ![green 500](https://mui.com/static/colors-preview/green-500-24x24.png) ![green 600](https://mui.com/static/colors-preview/green-600-24x24.png) ![green 700](https://mui.com/static/colors-preview/green-700-24x24.png) ![green 800](https://mui.com/static/colors-preview/green-800-24x24.png) ![green 900](https://mui.com/static/colors-preview/green-900-24x24.png) ![green A100](https://mui.com/static/colors-preview/green-A100-24x24.png) ![green A200](https://mui.com/static/colors-preview/green-A200-24x24.png) ![green A400](https://mui.com/static/colors-preview/green-A400-24x24.png) ![green A700](https://mui.com/static/colors-preview/green-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/grey.d.ts b/packages/mui-material/src/colors/grey.d.ts index ee0c251dabb968..50fa46ec52baf9 100644 --- a/packages/mui-material/src/colors/grey.d.ts +++ b/packages/mui-material/src/colors/grey.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![grey 50](https://mui.com/static/colors-preview/grey-50-24x24.png) ![grey 100](https://mui.com/static/colors-preview/grey-100-24x24.png) ![grey 200](https://mui.com/static/colors-preview/grey-200-24x24.png) ![grey 300](https://mui.com/static/colors-preview/grey-300-24x24.png) ![grey 400](https://mui.com/static/colors-preview/grey-400-24x24.png) ![grey 500](https://mui.com/static/colors-preview/grey-500-24x24.png) ![grey 600](https://mui.com/static/colors-preview/grey-600-24x24.png) ![grey 700](https://mui.com/static/colors-preview/grey-700-24x24.png) ![grey 800](https://mui.com/static/colors-preview/grey-800-24x24.png) ![grey 900](https://mui.com/static/colors-preview/grey-900-24x24.png) ![grey A100](https://mui.com/static/colors-preview/grey-A100-24x24.png) ![grey A200](https://mui.com/static/colors-preview/grey-A200-24x24.png) ![grey A400](https://mui.com/static/colors-preview/grey-A400-24x24.png) ![grey A700](https://mui.com/static/colors-preview/grey-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/indigo.d.ts b/packages/mui-material/src/colors/indigo.d.ts index 2e4c8ba8e9e6cf..33964bfd68119b 100644 --- a/packages/mui-material/src/colors/indigo.d.ts +++ b/packages/mui-material/src/colors/indigo.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![indigo 50](https://mui.com/static/colors-preview/indigo-50-24x24.png) ![indigo 100](https://mui.com/static/colors-preview/indigo-100-24x24.png) ![indigo 200](https://mui.com/static/colors-preview/indigo-200-24x24.png) ![indigo 300](https://mui.com/static/colors-preview/indigo-300-24x24.png) ![indigo 400](https://mui.com/static/colors-preview/indigo-400-24x24.png) ![indigo 500](https://mui.com/static/colors-preview/indigo-500-24x24.png) ![indigo 600](https://mui.com/static/colors-preview/indigo-600-24x24.png) ![indigo 700](https://mui.com/static/colors-preview/indigo-700-24x24.png) ![indigo 800](https://mui.com/static/colors-preview/indigo-800-24x24.png) ![indigo 900](https://mui.com/static/colors-preview/indigo-900-24x24.png) ![indigo A100](https://mui.com/static/colors-preview/indigo-A100-24x24.png) ![indigo A200](https://mui.com/static/colors-preview/indigo-A200-24x24.png) ![indigo A400](https://mui.com/static/colors-preview/indigo-A400-24x24.png) ![indigo A700](https://mui.com/static/colors-preview/indigo-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/lightBlue.d.ts b/packages/mui-material/src/colors/lightBlue.d.ts index 6ebacd4af139d4..a2ab80de40111a 100644 --- a/packages/mui-material/src/colors/lightBlue.d.ts +++ b/packages/mui-material/src/colors/lightBlue.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![lightBlue 50](https://mui.com/static/colors-preview/lightBlue-50-24x24.png) ![lightBlue 100](https://mui.com/static/colors-preview/lightBlue-100-24x24.png) ![lightBlue 200](https://mui.com/static/colors-preview/lightBlue-200-24x24.png) ![lightBlue 300](https://mui.com/static/colors-preview/lightBlue-300-24x24.png) ![lightBlue 400](https://mui.com/static/colors-preview/lightBlue-400-24x24.png) ![lightBlue 500](https://mui.com/static/colors-preview/lightBlue-500-24x24.png) ![lightBlue 600](https://mui.com/static/colors-preview/lightBlue-600-24x24.png) ![lightBlue 700](https://mui.com/static/colors-preview/lightBlue-700-24x24.png) ![lightBlue 800](https://mui.com/static/colors-preview/lightBlue-800-24x24.png) ![lightBlue 900](https://mui.com/static/colors-preview/lightBlue-900-24x24.png) ![lightBlue A100](https://mui.com/static/colors-preview/lightBlue-A100-24x24.png) ![lightBlue A200](https://mui.com/static/colors-preview/lightBlue-A200-24x24.png) ![lightBlue A400](https://mui.com/static/colors-preview/lightBlue-A400-24x24.png) ![lightBlue A700](https://mui.com/static/colors-preview/lightBlue-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/lightGreen.d.ts b/packages/mui-material/src/colors/lightGreen.d.ts index cf0002d3ff79a8..841ec1aaab1eb1 100644 --- a/packages/mui-material/src/colors/lightGreen.d.ts +++ b/packages/mui-material/src/colors/lightGreen.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![lightGreen 50](https://mui.com/static/colors-preview/lightGreen-50-24x24.png) ![lightGreen 100](https://mui.com/static/colors-preview/lightGreen-100-24x24.png) ![lightGreen 200](https://mui.com/static/colors-preview/lightGreen-200-24x24.png) ![lightGreen 300](https://mui.com/static/colors-preview/lightGreen-300-24x24.png) ![lightGreen 400](https://mui.com/static/colors-preview/lightGreen-400-24x24.png) ![lightGreen 500](https://mui.com/static/colors-preview/lightGreen-500-24x24.png) ![lightGreen 600](https://mui.com/static/colors-preview/lightGreen-600-24x24.png) ![lightGreen 700](https://mui.com/static/colors-preview/lightGreen-700-24x24.png) ![lightGreen 800](https://mui.com/static/colors-preview/lightGreen-800-24x24.png) ![lightGreen 900](https://mui.com/static/colors-preview/lightGreen-900-24x24.png) ![lightGreen A100](https://mui.com/static/colors-preview/lightGreen-A100-24x24.png) ![lightGreen A200](https://mui.com/static/colors-preview/lightGreen-A200-24x24.png) ![lightGreen A400](https://mui.com/static/colors-preview/lightGreen-A400-24x24.png) ![lightGreen A700](https://mui.com/static/colors-preview/lightGreen-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/lime.d.ts b/packages/mui-material/src/colors/lime.d.ts index d6cd0795de5390..208ff8013d3269 100644 --- a/packages/mui-material/src/colors/lime.d.ts +++ b/packages/mui-material/src/colors/lime.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![lime 50](https://mui.com/static/colors-preview/lime-50-24x24.png) ![lime 100](https://mui.com/static/colors-preview/lime-100-24x24.png) ![lime 200](https://mui.com/static/colors-preview/lime-200-24x24.png) ![lime 300](https://mui.com/static/colors-preview/lime-300-24x24.png) ![lime 400](https://mui.com/static/colors-preview/lime-400-24x24.png) ![lime 500](https://mui.com/static/colors-preview/lime-500-24x24.png) ![lime 600](https://mui.com/static/colors-preview/lime-600-24x24.png) ![lime 700](https://mui.com/static/colors-preview/lime-700-24x24.png) ![lime 800](https://mui.com/static/colors-preview/lime-800-24x24.png) ![lime 900](https://mui.com/static/colors-preview/lime-900-24x24.png) ![lime A100](https://mui.com/static/colors-preview/lime-A100-24x24.png) ![lime A200](https://mui.com/static/colors-preview/lime-A200-24x24.png) ![lime A400](https://mui.com/static/colors-preview/lime-A400-24x24.png) ![lime A700](https://mui.com/static/colors-preview/lime-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/orange.d.ts b/packages/mui-material/src/colors/orange.d.ts index b93ebc1cd592eb..b235c61eb497e8 100644 --- a/packages/mui-material/src/colors/orange.d.ts +++ b/packages/mui-material/src/colors/orange.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![orange 50](https://mui.com/static/colors-preview/orange-50-24x24.png) ![orange 100](https://mui.com/static/colors-preview/orange-100-24x24.png) ![orange 200](https://mui.com/static/colors-preview/orange-200-24x24.png) ![orange 300](https://mui.com/static/colors-preview/orange-300-24x24.png) ![orange 400](https://mui.com/static/colors-preview/orange-400-24x24.png) ![orange 500](https://mui.com/static/colors-preview/orange-500-24x24.png) ![orange 600](https://mui.com/static/colors-preview/orange-600-24x24.png) ![orange 700](https://mui.com/static/colors-preview/orange-700-24x24.png) ![orange 800](https://mui.com/static/colors-preview/orange-800-24x24.png) ![orange 900](https://mui.com/static/colors-preview/orange-900-24x24.png) ![orange A100](https://mui.com/static/colors-preview/orange-A100-24x24.png) ![orange A200](https://mui.com/static/colors-preview/orange-A200-24x24.png) ![orange A400](https://mui.com/static/colors-preview/orange-A400-24x24.png) ![orange A700](https://mui.com/static/colors-preview/orange-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/pink.d.ts b/packages/mui-material/src/colors/pink.d.ts index 47f5c33bdeb012..34df2e8cac5fd1 100644 --- a/packages/mui-material/src/colors/pink.d.ts +++ b/packages/mui-material/src/colors/pink.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![pink 50](https://mui.com/static/colors-preview/pink-50-24x24.png) ![pink 100](https://mui.com/static/colors-preview/pink-100-24x24.png) ![pink 200](https://mui.com/static/colors-preview/pink-200-24x24.png) ![pink 300](https://mui.com/static/colors-preview/pink-300-24x24.png) ![pink 400](https://mui.com/static/colors-preview/pink-400-24x24.png) ![pink 500](https://mui.com/static/colors-preview/pink-500-24x24.png) ![pink 600](https://mui.com/static/colors-preview/pink-600-24x24.png) ![pink 700](https://mui.com/static/colors-preview/pink-700-24x24.png) ![pink 800](https://mui.com/static/colors-preview/pink-800-24x24.png) ![pink 900](https://mui.com/static/colors-preview/pink-900-24x24.png) ![pink A100](https://mui.com/static/colors-preview/pink-A100-24x24.png) ![pink A200](https://mui.com/static/colors-preview/pink-A200-24x24.png) ![pink A400](https://mui.com/static/colors-preview/pink-A400-24x24.png) ![pink A700](https://mui.com/static/colors-preview/pink-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/purple.d.ts b/packages/mui-material/src/colors/purple.d.ts index 25a8fc3622e174..3aeaadf1e41dce 100644 --- a/packages/mui-material/src/colors/purple.d.ts +++ b/packages/mui-material/src/colors/purple.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![purple 50](https://mui.com/static/colors-preview/purple-50-24x24.png) ![purple 100](https://mui.com/static/colors-preview/purple-100-24x24.png) ![purple 200](https://mui.com/static/colors-preview/purple-200-24x24.png) ![purple 300](https://mui.com/static/colors-preview/purple-300-24x24.png) ![purple 400](https://mui.com/static/colors-preview/purple-400-24x24.png) ![purple 500](https://mui.com/static/colors-preview/purple-500-24x24.png) ![purple 600](https://mui.com/static/colors-preview/purple-600-24x24.png) ![purple 700](https://mui.com/static/colors-preview/purple-700-24x24.png) ![purple 800](https://mui.com/static/colors-preview/purple-800-24x24.png) ![purple 900](https://mui.com/static/colors-preview/purple-900-24x24.png) ![purple A100](https://mui.com/static/colors-preview/purple-A100-24x24.png) ![purple A200](https://mui.com/static/colors-preview/purple-A200-24x24.png) ![purple A400](https://mui.com/static/colors-preview/purple-A400-24x24.png) ![purple A700](https://mui.com/static/colors-preview/purple-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/red.d.ts b/packages/mui-material/src/colors/red.d.ts index 1accdf0d4b1656..afdb40b418ef23 100644 --- a/packages/mui-material/src/colors/red.d.ts +++ b/packages/mui-material/src/colors/red.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![red 50](https://mui.com/static/colors-preview/red-50-24x24.png) ![red 100](https://mui.com/static/colors-preview/red-100-24x24.png) ![red 200](https://mui.com/static/colors-preview/red-200-24x24.png) ![red 300](https://mui.com/static/colors-preview/red-300-24x24.png) ![red 400](https://mui.com/static/colors-preview/red-400-24x24.png) ![red 500](https://mui.com/static/colors-preview/red-500-24x24.png) ![red 600](https://mui.com/static/colors-preview/red-600-24x24.png) ![red 700](https://mui.com/static/colors-preview/red-700-24x24.png) ![red 800](https://mui.com/static/colors-preview/red-800-24x24.png) ![red 900](https://mui.com/static/colors-preview/red-900-24x24.png) ![red A100](https://mui.com/static/colors-preview/red-A100-24x24.png) ![red A200](https://mui.com/static/colors-preview/red-A200-24x24.png) ![red A400](https://mui.com/static/colors-preview/red-A400-24x24.png) ![red A700](https://mui.com/static/colors-preview/red-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/teal.d.ts b/packages/mui-material/src/colors/teal.d.ts index 82f2f463594bcf..5890b4918b9d35 100644 --- a/packages/mui-material/src/colors/teal.d.ts +++ b/packages/mui-material/src/colors/teal.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![teal 50](https://mui.com/static/colors-preview/teal-50-24x24.png) ![teal 100](https://mui.com/static/colors-preview/teal-100-24x24.png) ![teal 200](https://mui.com/static/colors-preview/teal-200-24x24.png) ![teal 300](https://mui.com/static/colors-preview/teal-300-24x24.png) ![teal 400](https://mui.com/static/colors-preview/teal-400-24x24.png) ![teal 500](https://mui.com/static/colors-preview/teal-500-24x24.png) ![teal 600](https://mui.com/static/colors-preview/teal-600-24x24.png) ![teal 700](https://mui.com/static/colors-preview/teal-700-24x24.png) ![teal 800](https://mui.com/static/colors-preview/teal-800-24x24.png) ![teal 900](https://mui.com/static/colors-preview/teal-900-24x24.png) ![teal A100](https://mui.com/static/colors-preview/teal-A100-24x24.png) ![teal A200](https://mui.com/static/colors-preview/teal-A200-24x24.png) ![teal A400](https://mui.com/static/colors-preview/teal-A400-24x24.png) ![teal A700](https://mui.com/static/colors-preview/teal-A700-24x24.png) */ diff --git a/packages/mui-material/src/colors/yellow.d.ts b/packages/mui-material/src/colors/yellow.d.ts index 7460d471d0f2ce..c9a264d739ae91 100644 --- a/packages/mui-material/src/colors/yellow.d.ts +++ b/packages/mui-material/src/colors/yellow.d.ts @@ -1,4 +1,3 @@ -/* tslint:disable max-line-length */ /** * ![yellow 50](https://mui.com/static/colors-preview/yellow-50-24x24.png) ![yellow 100](https://mui.com/static/colors-preview/yellow-100-24x24.png) ![yellow 200](https://mui.com/static/colors-preview/yellow-200-24x24.png) ![yellow 300](https://mui.com/static/colors-preview/yellow-300-24x24.png) ![yellow 400](https://mui.com/static/colors-preview/yellow-400-24x24.png) ![yellow 500](https://mui.com/static/colors-preview/yellow-500-24x24.png) ![yellow 600](https://mui.com/static/colors-preview/yellow-600-24x24.png) ![yellow 700](https://mui.com/static/colors-preview/yellow-700-24x24.png) ![yellow 800](https://mui.com/static/colors-preview/yellow-800-24x24.png) ![yellow 900](https://mui.com/static/colors-preview/yellow-900-24x24.png) ![yellow A100](https://mui.com/static/colors-preview/yellow-A100-24x24.png) ![yellow A200](https://mui.com/static/colors-preview/yellow-A200-24x24.png) ![yellow A400](https://mui.com/static/colors-preview/yellow-A400-24x24.png) ![yellow A700](https://mui.com/static/colors-preview/yellow-A700-24x24.png) */ diff --git a/scripts/buildColorTypes.js b/scripts/buildColorTypes.js index 664af6565ce86e..d0aa167eebbf24 100644 --- a/scripts/buildColorTypes.js +++ b/scripts/buildColorTypes.js @@ -12,7 +12,7 @@ function getColorHref(name, variant) { function buildColorType(name, variants) { const typesFilename = path.resolve(__dirname, `../packages/mui-material/src/colors/${name}.d.ts`); - const typescript = `/* tslint:disable max-line-length */ + const typescript = ` /** * ${Object.entries(variants) .map((entry) => { From ee1c0afb484c7cceb023ba4561898d1a21357739 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Tue, 28 Nov 2023 12:57:47 +0530 Subject: [PATCH 14/18] remove tslint rules --- packages/mui-system/src/createTheme/createSpacing.ts | 2 -- packages/mui-types/index.d.ts | 1 - packages/mui-utils/src/useEventCallback/useEventCallback.ts | 1 - 3 files changed, 4 deletions(-) diff --git a/packages/mui-system/src/createTheme/createSpacing.ts b/packages/mui-system/src/createTheme/createSpacing.ts index ef7944467d0838..90387c81ce51a7 100644 --- a/packages/mui-system/src/createTheme/createSpacing.ts +++ b/packages/mui-system/src/createTheme/createSpacing.ts @@ -11,7 +11,6 @@ export type SpacingArgument = number | string; // The different signatures imply different meaning for their arguments that can't be expressed structurally. // We express the difference with variable names. -/* tslint:disable:unified-signatures */ export interface Spacing { (): string; (value: number): string; @@ -24,7 +23,6 @@ export interface Spacing { left: SpacingArgument, ): string; } -/* tslint:enable:unified-signatures */ export default function createSpacing(spacingInput: SpacingOptions = 8): Spacing { // Already transformed. diff --git a/packages/mui-types/index.d.ts b/packages/mui-types/index.d.ts index 4164130011adc7..470b8bd91abf36 100644 --- a/packages/mui-types/index.d.ts +++ b/packages/mui-types/index.d.ts @@ -144,7 +144,6 @@ export interface OverridableTypeMap { * Simplifies the display of a type (without modifying it). * Taken from https://effectivetypescript.com/2022/02/25/gentips-4-display/ */ -// tslint:disable-next-line: ban-types export type Simplify = T extends Function ? T : { [K in keyof T]: T[K] }; /** diff --git a/packages/mui-utils/src/useEventCallback/useEventCallback.ts b/packages/mui-utils/src/useEventCallback/useEventCallback.ts index f81e1a23759a2e..6b7bdb00e6ec3e 100644 --- a/packages/mui-utils/src/useEventCallback/useEventCallback.ts +++ b/packages/mui-utils/src/useEventCallback/useEventCallback.ts @@ -21,7 +21,6 @@ function useEventCallback( }); return React.useRef((...args: Args) => // @ts-expect-error hide `this` - // tslint:disable-next-line:ban-comma-operator (0, ref.current!)(...args), ).current; } From f89e795933826d60f85fbf9ea4acbbf754cfdf3b Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Tue, 28 Nov 2023 14:28:43 +0530 Subject: [PATCH 15/18] run tsc for icon-material package --- packages/mui-icons-material/package.json | 3 ++- packages/mui-icons-material/tsconfig.json | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packages/mui-icons-material/tsconfig.json diff --git a/packages/mui-icons-material/package.json b/packages/mui-icons-material/package.json index 44fbaa1daea208..4143d68afce973 100644 --- a/packages/mui-icons-material/package.json +++ b/packages/mui-icons-material/package.json @@ -42,7 +42,8 @@ "src:download": "node ./scripts/download.mjs", "src:icons": "cross-env UV_THREADPOOL_SIZE=64 node ./builder.mjs --output-dir src --svg-dir material-icons --renameFilter ./renameFilters/material-design-icons.mjs && yarn build:lib:clean", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-icons-material/**/*.test.{mjs,js,ts,tsx}'", - "test:built-typings": "tsc -p test/generated-types/tsconfig.json" + "test:built-typings": "tsc -p test/generated-types/tsconfig.json", + "typescript": "tsc -p tsconfig.json" }, "dependencies": { "@babel/runtime": "^7.23.4" diff --git a/packages/mui-icons-material/tsconfig.json b/packages/mui-icons-material/tsconfig.json new file mode 100644 index 00000000000000..52d43eaaa9b975 --- /dev/null +++ b/packages/mui-icons-material/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../../tsconfig.json", + "include": ["src/**/*"] +} From 0c12d8b0f69b46e7a2cab54382b3e9e6444f7402 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Tue, 28 Nov 2023 14:39:56 +0530 Subject: [PATCH 16/18] remove unnecessary test folder includes in tsconfigs --- packages/mui-private-theming/tsconfig.json | 2 +- packages/mui-styled-engine-sc/tsconfig.json | 2 +- packages/mui-styled-engine/tsconfig.json | 2 +- packages/zero-next-plugin/tsconfig.json | 2 +- packages/zero-runtime/tsconfig.json | 2 +- packages/zero-tag-processor/tsconfig.json | 2 +- packages/zero-vite-plugin/tsconfig.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/mui-private-theming/tsconfig.json b/packages/mui-private-theming/tsconfig.json index ee756997748e1c..52d43eaaa9b975 100644 --- a/packages/mui-private-theming/tsconfig.json +++ b/packages/mui-private-theming/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*", "test/**/*"] + "include": ["src/**/*"] } diff --git a/packages/mui-styled-engine-sc/tsconfig.json b/packages/mui-styled-engine-sc/tsconfig.json index ee756997748e1c..52d43eaaa9b975 100644 --- a/packages/mui-styled-engine-sc/tsconfig.json +++ b/packages/mui-styled-engine-sc/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*", "test/**/*"] + "include": ["src/**/*"] } diff --git a/packages/mui-styled-engine/tsconfig.json b/packages/mui-styled-engine/tsconfig.json index ee756997748e1c..52d43eaaa9b975 100644 --- a/packages/mui-styled-engine/tsconfig.json +++ b/packages/mui-styled-engine/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*", "test/**/*"] + "include": ["src/**/*"] } diff --git a/packages/zero-next-plugin/tsconfig.json b/packages/zero-next-plugin/tsconfig.json index 79f9a30c3552bd..f1b9f4b0310a39 100644 --- a/packages/zero-next-plugin/tsconfig.json +++ b/packages/zero-next-plugin/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig", - "include": ["src/**/*", "test/**/*"], + "include": ["src/**/*"], "compilerOptions": { "lib": ["ES2022", "DOM"], "target": "ES2015", diff --git a/packages/zero-runtime/tsconfig.json b/packages/zero-runtime/tsconfig.json index 4f80efafeb94ed..d9f8bd647b62bd 100644 --- a/packages/zero-runtime/tsconfig.json +++ b/packages/zero-runtime/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*", "test/**/*"], + "include": ["src/**/*"], "compilerOptions": { "types": ["mocha", "node", "chai", "react"] } diff --git a/packages/zero-tag-processor/tsconfig.json b/packages/zero-tag-processor/tsconfig.json index 0b3c7e1b055d47..f436e1e32dc6e6 100644 --- a/packages/zero-tag-processor/tsconfig.json +++ b/packages/zero-tag-processor/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*", "test/**/*"], + "include": ["src/**/*"], "compilerOptions": { "lib": ["ES2022", "DOM"], "target": "ES2015", diff --git a/packages/zero-vite-plugin/tsconfig.json b/packages/zero-vite-plugin/tsconfig.json index 0b3c7e1b055d47..f436e1e32dc6e6 100644 --- a/packages/zero-vite-plugin/tsconfig.json +++ b/packages/zero-vite-plugin/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*", "test/**/*"], + "include": ["src/**/*"], "compilerOptions": { "lib": ["ES2022", "DOM"], "target": "ES2015", From 5fdbe4387a29b5c7a14ca6936c903d70d7457084 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Wed, 29 Nov 2023 12:23:43 +0530 Subject: [PATCH 17/18] remove unnecessary stylistic rules already handled by prettier --- .eslintrc.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index bed0d736e8ac06..48f261573e5a3b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -35,7 +35,6 @@ module.exports = { 'eslint-plugin-react-hooks', '@typescript-eslint/eslint-plugin', 'eslint-plugin-filenames', - '@stylistic/js', ], settings: { 'import/resolver': { @@ -209,9 +208,6 @@ module.exports = { 'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }], 'lines-around-directive': 'off', - - semi: 'off', - '@typescript-eslint/semi': 'error', }, overrides: [ { @@ -291,12 +287,6 @@ module.exports = { '@next/next/no-img-element': 'off', }, }, - { - files: ['docs/**/*'], - rules: { - '@stylistic/js/no-trailing-spaces': ['error'], - }, - }, // Next.js entry points pages { files: ['docs/pages/**/*.js'], From 549a487f0a8a38d29edfcc598d08b07748c04d16 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Wed, 29 Nov 2023 12:32:16 +0530 Subject: [PATCH 18/18] remove stylistic eslint plugin js --- package.json | 1 - yarn.lock | 13 +------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/package.json b/package.json index 718c650cc3ec3d..f61e098e302a77 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,6 @@ "@playwright/test": "1.40.0", "@slack/bolt": "^3.15.0", "@slack/web-api": "^6.10.0", - "@stylistic/eslint-plugin-js": "^1.4.1", "@types/enzyme": "^3.10.16", "@types/fs-extra": "^11.0.4", "@types/lodash": "^4.14.202", diff --git a/yarn.lock b/yarn.lock index a43e5a50bed6cb..a9ca692fd36130 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3335,17 +3335,6 @@ "@styled-system/core" "^5.1.2" "@styled-system/css" "^5.1.5" -"@stylistic/eslint-plugin-js@^1.4.1": - version "1.4.1" - resolved "https://registry.yarnpkg.com/@stylistic/eslint-plugin-js/-/eslint-plugin-js-1.4.1.tgz#c86a861b9858ee9e25b3d51792ef2f8ac5089048" - integrity sha512-WXHPEVw5PB7OML7cLwHJDEcCyLiP7vzKeBbSwmpHLK0oh0JYkoJfTg2hEdFuQT5rQxFy3KzCy9R1mZ0wgLjKrA== - dependencies: - acorn "^8.11.2" - escape-string-regexp "^4.0.0" - eslint-visitor-keys "^3.4.3" - espree "^9.6.1" - graphemer "^1.4.0" - "@swc/helpers@0.5.1": version "0.5.1" resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.1.tgz#e9031491aa3f26bfcc974a67f48bd456c8a5357a" @@ -4435,7 +4424,7 @@ acorn@^5.7.3: resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e" integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== -acorn@^8.0.4, acorn@^8.11.2, acorn@^8.4.1, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.9.0: +acorn@^8.0.4, acorn@^8.4.1, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.9.0: version "8.11.2" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b" integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==