{"name":"@stylistic/stylelint-plugin","version":"2.1.3","keywords":["codeguide","css","csslint","formatting","lint","linter","stylelint","stylelint-plugin","stylistic"],"author":{"name":"Sergey Artemov","email":"firefoxic.dev@gmail.com"},"license":"MIT","_id":"@stylistic/stylelint-plugin@2.1.3","maintainers":[{"name":"firefoxic","email":"firefoxic.dev@gmail.com"}],"homepage":"https://github.com/stylelint-stylistic/stylelint-stylistic#readme","bugs":{"url":"https://github.com/stylelint-stylistic/stylelint-stylistic/issues"},"dist":{"shasum":"a36d4aad7ecec233126ff72ae7acb505c767f14c","tarball":"http://registry-npm.ywwl.com/@stylistic/stylelint-plugin/download/@stylistic/stylelint-plugin-2.1.3.tgz","fileCount":141,"integrity":"sha512-/KUcqX36AbbUk7KvNuM0dWv2XSlPa1M12CPcC//eA4MNEFsZFl+2Kf8UZCLjlIWIrDNitd591vaVkXfOwUtsFQ==","signatures":[{"sig":"MEUCIQDsnAMFYk8xZ+Fcay5OWTOVPGcuJOxxJM8IKCnCZcHCHgIgeCkj3F7RgZsdmyktT0HKa13vlcF9ATC7R8CN1iIl4+U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@stylistic%2fstylelint-plugin@2.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":321345,"size":53941,"noattachment":false,"key":"/@stylistic/stylelint-plugin/-/@stylistic/stylelint-plugin-2.1.3.tgz"},"type":"module","_from":"file:stylistic-stylelint-plugin-2.1.3.tgz","engines":{"node":"^18.12 || >=20.9"},"exports":"./lib/index.js","scripts":{"lint":"eslint","test":"node --test --test-reporter @synap-ac/node-dot-extra-reporter","pretest":"pnpm lint --cache","version":"update-changelog && git add CHANGELOG.md","preversion":"pnpm test","test:watch":"node --test --watch","postversion":"if [ \"$CI\" != \"true\" ]; then pnpm publish --access public; git push --follow-tags; fi","test:coverage":"node --test --experimental-test-coverage"},"_npmUser":{"name":"firefoxic","email":"firefoxic.dev@gmail.com"},"_resolved":"/tmp/448e5bcc2b94e64d7767e0093f4cd000/stylistic-stylelint-plugin-2.1.3.tgz","_integrity":"sha512-/KUcqX36AbbUk7KvNuM0dWv2XSlPa1M12CPcC//eA4MNEFsZFl+2Kf8UZCLjlIWIrDNitd591vaVkXfOwUtsFQ==","repository":{"url":"git://github.com/stylelint-stylistic/stylelint-stylistic.git","type":"git"},"_npmVersion":"10.7.0","description":"A collection of stylistic/formatting Stylelint rules","directories":{},"_nodeVersion":"20.15.1","dependencies":{"stylelint":"^16.8.0","style-search":"^0.1.0","is-plain-object":"^5.0.0","postcss-value-parser":"^4.2.0","@csstools/css-tokenizer":"^2.4.1","postcss-selector-parser":"^6.1.1","@csstools/css-parser-algorithms":"^2.7.1","@csstools/media-query-list-parser":"^2.1.13"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.4","eslint":"^9.8.0","globals":"^15.8.0","postcss":"^8.4.40","@eslint/js":"^9.8.0","common-tags":"^1.8.2","postcss-html":"^1.7.0","postcss-less":"^6.0.0","postcss-scss":"^4.0.9","stylelint-test-rule-node":"^0.3.0","@firefoxic/update-changelog":"^0.1.0","@stylistic/eslint-plugin-js":"^2.4.0","@synap-ac/node-dot-extra-reporter":"^1.1.0"},"peerDependencies":{"stylelint":"^16.0.2"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-plugin_2.1.3_1722284276459_0.15305510100182507","host":"s3://npm-registry-packages"},"readme":"# Stylelint Stylistic\n\n[![License: MIT][license-image]][license-url]\n[![Changelog][changelog-image]][changelog-url]\n[![NPM version][npm-image]][npm-url]\n[![Test Status][test-image]][test-url]\n\nAn updatable collection of stylistic rules for [Stylelint](https://github.com/stylelint/stylelint) (in plugin form).\n\n## About and purpose\n\n[Stylelint has removed 76 rules](https://stylelint.io/migration-guide/to-16#removed-deprecated-stylistic-rules) that enforce stylistic conventions. This project returns these rules to keep styles consistent with your codeguide. In addition, new rules may be added in the future.\n\n## Installation and usage\n\nAdd `@stylistic/stylelint-plugin` and `stylelint` itself to your project:\n\n```shell\nnpm add -D stylelint @stylistic/stylelint-plugin\n```\n\nCreate the `.stylelintrc` config file (or open the existing one), add `@stylistic/stylelint-plugin` to the plugins array and the rules you need to the rules list. [All rules from `@stylistic/stylelint-plugin`](https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/docs/user-guide/rules.md) need to be namespaced with `@stylistic/`:\n\n```json\n{\n\t\"plugins\": [\n\t\t\"@stylistic/stylelint-plugin\"\n\t],\n\t\"rules\": {\n\t\t// syntax rules from stylelint:\n\t\t\"color-function-notation\": \"modern\",\n\t\t\"selector-max-compound-selectors\": 2,\n\n\t\t// stylistic rules from @stylistic/stylelint-plugin:\n\t\t\"@stylistic/color-hex-case\": \"lower\",\n\t\t\"@stylistic/number-leading-zero\": \"always\",\n\t\t\"@stylistic/unit-case\": \"lower\"\n\t}\n}\n```\n\nTo avoid listing a lot of rules, you can use [`@stylistic/stylelint-config`](https://www.npmjs.com/package/@stylistic/stylelint-config), which returns the stylistic rules removed in [`stylelint-config-standard`](https://github.com/stylelint/stylelint-config-standard/releases/tag/30.0.0) and [`stylelint-config-recommended`](https://github.com/stylelint/stylelint-config-recommended/releases/tag/10.0.1).\n\n---\n\nPlease refer to [Stylelint docs](https://stylelint.io/user-guide/get-started) for detailed info on using this linter.\n\n## Need more?\n\nESLint deprecates stylistic rules, too. But you can continue to use them thanks to [ESLint Stylistic](https://eslint.style).\n\n## Important documents\n\n- [Rule list](https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/docs/user-guide/rules.md)\n- [Contributing](https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/CONTRIBUTING.md)\n\n[license-url]: https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/LICENSE.md\n[license-image]: https://img.shields.io/badge/License-MIT-limegreen.svg\n\n[changelog-url]: https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/CHANGELOG.md\n[changelog-image]: https://img.shields.io/badge/Change-log-limegreen\n\n[npm-url]: https://npmjs.org/package/@stylistic/stylelint-plugin\n[npm-image]: https://badge.fury.io/js/@stylistic%2Fstylelint-plugin.svg\n\n[test-url]: https://github.com/stylelint-stylistic/stylelint-stylistic/actions\n[test-image]: https://github.com/stylelint-stylistic/stylelint-stylistic/actions/workflows/test.yaml/badge.svg?branch=main\n","publish_time":1722284276611,"deprecated":"Please upgrade to v5 or later.","_cnpm_publish_time":1722284276611,"dist-tags":{"alpha":"6.0.0-alpha.1","latest":"6.0.1","next":"6.0.0-next.0"}}