{"_id":"@considonet/stylelint-config-bem","_rev":"2-5e82a55d9a540d7c42ac272efd6ad9e6","name":"@considonet/stylelint-config-bem","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@considonet/stylelint-config-bem","version":"1.0.0","description":"Default stylelint ruleset for BEM methodology stylesheets in ConsidoNet projects","main":"./lib/index.js","repository":{"type":"git","url":"git+https://github.com/considonet/stylelint-config-bem.git"},"keywords":["stylelint","bem"],"author":{"name":"Paweł Gabryelewicz"},"license":"MIT","bugs":{"url":"https://github.com/considonet/stylelint-config-bem/issues"},"homepage":"https://github.com/considonet/stylelint-config-bem#readme","dependencies":{"stylelint-selector-bem-pattern":"^2.1.0"},"peerDependencies":{"stylelint":"^10.1.0"},"gitHead":"85ffc8c40082b63f7ab932dfc34e5f5b59301e07","_id":"@considonet/stylelint-config-bem@1.0.0","_nodeVersion":"10.14.1","_npmVersion":"6.10.1","dist":{"integrity":"sha512-TCv/Qn+BwA15wWGlN89uSBFFZlzc3X5ftdS2cyv9jEdymR4iaBu8Ssl4pSgzmMjF/m58OEzkmMXN0gxivfUD7A==","shasum":"af056e802e4d160b58913e941f67d73bb7514978","tarball":"https://registry.npmjs.org/@considonet/stylelint-config-bem/-/stylelint-config-bem-1.0.0.tgz","fileCount":4,"unpackedSize":6341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdN4GuCRA9TVsSAnZWagAAHLMP/io5QpNaRyHQXly+Dou1\njZKrn+/wc8Dpw7eUKK1OTa3EJEB0bTfw6NWAdaGIdhVTOnkk5Pzjb2/cmBv7\nefiHAypUh2KgNNBY1aHrdxsSCzrnAqYwZdp8pA+bRZ0lZLUw71vrBLhx//mN\nF0Goy21RVx/aPUwF0n/CXmZbLz6Yoqqcq/tVL8O2I458R8t1W1fIe2+S0Mgt\ne6mJNyv/x8x3lBFn+SlOd7IlYQ8X+L0I9htuFszlWT3TBsvyfSoBZifpT8vY\n7itzgXsuc82acud1iR+MppeGBOMepcMEQ3nEOt4s6HMz5xJlLAPuuMtQGQH5\nBDK299RkzRmL5LNzHb/LuPAa+IZ3Frz2HOgetJS7x5HUv5NX/89UmkBtfohk\npn1ioUJSNEs4nvsOtirA9kBAi6CBJjcIhtSPurLIpHLM+Y6EasxpqTCqPxme\nLNu9wl6PMeEvjv5vxPbVZxFar5cCQc7+HJPvdTub8QFCFT+vz8PG72ZUCi+v\nQVZ9BjFololjGDwGfiM14AIfCoCMQqYMW6LBI3xIJL+/lGHUFMSbDiuDOhkd\nwgXu6bbrAV2IGyQZjTJ6kswuYQxCt7nJk32vk7VbI+2iauwS2tocfryFynH9\nxFHvgO9bfIyLSoAuPC0YYLHP2cmyKOBGGjysOYwV7Ltgighl8HkBj+wpLqdz\nSTCt\r\n=+pvM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICViIgI9Ysrr74+zyB3ESqhtK1Ay4dZGl8kb6dPSeu/pAiAdgPNquiKheSzJonVeP9mJLriXiGYtgB+RqgnpGgykcw=="}]},"maintainers":[{"name":"pawelgabryelewicz","email":"npm@considonet.com"}],"_npmUser":{"name":"pawelgabryelewicz","email":"npm@considonet.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-config-bem_1.0.0_1563918766157_0.4143886913779782"},"_hasShrinkwrap":false},"1.0.1":{"name":"@considonet/stylelint-config-bem","version":"1.0.1","description":"Default stylelint ruleset for BEM methodology stylesheets in ConsidoNet projects","main":"./lib/index.js","repository":{"type":"git","url":"git+https://github.com/considonet/stylelint-config-bem.git"},"keywords":["stylelint","bem"],"author":{"name":"Paweł Gabryelewicz"},"license":"MIT","bugs":{"url":"https://github.com/considonet/stylelint-config-bem/issues"},"homepage":"https://github.com/considonet/stylelint-config-bem#readme","dependencies":{"stylelint-selector-bem-pattern":"^2.1.0"},"peerDependencies":{"stylelint":"^10.1.0 || ^11.0.0 || ^12.0.0 || ^13.0.0"},"gitHead":"7b99f8405e0f06792fb820542b8a812dd3f63ed1","_id":"@considonet/stylelint-config-bem@1.0.1","_nodeVersion":"12.14.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-1GdfaTBmD3qfFcRO8KHQaszGj+SjCA7YoXO1XnNrq+qSQRb4aUkJvSKqBNKrtATwTRHTkZLbd1eSQytRHqwehw==","shasum":"f9f8e592016c2150e69acb5901b9c5ffa001108a","tarball":"https://registry.npmjs.org/@considonet/stylelint-config-bem/-/stylelint-config-bem-1.0.1.tgz","fileCount":4,"unpackedSize":6374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeiE4BCRA9TVsSAnZWagAAGwEQAJbeYhl6ZbR/OFdrFkos\nULEiRpoHP+raN+/FTUI5Z3ADYUYZhHru79iicsAvlPfeG8Q2K1rjCLDrK4Sd\nugNL8FCKQMvzn9jxnDwAAzHWYrUA/B7RMBv3IgItTZg0SPe2czkGt3j0TstR\nAYNUogMG5uTPqFbVFDTYnQAS8DGUXnb+/uhviTnzJD9kk5GWTtgwL7QLFCMc\nbnzDNPPE6miyJdbcqib8cTp+DrVY70SfD1QrBQjfyFdYcB2s/b4SnBSJcf5p\n7CmQwQrlJK32UzPNxCS4XXhtFWyvvIQLvuRCaLHV8zOe9esCuIaanLofICMZ\nU/FRRk6I4auDIF78n5/slX/ObVZNbikiPv1/29mgopxxISeRFm2K1Li52jmZ\nSHLt6QLo2qbZLldcldrJjbU5ncyzPAaCyGrVL23k759rTAtBrL4o4SE+Y383\n+qmAX9pqkJtxpK6whsFSB5ivS28FHwY9oqr8Sr8hid8tr+skLV8gRQhw2MZ/\nOxIvbHHtBAXbt+OLyOHRicuMehsODlPjb1Y7ksYUpOBzUiDGnk4gaLRNgT/A\nhQM/kBzcmkRi3pC1DP93Zz+hK9ZJlhTKv8KZw6S7NbuWzxleCWlRnAW4Nr0+\n1K/osUoBQYXaXjPeFk51to2Z0YCjRUHg4UJNvc2BvxavWH42UImtGstdrxyC\npl1z\r\n=ifwc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGgIyY945mIItiIVyNdDlLCo3qcVZZ6M4Vm9fS5HqDlJAiEAnm56CFTBJKOeoEuDCKpkiQ0UNZ9ci/YDlqoLkEJHj24="}]},"maintainers":[{"name":"pawelgabryelewicz","email":"npm@considonet.com"}],"_npmUser":{"name":"pawelgabryelewicz","email":"npm@considonet.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-config-bem_1.0.1_1585991169215_0.8626065786312502"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-23T21:52:45.993Z","1.0.0":"2019-07-23T21:52:46.327Z","modified":"2022-04-05T00:59:04.110Z","1.0.1":"2020-04-04T09:06:09.434Z"},"maintainers":[{"name":"pawelgabryelewicz","email":"npm@considonet.com"}],"description":"Default stylelint ruleset for BEM methodology stylesheets in ConsidoNet projects","homepage":"https://github.com/considonet/stylelint-config-bem#readme","keywords":["stylelint","bem"],"repository":{"type":"git","url":"git+https://github.com/considonet/stylelint-config-bem.git"},"author":{"name":"Paweł Gabryelewicz"},"bugs":{"url":"https://github.com/considonet/stylelint-config-bem/issues"},"license":"MIT","readme":"# @considonet/stylelint-config-bem\n\n> Default [`stylelint`](https://github.com/stylelint/stylelint) ruleset for BEM methodology-based stylesheets in ConsidoNet projects.\n\n## Rules\n\nThis config is built upon [`stylelint-selector-bem-pattern`](https://github.com/simonsmith/stylelint-selector-bem-pattern).\n\nAfter some tweaks the following rules are applied:\n\n* [Two Dashes style](https://en.bem.info/methodology/naming-convention/#two-dashes-style) naming scheme -\n  `block__element--modifier`.\n* Optional (and recommended for Considonet projects) [namespaced naming scheme](https://medium.com/@wenukagtx/bem-namespaces-81a5868e725c) supported - `c-block__element--modifier`  \n* One block (component) per one file (except utilities)\n* Block names consistent with filenames (minus extension, optional namespace and optional `_` filename prefix for Sass/SCSS).\n* `svg` and `img` can be styled by tag name.\n* [No namespace](https://en.bem.info/methodology/naming-convention/#no-namespace-style) modifiers are accepted for component state - `-is-` and `-has` prefixed classnames (_for example `.c-block.-is-active`_).  \n\n## Installation\n\nUsing npm:\n\n```sh\nnpm install --save-dev @considonet/stylelint-config-bem\n```\n\nor using yarn:\n\n```sh\nyarn add @considonet/stylelint-config-bem --dev\n```\n\n## Usage\n\nIn your .stylelintrc.js file extend your config:\n\n```json\n{ \n  \"extends\": \"@considonet/stylelint-config-bem\"\n}\n```\n\n### Implicit components\n\nBy default all linted stylesheets are treated as implicit components. It means that component\nnames used for linting are based on the filenames. Although [plugin config allows to narrow down\nimplicit components](https://github.com/postcss/postcss-bem-linter#define-components-and-utilities-implicitly-based-on-their-filename),\n[stylelint does not allow to merge nested options](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/faq.md#if-i-use-extends-within-my-configuration-object-will-the-options-for-each-rule-be-merged-or-overridden).\nIt means that to disable it for some files, `stylelint-disable` comment is required. Example:\n\n```css\n/* not-bem.css */\n/* stylelint-disable plugin/selector-bem-pattern */\na {\n    color: inherit;\n}\n/* stylelint-enable plugin/selector-bem-pattern */\n```\n\n### Usage with other configs\n\n**This config contains only rules for BEM and probably you don't want to use it standalone.**\nWe recommend to use `@considonet/stylelint-config-bem` with at least [`@considonet/stylelint-config-scss`](https://github.com/considonet/stylelint-config-scss) or any other general ruleset.\n\nSee [popular `stylelint` configs](https://www.npmjs.com/search?q=stylelint-config&ranking=popularity) for more inspirations.\n\nExample usage with other our packages:\n\n```json\n{\n  \"extends\": [\n    \"@considonet/stylelint-config-bem\",\n    \"@considonet/stylelint-config-scss\",\n    \"@considonet/stylelint-config-order\"\n  ]\n}\n```\n\nYou can also use our default preset which includes this configuration - [`@considonet/stylelint-config-default`](https://github.com/considonet/stylelint-config-default).\n","readmeFilename":"README.md"}