{"_id":"@cesargdm/prettier-stylelint","_rev":"2-cd3731239a9690fb754885159d5022ba","name":"@cesargdm/prettier-stylelint","dist-tags":{"latest":"0.4.3"},"versions":{"0.4.2":{"name":"@cesargdm/prettier-stylelint","version":"0.4.2","description":"code > prettier > stylelint > formatted code","repository":{"type":"git","url":"git+https://github.com/hugomrdias/prettier-stylelint.git"},"main":"index.js","bin":{"prettier-stylelint":"./cli.js"},"author":{"name":"Hugo Dias","email":"mail@hugodias.me","url":"http://hugodias.me/"},"license":"MIT","keywords":["stylelint","prettier","style","lint","linter","validate","code style","strict","check"],"scripts":{"test":"nyc ava","lint":"eslint --cache *.js src/*.js","validate":"run-p lint test","precommit":"yarn validate","version":"yarn changelog && git add CHANGELOG.md","cov":"yarn test && nyc report --reporter=html && hs coverage -s -o -c-1","cov:report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0"},"devDependencies":{"ava":"^2.1.0","codecov":"^3.5.0","conventional-changelog-cli":"^2.0.21","eslint":"^6.0.1","eslint-config-halo":"^2.4.2","http-serve":"^1.0.1","husky":"^3.0.0","np":"^5.0.3","npm-run-all":"^4.1.5","nyc":"^14.1.1","stylelint-config-recommended":"^2.2.0"},"dependencies":{"cosmiconfig":"^5.2.1","debug":"^4.1.1","get-stdin":"^7.0.0","globby":"^10.0.1","ignore":"^5.1.2","import-local":"^3.0.0","meow":"^5.0.0","pify":"^4.0.1","prettier":"^1.18.2","resolve-from":"^5.0.0","stylelint":"^10.1.0","temp-write":"^4.0.0","tempy":"^0.3.0","update-notifier":"^3.0.1"},"eslintConfig":{"extends":"halo/node"},"stylelint":{"extends":["stylelint-config-recommended","./config"],"rules":{"string-quotes":["single"],"indentation":[4,{"except":["value"]}],"color-hex-case":["upper"],"color-hex-length":["short"]}},"prettier":{"printWidth":80,"tabWidth":4,"useTabs":false,"semi":false,"singleQuote":true,"trailingComma":"none","bracketSpacing":true,"jsxBracketSameLine":false},"gitHead":"8e6963a6f8a543949b7ab34d214f49c334ee0d34","bugs":{"url":"https://github.com/hugomrdias/prettier-stylelint/issues"},"homepage":"https://github.com/hugomrdias/prettier-stylelint#readme","_id":"@cesargdm/prettier-stylelint@0.4.2","_nodeVersion":"10.15.3","_npmVersion":"6.10.0","dist":{"integrity":"sha512-1ckH0/ar4plmXGmlgO9mUc4ltxtZkUC78mq1zIXIMVmlhlxFDQiNr6Phy9DjTvO+5pA98NGdseShelL4ngroTw==","shasum":"84041db354b7c6d9932143976fec7eafefc6cfe0","tarball":"https://registry.npmjs.org/@cesargdm/prettier-stylelint/-/prettier-stylelint-0.4.2.tgz","fileCount":33,"unpackedSize":689566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdH77ACRA9TVsSAnZWagAAoEAQAKSi2zgpKVQXI7NdSVb1\npeSotD9JaeJ9emEPuvubLQGFEovBOVYFgMK4QaPfJQSOzz7R+8mkyMwWVm5w\nMJMfkA9pipW1a6s0pxIG1gY6CqQtviOqCffwtj3zaiTcn4onOTMye5rSPx9P\nrmlioIEqKMrUm/gauZC4hbBD+M9ew7PUx2N+tnZg0psD+aOUwKoZNrIUnMNp\nYl8X6fltzPqoWBxNN1gOQareWHZUKMsvkBL5ZIXDkfp/3YPj6Eg14w2IBkzc\nfGLTx7YiRbl2xFiGoZtPN0Sit78A3OXY1hQI8PTlMprOx567av9snMmPngbt\n2O47s6hqDIURMRHA6DuVAzdP7bHElxGz8iAlhlvzzLGMX3vr17/qpzjQtGzK\n7GUFx2fUsZiH/TXcwAku4x4z5+eQESfCMp9B8mgesJ/cECVd669pMVdsNWLe\nVFuWJqvJB77RUNHCaWmux39qZxsl0EMUsVzCW4E6rfEN/W493tW8+LRTyQ+a\nhnWHet5JHTnJccapmZTqDD5P/32SoEIb089uv9LTHX+Rq3pGu1Gs3lq+RT3k\nCpaD+DLrJJn9FGeKDMWYoOyUU4kPsMhR81N9gXFwf29qtYN60jgAlqoYtxX6\n4QK/uFXO0gSzv1YC3gCk3uukCdiqiqOG9yoKBL7B6KMBPQAswTZ8O6JyFJbW\nzobq\r\n=npir\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDE9OP776TB49b9MN5MrcRhv2sEHzk1GsaWFuyL384djgIhAP+rL6N8ol0/ELWnLhHJwJqJCq6eqqookPotxADhgrML"}]},"maintainers":[{"name":"cesargdm","email":"cesarguadarrama@icloud.com"}],"_npmUser":{"name":"cesargdm","email":"cesarguadarrama@icloud.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prettier-stylelint_0.4.2_1562361535693_0.07756010797910928"},"_hasShrinkwrap":false},"0.4.3":{"name":"@cesargdm/prettier-stylelint","version":"0.4.3","description":"code > prettier > stylelint > formatted code","repository":{"type":"git","url":"git+https://github.com/hugomrdias/prettier-stylelint.git"},"main":"index.js","bin":{"prettier-stylelint":"./cli.js"},"author":{"name":"Hugo Dias","email":"mail@hugodias.me","url":"http://hugodias.me/"},"license":"MIT","keywords":["stylelint","prettier","style","lint","linter","validate","code style","strict","check"],"scripts":{"test":"nyc ava","lint":"eslint --cache *.js src/*.js","validate":"run-p lint test","precommit":"yarn validate","version":"yarn changelog && git add CHANGELOG.md","cov":"yarn test && nyc report --reporter=html && hs coverage -s -o -c-1","cov:report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0"},"devDependencies":{"ava":"^2.1.0","codecov":"^3.5.0","conventional-changelog-cli":"^2.0.21","eslint":"^6.0.1","eslint-config-halo":"^2.4.2","http-serve":"^1.0.1","husky":"^3.0.0","np":"^5.0.3","npm-run-all":"^4.1.5","nyc":"^14.1.1","stylelint-config-recommended":"^2.2.0"},"dependencies":{"cosmiconfig":"^5.2.1","debug":"^4.1.1","get-stdin":"^7.0.0","globby":"^10.0.1","ignore":"^5.1.2","import-local":"^3.0.0","meow":"^5.0.0","pify":"^4.0.1","prettier":"^1.18.2","resolve-from":"^5.0.0","stylelint":"^10.1.0","temp-write":"^4.0.0","tempy":"^0.3.0","update-notifier":"^3.0.1"},"eslintConfig":{"extends":"halo/node"},"stylelint":{"extends":["stylelint-config-recommended","./config"],"rules":{"string-quotes":["single"],"indentation":[4,{"except":["value"]}],"color-hex-case":["upper"],"color-hex-length":["short"]}},"prettier":{"printWidth":80,"tabWidth":4,"useTabs":false,"semi":false,"singleQuote":true,"trailingComma":"none","bracketSpacing":true,"jsxBracketSameLine":false},"gitHead":"8e6963a6f8a543949b7ab34d214f49c334ee0d34","bugs":{"url":"https://github.com/hugomrdias/prettier-stylelint/issues"},"homepage":"https://github.com/hugomrdias/prettier-stylelint#readme","_id":"@cesargdm/prettier-stylelint@0.4.3","_nodeVersion":"10.15.3","_npmVersion":"6.10.0","dist":{"integrity":"sha512-RcxP5DtdnAoxB/quCaRmnYkgwupJidLGbVNgKrzHn3A7y7ZYzYNSnZhahFcAKFUB9dYO4eUDU4z8ozoB1OGVvg==","shasum":"0fde0a496d6d877518800af0d5f253a874394bb7","tarball":"https://registry.npmjs.org/@cesargdm/prettier-stylelint/-/prettier-stylelint-0.4.3.tgz","fileCount":33,"unpackedSize":689566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdH77PCRA9TVsSAnZWagAAqn0P/0uPgMfgLHOWphEN72W3\nvsPiCFybF+F+DnA3pSfgwtFlK4k9gf9CqUb4QGbNyAYX2lcLEIl7RppVZUTA\nrLuCB9FfZD0V3tiZ7nmQJAs5Nr0N40A+ZEWKGhVlmRw3LRY8AfgeaXRNM126\nz/kzm3ZWgY5xSqzlyw8kmMTJmSHnN2NS8Q9hGg9rIktRh4oyO4Upx7r2WbBJ\n7ZzUR8dWADibKrlBcEf2kiIqhesLJn+xoLH5NPS7vc8kmnU/q3SQgcQsFqPd\no2XwSBsuWzr7MfR4zglGt+XpMdASBFYa//ZdBPYkuRxgFVbdvbWIJXLu1YTO\nTOQuJwVW0gPm3KJKCAEfV87a0ZfJ40gg8egurfQiiqjnUn17odSLDEyktWFA\n1i6KRbYRBMaPht9DIElMitWI2hixpOkHxHRpKjKsIEH77JMSasiAwJ7dBApF\nysVwBVCyoTwCPhxQV+9rBmVa7vHqjNIoL9tewznvNDeY4Wgm51Sv7+8OBkXU\nsek9JCLYFR5dWmePshTd1GRWAd3E0V0F5QZsO3ynwaSogw+LQCUa14Lj6Ypl\nVSIraczjJWcFseG/fIqvFBEuR7986KvOJLpbcJz7GLihLxhYMx+FHFXw4I6h\nAJnAYxUOKaNIL4kvDNd+pa2O12tVbYs91IzC7Qj8X1Rf24w+c/TQuFijZ3/m\n+3In\r\n=UvvI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICPbxM3o/mp3rITC8BEUi47Y8WxckYLyVzYdowgI7hoBAiEAykSLzxP5Pgdrzi/g0f1yhpcAp0byWBRxq1OVePkprVw="}]},"maintainers":[{"name":"cesargdm","email":"cesarguadarrama@icloud.com"}],"_npmUser":{"name":"cesargdm","email":"cesarguadarrama@icloud.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prettier-stylelint_0.4.3_1562361550993_0.038317172425951895"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-05T21:18:55.489Z","0.4.2":"2019-07-05T21:18:55.832Z","modified":"2022-04-04T22:23:01.290Z","0.4.3":"2019-07-05T21:19:11.220Z"},"maintainers":[{"name":"cesargdm","email":"cesarguadarrama@icloud.com"}],"description":"code > prettier > stylelint > formatted code","homepage":"https://github.com/hugomrdias/prettier-stylelint#readme","keywords":["stylelint","prettier","style","lint","linter","validate","code style","strict","check"],"repository":{"type":"git","url":"git+https://github.com/hugomrdias/prettier-stylelint.git"},"author":{"name":"Hugo Dias","email":"mail@hugodias.me","url":"http://hugodias.me/"},"bugs":{"url":"https://github.com/hugomrdias/prettier-stylelint/issues"},"license":"MIT","readme":"# @cesargdm/prettier-stylelint [![NPM Version](https://img.shields.io/npm/v/prettier-stylelint.svg)](https://www.npmjs.com/package/prettier-stylelint) [![NPM Downloads](https://img.shields.io/npm/dt/prettier-stylelint.svg)](https://www.npmjs.com/package/prettier-stylelint) [![NPM License](https://img.shields.io/npm/l/prettier-stylelint.svg)](https://www.npmjs.com/package/prettier-stylelint) [![Build Status](https://travis-ci.org/hugomrdias/prettier-stylelint.svg?branch=master)](https://travis-ci.org/hugomrdias/prettier-stylelint) [![codecov](https://codecov.io/gh/hugomrdias/prettier-stylelint/branch/master/graph/badge.svg)](https://codecov.io/gh/hugomrdias/prettier-stylelint)\n> Format your styles with ease!\n\ncode > prettier > stylelint > formatted code   \n\nprettier-stylelint attempts to create a prettier config based on the stylelint config, then format with prettier followed by stylelint --fix. So after that you should end up with formatted code with no linting errors.\n\n## Install\n\n```bash\nyarn add @cesargdm/prettier-stylelint -D\nnpm install @cesargdm/prettier-stylelint --save-dev\n```\n\n## Usage\nThis package has a stylelint config to disable some rules that conflict with prettier.\n\n\n```json\n\"stylelint\": {\n    \"extends\": [\n        \"stylelint-config-idiomatic-order\",\n        \"./node_modules/prettier-stylelint/config.js\"\n    ],\n    \"rules\": {\n        \"indentation\": 4,\n        \"string-quotes\": \"single\"\n    }\n}\n\n```\n\nAfter adding the disabling config you can just `prettier-stylelint --write` and its done. Check the CLI options below for more information.   \nAlso in a near future we should have support for @cesargdm/prettier-stylelint in `prettier-vscode` follow this [PR](https://github.com/prettier/prettier-vscode/pull/218).\n\n\n### API\n```js\nconst format = require('prettier-eslint')\nconst sourceCode = 'a[id=\"foo\"] { content: \"x\"; }'\nconst options = {\n  text: sourceCode\n}\nconst formatted = format(options)\n\n\n// formatted\na[id='foo'] {\n    content: 'x';\n}\n```   \n\n### CLI Options\n\nThe cli automatically ignores `.gitignore` and `.prettierignore`.\n\n>**NOTE:** It is recommended that you keep your files under source control and committed\n> before running `prettier-stylelint --write` as it will overwrite your files!\n\n\n```\nUsage\n  $ @cesargdm/prettier-stylelint [<file|glob> ...]\n\nOptions\n  --ignore          Additional paths to ignore  [Can be set multiple times]\n  --extension       Additional extension to lint [Can be set multiple times]\n  --cwd=<dir>       Working directory for files\n  --stdin           Validate/fix code from stdin ('prettier-stylelint -' also works)\n  --write           Edit files in place (DRAGONS AHEAD !!)\n  --quiet -q        Only log stderr\n\nExamples\n  $ @cesargdm/prettier-stylelint\n  $ @cesargdm/prettier-stylelint index.js\n  $ @cesargdm/prettier-stylelint *.js !foo.js\n  $ echo 'a[id=\"foo\"] { content: \"x\"; }' | @cesargdm/prettier-stylelint --stdin\n\nDefault pattern when no arguments:\n  **/*.{css,scss,less,sss}\n```\n\n## Related\n\n- [prettier-vscode](https://github.com/esbenp/prettier-vscode) - prettier vscode extension\n- [prettier-eslint](https://github.com/prettier/prettier-eslint) - the inspiration for this package\n- [stylelint](https://github.com/stylelint/stylelint) - the linter ^^\n\n## License\n\nMIT © [Hugo Dias](https://hugodias.me)\n","readmeFilename":"README.md"}