{"_id":"stylelint-media-use-custom-media","_rev":"9-830a2da23570606dc478f4559382be43","name":"stylelint-media-use-custom-media","dist-tags":{"latest":"4.1.0"},"versions":{"1.0.0":{"name":"stylelint-media-use-custom-media","version":"1.0.0","keywords":["stylelint","stylelint-plugin","css","use","custom","media","custom-media","queries","query","variables","variable","vars","var"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"stylelint-media-use-custom-media@1.0.0","maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"homepage":"https://github.com/csstools/stylelint-media-use-custom-media#readme","bugs":{"url":"https://github.com/csstools/stylelint-media-use-custom-media/issues"},"dist":{"shasum":"9bcc66bd77208b3594b7b7abcddfdc7a1c68f1a2","tarball":"https://registry.npmjs.org/stylelint-media-use-custom-media/-/stylelint-media-use-custom-media-1.0.0.tgz","fileCount":8,"integrity":"sha512-CGPa5bztGo5EnvIpV4MKfyBpYqakqO5y/dOpuJTLCoqXQWKGwcb5cT5NQdPS7y9T51jyxn9ajVO6boOGrEH42g==","signatures":[{"sig":"MEQCICHtXgx1Lg7zzLIEI5mtFst58uwPFXF/y2ilpFc/dEk4AiA+knzLrXhJXaAsfzfdq5A2pDEq+L6kxyB0pLYHn+Jq7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbquTwCRA9TVsSAnZWagAAh2UQAJrdJ4DB1ApHjFskqdej\ny1/mEqeTfbeaRnkYVttNMTl6cF7WsKKAME7Fp/TXT+ad1arKtoyF8eH1bMw4\n1MnZffmI7E1Vae5sXJJi6AWMKBs++puiBPpA0XXYJwVbE+3XkEhQh3zDPIRK\n9LZ42/sLonrNuS4hyfP0NvEBc+FDDPyQbOQ+T1JWYKV8GKBL72YceX1JNrM8\nkEu2Sp8ODi6djUqgGdVRlAFUzWhQZIdBaQHQiXW5WFVws4R8sl2SoQbhmgP6\nzKGZy2bdqNZGwCxLye5FvPI8HQ+Qbue3tae5PmvS7oxdUYlChkQ5+g/ye062\nEx6uBkFkCxOQFtXDKbeRHnUL+ssDwpzhiedx1OmdCVgyyUzn86vxnOBrjH1Z\nF9hYuxvAMYHIViNbxTXlZEC1pPeBujyWmx8N4R4uNftb3Lfb49G/ccGM+tu6\n/xFo7vumqOQ90VfsNRLEUqrGuqsHi9wTFEVwyUrZy9u53+ZUPvet8c9yAwyG\n2sP3V9pEa/6O6CH0cawr1IjvNBQEiWcmP3wYX4x3kEvsOr2IEbXHe83ldadg\nbfEZYykr4t2WJLuSvq1h9ce0qU2IRGWXaJBYf7uC2ftQcTgzd7J+PAFULJku\nu3pyhghJV/ua/pfCQrf7OTqHClwE8HxryCUQBaHM9V8807VU7KuwoGiBwrul\nT1eq\r\n=lwdI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs.js","module":"index.es.mjs","engines":{"node":">=6.0.0"},"gitHead":"a1378da962ab8d33129fe269f275f6fa7d182117","scripts":{"test":"echo 'Running tests...'; npm run test:js && npm run test:tape","pretest":"rollup -c .rollup.js --silent","test:js":"eslint *.js lib/*.js --cache --ignore-path .gitignore --quiet","test:tape":"tape ./.tape.js | tap-spec","prepublishOnly":"npm test"},"_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"repository":{"url":"git+https://github.com/csstools/stylelint-media-use-custom-media.git","type":"git"},"_npmVersion":"6.4.1","description":"Enforce usage of custom media queries in CSS","directories":{},"_nodeVersion":"10.11.0","dependencies":{},"eslintConfig":{"parser":"babel-eslint","extends":"dev"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^5.6.0","rollup":"^0.66.2","tap-spec":"^5.0.0","stylelint":"^9.5.0","pre-commit":"^1.2.2","@babel/core":"^7.1.0","babel-eslint":"^10.0.0","@babel/preset-env":"^7.1.0","eslint-config-dev":"^2.0.0","rollup-plugin-babel":"^4.0.3","stylelint-test-rule-tape":"^0.2.0","@babel/plugin-syntax-dynamic-import":"^7.0.0"},"peerDependencies":{"stylelint":"^9.5.0"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-media-use-custom-media_1.0.0_1537926383763_0.15467015095177783","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"stylelint-media-use-custom-media","version":"2.0.0","keywords":["stylelint","stylelint-plugin","css","use","custom","media","custom-media","queries","query","variables","variable","vars","var"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"stylelint-media-use-custom-media@2.0.0","maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"homepage":"https://github.com/csstools/stylelint-media-use-custom-media#readme","bugs":{"url":"https://github.com/csstools/stylelint-media-use-custom-media/issues"},"dist":{"shasum":"1b911933a23e72f2b64f9e58ac1697fbc6fe1442","tarball":"https://registry.npmjs.org/stylelint-media-use-custom-media/-/stylelint-media-use-custom-media-2.0.0.tgz","fileCount":8,"integrity":"sha512-G7Hwma8HIMFJOChqrX9ie8hAGbtEMUbEjuiaR3olHIXjloDWqYlFHIJKsCyyckigkm+4LtCwtZDQASrVY4pRBg==","signatures":[{"sig":"MEUCIQDmGEMfaTKpVRbcSESSkrVev512PUyQKD/OOMNBtuwzYwIgWGv0yY+M7i9lWkh4eXVMdyYZm9XytOmDgdMKBy+wKqc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuhorCRA9TVsSAnZWagAAszIP/RbbbgVot3EkdlNBICo+\nB9goeYeR1JHYujn2LgTZGHLk0jv5Dt1hS2r/+eGivS+P8MLAArK5N9Wz07Am\nlTPOVQIW817S1SG0Inbd5pDf4HNprHt/JcSE8m5C4c4sfLn+akShp0SEJ3ak\ngA7TmKCtwIaADTdj9+SpfnM/XToo2mZzjFsc5T7bJ+t8nxvdBRNJuxEbLMiX\nlWCHO2fGPxAChGw165omhPPCw5OdVJB5GakmyTjLvVXocLIHB39wBk97w/YA\n7TODQeYRmltgz5KxiCXtINyzVtX0hkRJdrJXiZ+hgcjHavLvRY2NwZHmiDxB\nEac6CAO7NlWbaXVtejgXl5ZEapAbzuGxzANOVDv6jdWZPlaLqT9Kr/jbCL/A\nEJr2jsemLR145V/kObyCegbJQY8OfGiSJct7195SPwecI2ndKL6xA5rRdSZc\nYHVR6uvBIneSDZd7vfIyiKizmBES2dkYLJhmVFIACckfsomjFIFY87En3gH0\nXjb5JeyUzbJQEg1e8OBuwyBFpJRi9nJ/n+sNhCBS0d3HCtdB6WdKnwrr0egA\n+/X974C9qXXLuRJEU8o6TaCwaeV9oy0YYP4Y4PrOsPkTRSkKIyxhrwjbtBuG\njUBgf2fLYfhG24FFfCtOSzxVBTEGlzRnov/6vSU7DNW7I0n9PBTu6mBtXJ8o\nCcmO\r\n=9Q+y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","module":"index.mjs","engines":{"node":">=10.0.0"},"gitHead":"eb3ba2fdb6bdf380aa5713201242dd7aaa2c84aa","scripts":{"test":"npm run test:js && npm run test:tape","pretest":"rollup -c .rollup.js --silent","test:js":"eslint src/*.js src/lib/*.js --cache --ignore-path .gitignore --quiet","test:tape":"tape ./.tape.js | tap-spec","prepublishOnly":"npm test"},"_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"repository":{"url":"git+https://github.com/csstools/stylelint-media-use-custom-media.git","type":"git"},"_npmVersion":"6.14.4","description":"Enforce usage of custom media queries in CSS","directories":{},"_nodeVersion":"14.2.0","dependencies":{},"eslintConfig":{"parser":"babel-eslint","extends":"dev"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.0.0","rollup":"^2.9.1","tap-spec":"^5.0.0","stylelint":"^10.0.1","pre-commit":"^1.2.2","@babel/core":"^7.9.6","babel-eslint":"^10.1.0","@babel/preset-env":"^7.9.6","eslint-config-dev":"^2.0.0","rollup-plugin-babel":"^4.4.0","stylelint-test-rule-tape":"^0.2.0","@babel/plugin-syntax-dynamic-import":"^7.8.3"},"peerDependencies":{"stylelint":"10 - 13"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-media-use-custom-media_2.0.0_1589254699184_0.5643642366814621","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"stylelint-media-use-custom-media","version":"2.0.1","keywords":["stylelint","stylelint-plugin","css","use","custom","media","custom-media","queries","query","variables","variable","vars","var"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"stylelint-media-use-custom-media@2.0.1","maintainers":[{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"homepage":"https://github.com/csstools/stylelint-media-use-custom-media#readme","bugs":{"url":"https://github.com/csstools/stylelint-media-use-custom-media/issues"},"dist":{"shasum":"41a835cc00c1779310fdde29cc8b33906e6bff44","tarball":"https://registry.npmjs.org/stylelint-media-use-custom-media/-/stylelint-media-use-custom-media-2.0.1.tgz","fileCount":7,"integrity":"sha512-DWxw48xIRNJ8SoJkNU8GPMv7ZEMjqww1NiQP13TvQ5m1UfAkTeJFJzENCGkKnp6LJipJhhLeiUiVE5yQ6rbYPw==","signatures":[{"sig":"MEUCIArkwf6rpRsI7z4qdI3nfS9QaHGlB4wNH0UJT+XvTQvBAiEAovHogmVr0c2Qc+BWYJ3m0SOO70OdGAiDkaMkH26hocg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84380,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaH1lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpU1g/9Hi9hDHWTb2JP8IYFRHXFEdn7T6ZZLWYdSKLCXlVO5ZfKJsXP\r\nhv5ERyTTHfszSlQWEuDqTl5qwoQV36hk8XQqkKYDE6bwyc3RXNCxyERgW6WE\r\nOtszWaBb/G7oe14BOcuPmEK2Hn04PO6L/ykRM88yOLwy3zcUDYA2YdkpRmdm\r\nEVb7HgOSAlqQjwXEPRJUizTyFoiBS1ZuaFfN6XXMyLykQruHyHHVJz7k4AYX\r\nn30QdeJ9JRpBtNVHPeFwVOo18gYji1kyYEr6akb9W+6h9/ukIkyh+k7qFO2b\r\n6jQinbqOaMpD89ouFo2oHHwoKYcILCmrxnt34/bjuEH0qEkTBGmP0sJxSdtw\r\n1dGGjWSvf9Gb7PMmjSFdPuEqGcC8EFk1xTmxiIatR3miDUWSyDq+TaIihE0a\r\nifOktI4Sk1RrlYaDMU3SB90QgmxszW/A9GDLUEvIYsgse3TOOi+NduybhMbq\r\n8mg1X+NwiVRJvDe3OJSKN1ZBt6tUiJRfpnWENmlTOG4kVqvi3JcBGUdLfn4v\r\nGl1V+OpBtyHI+oJjaVsZT09nxA0iuCBJ4zi4qRYMymBM05Hhe1pLmV+pueyg\r\nyLlki4zLNnZDUn+6xr2Wgnpt1dE1tPZf3MDScTlzFxUSIjLmN07gnVslQ4bH\r\n62eQu3DAVhE8wDy6tdXDsYgMns2StXa/w8k=\r\n=IFHV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","module":"index.mjs","engines":{"node":">=10.0.0"},"gitHead":"211d984f9994355995ac50ee0bb15ac3226a1feb","scripts":{"test":"npm run test:js && npm run test:tape","pretest":"rollup -c .rollup.js --silent","test:js":"eslint src/*.js src/lib/*.js --cache --ignore-path .gitignore --quiet","test:tape":"tape ./.tape.js | tap-spec"},"_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"repository":{"url":"git+https://github.com/csstools/stylelint-media-use-custom-media.git","type":"git"},"_npmVersion":"8.12.1","description":"Enforce usage of custom media queries in CSS","directories":{},"_nodeVersion":"18.4.0","dependencies":{},"eslintConfig":{"parser":"babel-eslint","extends":"dev"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.0.0","rollup":"^2.9.1","tap-spec":"^5.0.0","stylelint":"^14.0.1","pre-commit":"^1.2.2","@babel/core":"^7.9.6","babel-eslint":"^10.1.0","@babel/preset-env":"^7.9.6","eslint-config-dev":"^2.0.0","rollup-plugin-babel":"^4.4.0","stylelint-test-rule-tape":"^0.2.0","@babel/plugin-syntax-dynamic-import":"^7.8.3"},"peerDependencies":{"stylelint":"10 - 14"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-media-use-custom-media_2.0.1_1667792229175_0.16853950896502434","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"stylelint-media-use-custom-media","version":"3.0.0","keywords":["stylelint","stylelint-plugin","css","use","custom","media","custom-media","queries","query","variables","variable","vars","var"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"stylelint-media-use-custom-media@3.0.0","maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"homepage":"https://github.com/csstools/stylelint-media-use-custom-media#readme","bugs":{"url":"https://github.com/csstools/stylelint-media-use-custom-media/issues"},"dist":{"shasum":"f8b6d206bc8d97ae791342177c54f30a6b98f98f","tarball":"https://registry.npmjs.org/stylelint-media-use-custom-media/-/stylelint-media-use-custom-media-3.0.0.tgz","fileCount":7,"integrity":"sha512-qMytYU9zykdhBmxGSdCcWnTm1o5sl962rVrngyYaQ/bmR/L1ji63fI2ZVzk+z0Jg5duGnhjpKI5joFgCyZur3g==","signatures":[{"sig":"MEUCIQCKADvmfGfqfx83g7QWrWnRiNXECFIGifJP6aaoWdOAlQIgb9JCUsRp+S9FrWDXdK+GyfDbOh5N0v9Md6E93sQhEw8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84410},"main":"index.js","module":"index.mjs","engines":{"node":">=10.0.0"},"gitHead":"aee9e4ad9115e2df9f4963f42ee244cb535a85f0","scripts":{"test":"npm run test:js && npm run test:tape","pretest":"rollup -c .rollup.js --silent","test:js":"eslint src/*.js src/lib/*.js --cache --ignore-path .gitignore --quiet","test:tape":"tape ./.tape.js | tap-spec"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"repository":{"url":"git+https://github.com/csstools/stylelint-media-use-custom-media.git","type":"git"},"_npmVersion":"9.8.1","description":"Enforce usage of custom media queries in CSS","directories":{},"_nodeVersion":"18.18.2","dependencies":{},"eslintConfig":{"parser":"babel-eslint","extends":"dev"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.0.0","rollup":"^2.9.1","tap-spec":"^5.0.0","stylelint":"^14.0.1","pre-commit":"^1.2.2","@babel/core":"^7.9.6","babel-eslint":"^10.1.0","@babel/preset-env":"^7.9.6","eslint-config-dev":"^2.0.0","rollup-plugin-babel":"^4.4.0","stylelint-test-rule-tape":"^0.2.0","@babel/plugin-syntax-dynamic-import":"^7.8.3"},"peerDependencies":{"stylelint":"10 - 15"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-media-use-custom-media_3.0.0_1702244461398_0.5244323047644179","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"stylelint-media-use-custom-media","version":"4.0.0","keywords":["stylelint","stylelint-plugin","css","use","custom","media","custom-media","queries","query","variables","variable","vars","var"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"stylelint-media-use-custom-media@4.0.0","maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"homepage":"https://github.com/csstools/stylelint-media-use-custom-media#readme","bugs":{"url":"https://github.com/csstools/stylelint-media-use-custom-media/issues"},"dist":{"shasum":"1ce58ef193d961284ee148f3048c221de97e5d26","tarball":"https://registry.npmjs.org/stylelint-media-use-custom-media/-/stylelint-media-use-custom-media-4.0.0.tgz","fileCount":7,"integrity":"sha512-RluE9cNHF97zM6lx5pUCte1CshP8wTN7Pyz1kj5UUT5sNrBsNU0uu+AbGBcxwaupux+nwGUAHHpAgmO0+F7F9A==","signatures":[{"sig":"MEUCIQCz/gF2mEW6EjDwRte8gBe386pLet/sn7iSY0QC5LlHpgIgSkS/eN00lwEwUmpjwe8fyr45r6p+lTMSdhh8t9Rhfgc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22501},"main":"src/index.mjs","type":"module","engines":{"node":">=18.12.0"},"gitHead":"3b34ac56e4d11739c1396a8d8dc9fbaa04e4c00f","scripts":{"test":"node --test"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"repository":{"url":"git+https://github.com/csstools/stylelint-media-use-custom-media.git","type":"git"},"_npmVersion":"9.8.1","description":"Enforce usage of custom media queries in CSS","directories":{},"_nodeVersion":"18.18.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"stylelint":"^16.0.0","stylelint-test-rule-node":"^0.2.0"},"peerDependencies":{"stylelint":">=16"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-media-use-custom-media_4.0.0_1702246391733_0.1520640943984708","host":"s3://npm-registry-packages"}},"4.1.0":{"name":"stylelint-media-use-custom-media","version":"4.1.0","description":"Enforce usage of custom media queries in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/csstools/stylelint-media-use-custom-media.git"},"homepage":"https://github.com/csstools/stylelint-media-use-custom-media#readme","bugs":{"url":"https://github.com/csstools/stylelint-media-use-custom-media/issues"},"type":"module","main":"src/index.mjs","scripts":{"test":"node --test"},"engines":{"node":">=18.12.0"},"dependencies":{},"devDependencies":{"stylelint":"^16.0.0","stylelint-test-rule-node":"^0.4.0"},"peerDependencies":{"stylelint":">=16"},"keywords":["stylelint","stylelint-plugin","css","use","custom","media","custom-media","queries","query","variables","variable","vars","var"],"_id":"stylelint-media-use-custom-media@4.1.0","gitHead":"c4f7cd480ffb432c36823c1e7443e189a2d99490","_nodeVersion":"22.14.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-KmrROVhMXd217NM+9PciFp9wu4pNQNx9lpPCqYMBLOVJREi3MbziYJRMP9X5FlaCLfQmbk6so5KdGEzG+4Oe5Q==","shasum":"3807359db9ea275b41640ce68af8dfae358f830c","tarball":"https://registry.npmjs.org/stylelint-media-use-custom-media/-/stylelint-media-use-custom-media-4.1.0.tgz","fileCount":7,"unpackedSize":22584,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCfVsqVVdB8nlMEFZqCCeCxf9b9EahYIn5jAfe1H4zCqQIgGID8OtXrsiIz+j+2dkbIOc+IjW8ujnWVHrTahCBQzOA="}]},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stylelint-media-use-custom-media_4.1.0_1766254723307_0.20744861384758884"},"_hasShrinkwrap":false}},"time":{"created":"2018-09-26T01:46:23.762Z","modified":"2025-12-20T18:18:43.717Z","1.0.0":"2018-09-26T01:46:23.951Z","2.0.0":"2020-05-12T03:38:19.290Z","2.0.1":"2022-11-07T03:37:09.317Z","3.0.0":"2023-12-10T21:41:01.594Z","4.0.0":"2023-12-10T22:13:11.887Z","4.1.0":"2025-12-20T18:18:43.460Z"},"bugs":{"url":"https://github.com/csstools/stylelint-media-use-custom-media/issues"},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","homepage":"https://github.com/csstools/stylelint-media-use-custom-media#readme","keywords":["stylelint","stylelint-plugin","css","use","custom","media","custom-media","queries","query","variables","variable","vars","var"],"repository":{"type":"git","url":"git+https://github.com/csstools/stylelint-media-use-custom-media.git"},"description":"Enforce usage of custom media queries in CSS","maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"readme":"# Media Use Custom Media [<img src=\"https://jonathantneal.github.io/stylelint-logo.svg\" alt=\"stylelint\" width=\"90\" height=\"90\" align=\"right\">][stylelint]\n\n[![NPM Version][npm-img]][npm-url]\n[![test](https://github.com/csstools/stylelint-media-use-custom-media/actions/workflows/test.yml/badge.svg)](https://github.com/csstools/stylelint-media-use-custom-media/actions/workflows/test.yml)\n[![Support Chat][git-img]][git-url]\n\n[Media Use Custom Media] is a [stylelint] rule to enforce usage of custom media\nqueries in CSS.\n\n## Usage\n\nAdd [stylelint] and [Media Use Custom Media] to your project.\n\n```bash\nnpm install stylelint stylelint-media-use-custom-media --save-dev\n```\n\nAdd [Media Use Custom Media] to your [stylelint configuration].\n\n```js\n{\n  \"plugins\": [\n    \"stylelint-media-use-custom-media\"\n  ],\n  \"rules\": {\n    \"csstools/media-use-custom-media\": \"always\" || \"always-known\" || \"known\" || \"never\" || \"ignore\"\n  }\n}\n```\n\n## Options\n\n### always\n\nIf the first option is `\"always\"` or `true`, then [Media Use Custom Media]\nrequires all `@media` queries to use Custom Media, and the following patterns\nare _not_ considered violations:\n\n```pcss\n@media (--sm) {}\n\n@media (--sm), (--md) {}\n\n@media screen and (--sm) {}\n```\n\nWhile the following patterns are considered violations:\n\n```pcss\n@media (max-width: 40rem) {}\n\n@media (max-width: 40rem), (--md) {}\n```\n\n### never\n\nIf the first option is `\"never\"`, then [Media Use Custom Media]\nrequires all `@media` queries to not use Custom Media, and the following\npatterns are _not_ considered violations:\n\n```pcss\n@media (max-width: 40rem) {}\n\n@media screen and (max-width: 40rem) {}\n```\n\nWhile the following patterns are considered violations:\n\n```pcss\n@media (--md) {}\n\n@media screen and (--md) {}\n\n@media (--md), (max-width: 40rem) {}\n```\n\n### known\n\nIf the first option is `\"known\"`, then [Media Use Custom Media] requires all\n`@media` queries referencing Custom Media to be known from either\n`@custom-media` declarations in the file or imported using the second\noption. Then the following patterns are _not_ considered violations:\n\n```pcss\n@custom-media --sm (min-width: 40rem);\n\n@media (--sm) {}\n\n@media (--sm), (min-width: 40rem) {}\n```\n\nWhile the following patterns are considered violations:\n\n```pcss\n@media (--md) {}\n\n@media (--md), (min-width: 40rem) {}\n```\n\n### always-known\n\nIf the first option is `\"always-known\"`, then [Media Use Custom Media] requires all\n`@media` queries to use known Custom Media from either `@custom-media`\ndeclarations in the file or imported using the second option. Then the\nfollowing patterns are _not_ considered violations:\n\n```pcss\n@custom-media --sm (min-width: 40rem);\n\n@media (--sm) {}\n```\n\nWhile the following patterns are considered violations:\n\n```pcss\n@custom-media --sm (min-width: 40rem);\n\n@media (--sm), (min-width: 40rem) {}\n\n@media (--md) {}\n```\n\n### ignore\n\nIf the first option is `\"ignore\"` or `null`, then [Media Use Custom Media] does\nnothing.\n\n---\n\n### importFrom\n\nWhen the first option is `\"always-known\"` or `\"known\"`, then the second option\ncan specify sources where Custom Properties should be imported from by using an\n`importFrom` key. These imports might be CSS, JS, and JSON files, functions,\nand directly passed objects.\n\n```js\n// .stylelintrc\n{\n  \"plugins\": [\n    \"stylelint-media-use-custom-media\"\n  ],\n  \"rules\": {\n    \"csstools/media-use-custom-media\": [\"known\", {\n      \"importFrom\": [\n        \"path/to/file.css\", // => @custom-media --sm (min-width: 40rem);\n        \"path/to/file.json\" // => { \"custom-media\": { \"--sm\": \"(min-width: 40rem)\" } }\n      ]\n    }\n  }\n}\n```\n\n[git-img]: https://img.shields.io/badge/support-chat-blue.svg\n[git-url]: https://gitter.im/stylelint/stylelint\n[npm-img]: https://img.shields.io/npm/v/stylelint-media-use-custom-media.svg\n[npm-url]: https://www.npmjs.com/package/stylelint-media-use-custom-media\n\n[stylelint]: https://github.com/stylelint/stylelint\n[stylelint configuration]: https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#readme\n[Media Use Custom Media]: https://github.com/csstools/stylelint-media-use-custom-media\n","readmeFilename":"README.md"}