{"_id":"@blueprint-modernized/stylelint-plugin","name":"@blueprint-modernized/stylelint-plugin","dist-tags":{"latest":"2.0.4"},"versions":{"2.0.4":{"name":"@blueprint-modernized/stylelint-plugin","version":"2.0.4","description":"Stylelint rules for use with @blueprint-modernized packages","main":"lib/index.js","scripts":{"clean":"rm -rf lib/*","compile":"tsc -p src/","lint":"run-p lint:es","lint:es":"es-lint","lint-fix":"es-lint --fix","test":"mocha test/index.js"},"dependencies":{"@blueprint-modernized/colors":"^4.0.6","postcss":"^8.4.12","postcss-selector-parser":"^6.0.10","postcss-value-parser":"^4.2.0"},"peerDependencies":{"stylelint":"^14.6.1"},"devDependencies":{"@blueprint-modernized/node-build-scripts":"^4.0.3","mocha":"^9.2.2","typescript":"^4.6.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/palantir/blueprint.git","directory":"packages/stylelint-plugin"},"author":{"name":"Palantir Technologies"},"license":"Apache-2.0","gitHead":"afc292104a4fd14e2c16846d8b90023852009b59","bugs":{"url":"https://github.com/palantir/blueprint/issues"},"homepage":"https://github.com/palantir/blueprint#readme","_id":"@blueprint-modernized/stylelint-plugin@2.0.4","_nodeVersion":"14.17.6","_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (darwin)","dist":{"integrity":"sha512-Lv4oesa77Y5ET1Tp3RGVHsTQn+GR6CT55jfo14m4jxoAgTWrkOb6EdIjg9TsTM/xTkYn5LWyaHHitn+OvPPTgg==","shasum":"dd77f04e410a5d92660eca27f01cd4dbffdcb3d1","tarball":"https://registry.npmjs.org/@blueprint-modernized/stylelint-plugin/-/stylelint-plugin-2.0.4.tgz","fileCount":53,"unpackedSize":85685,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4mvLWMEyYU1dCljJWvIbA0YM0+wZ99d0cjeRr3HnswgIhAKPne1F0nvjpvJkvFAz1cz97UrdFgnb4yJluNaGGP7n+"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUtoaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAMg//R9m178EEZrFoWgfQN5h+RsbqvtzVzVN/l1wx69FPRXbmumcl\r\nVnXzCIkYwG5aJXyrWGVUFz+R2v0wvmj0MbhaA6o7hcg6TQAZgSIQZ+MqSdBL\r\nkwLMcP99GAKFmK/DGWwCO1PYg/U+9+HYPoFRCkv5td6JfhRYknQqwucHSNDv\r\nsrbGrhFgB1YXJU27ZI/HNRJz8BJcJ1Ble9d/H03RJ7VqfhoecKGcjsSkjVdD\r\n9ebLLpxenGGNASK9EXh433new/CV15qthD5O0s0zgtNqnieh41ERwqV5jVLi\r\nK/ReEIWZ6k1Gv3rfJBy3abAqF+if8KE9qkRyywTJclDljVvx4UhnXYWLE+CW\r\n6VB+tS4OnqnSAwsYINszgJhVB7290vJNFwPdx/GirCFMS1VcVNlSlKr4Mlz3\r\n3VfvmUlwhheapIKAidqgVp7j5Zw1u9+UHrCml/Ujeax++PC6vnQjsiE4oswy\r\nKCOaYyXC0O0vEsQSnHdYiJn2MU6mRTqGjvHGlY3n9PnCDDY7RtxHiI5p1GYP\r\n8lb0X7UOFfM1JZCokRzTgO5gasxYBmWdtX9JRz5rehwU+B8ZsqdjHT42aro4\r\nb0Js0h4cjH1hO7mUk9qPSntoY7dKDJe5F0GxA6UjvUTVRSK5u5xxhdNxPquO\r\nLsinPqPXY35sEmQGv/PbflHbOzCfxFH6kKM=\r\n=W42v\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"michael_nocode","email":"michael@nocode.studio"},"directories":{},"maintainers":[{"name":"michael_nocode","email":"michael@nocode.studio"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-plugin_2.0.4_1649596954412_0.39059014421534566"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-10T13:22:34.344Z","2.0.4":"2022-04-10T13:22:34.651Z","modified":"2022-04-10T13:22:34.791Z"},"maintainers":[{"name":"michael_nocode","email":"michael@nocode.studio"}],"description":"Stylelint rules for use with @blueprint-modernized packages","homepage":"https://github.com/palantir/blueprint#readme","repository":{"type":"git","url":"git+ssh://git@github.com/palantir/blueprint.git","directory":"packages/stylelint-plugin"},"author":{"name":"Palantir Technologies"},"bugs":{"url":"https://github.com/palantir/blueprint/issues"},"license":"Apache-2.0","readme":"<img height=\"204\" src=\"https://cloud.githubusercontent.com/assets/464822/20228152/d3f36dc2-a804-11e6-80ff-51ada2d13ea7.png\">\n\n# [Blueprint](http://blueprintjs.com/) [stylelint](https://stylelint.io/) plugin\n\nBlueprint is a React UI toolkit for the web.\n\nThis package contains the [stylelint](https://stylelint.io/) plugin for Blueprint. It provides custom rules which are useful when developing against Blueprint libraries.\n\n**Key features:**\n\n-   [Blueprint-specific rules](#Rules) for use with `@blueprint-modernized` components.\n\n## Installation\n\n```\nyarn add --dev @blueprint-modernized/stylelint-plugin\n```\n\n## Usage\n\nSimply add this plugin in your `.stylelintrc` file and then pick the rules that you need. The plugin includes Blueprint-specific rules which enforce semantics particular to usage with `@blueprint-modernized` packages, but does not turn them on by default.\n\n`.stylelintrc`\n\n```json\n{\n    \"plugins\": [\n        \"@blueprint-modernized/stylelint-plugin\"\n    ],\n    \"rules\": {\n        \"@blueprint-modernized/no-color-literal\": true,\n        \"@blueprint-modernized/no-prefix-literal\": true\n    }\n}\n```\n\n## Rules\n\n### `@blueprint-modernized/no-color-literal` (autofixable)\n\nEnforce usage of the color variables instead of color literals.\n\n```json\n{\n    \"rules\": {\n        \"@blueprint-modernized/no-color-literal\": true\n    }\n}\n```\n\n```diff\n-.my-class {\n-    border: 1px solid #137CBD;\n-}\n+ @import \"~@blueprint-modernized/core/lib/scss/variables\";\n+\n+.my-class {\n+    border: 1px solid $blue3;\n+}\n```\n\nOptional secondary options:\n\n- `disableFix: boolean` - if true, autofix will be disabled\n- `variablesImportPath: { less?: string, sass?: string }` - can be used to configure a custom path for importing Blueprint variables when autofixing.\n\n\n### `@blueprint-modernized/no-prefix-literal` (autofixable)\n\nEnforce usage of the `bp-ns` constant over namespaced string literals.\n\nThe `@blueprint-modernized` package exports a `bp-ns` CSS variable which contains the prefix for the current version of Blueprint (`bp3` for Blueprint 3, `bp4` for Blueprint 4, and etc). Using the variable instead of hardcoding the prefix means that your code will still work when new major version of Blueprint is released.\n\n```json\n{\n    \"rules\": {\n        \"@blueprint-modernized/no-prefix-literal\": true\n    }\n}\n```\n\n```diff\n-.bp3-button > div {\n-    border: 1px solid black;\n-}\n+ @import \"~@blueprint-modernized/core/lib/scss/variables\";\n+\n+.#{$bp-ns}-button > div {\n+    border: 1px solid black;\n+}\n```\n\nOptional secondary options:\n\n- `disableFix: boolean` - if true, autofix will be disabled\n- `variablesImportPath: { less?: string, sass?: string }` - can be used to configure a custom path for importing Blueprint variables when autofixing.\n\n\n### [Full Documentation](http://blueprintjs.com/docs) | [Source Code](https://github.com/palantir/blueprint)\n","readmeFilename":"README.md"}