{"_id":"@alexrafael10/eslint-plugin-prettier-vue","_rev":"1-8401b231798050c282cf5244e01612c9","name":"@alexrafael10/eslint-plugin-prettier-vue","dist-tags":{"latest":"2.1.2"},"versions":{"2.1.2":{"name":"@alexrafael10/eslint-plugin-prettier-vue","version":"2.1.2","description":"ESLint plugin for Prettier formatting, which is better for Vue SFC","homepage":"https://github.com/meteorlxy/eslint-plugin-prettier-vue","repository":{"type":"git","url":"git+https://github.com/alexrafael10/eslint-plugin-prettier-vue.git"},"author":{"name":"meteorlxy","email":"meteor.lxy@foxmail.com"},"license":"MIT","main":"lib/index.js","scripts":{"lint":"eslint ./lib","version":"conventional-changelog -p angular -i CHANGELOG.md -s -r 1 && git add CHANGELOG.md","publish":"git push origin master:master --tags"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js}":["eslint --fix","git add"]},"dependencies":{"@vue/component-compiler-utils":"^3.1.2","chalk":"^4.0.0","prettier":"^1.18.2 || ^2.0.0","prettier-linter-helpers":"^1.0.0","vue-template-compiler":"^2.0.0"},"devDependencies":{"conventional-changelog-cli":"^2.0.31","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.20.2","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-self":"^1.2.0","eslint-plugin-standard":"^4.0.1","eslint-plugin-vue":"^6.2.2","husky":"^4.2.5","lint-staged":"^10.1.7"},"gitHead":"f9329aaf8333fd3f61e6649c7ecf55311425e881","bugs":{"url":"https://github.com/alexrafael10/eslint-plugin-prettier-vue/issues"},"_id":"@alexrafael10/eslint-plugin-prettier-vue@2.1.2","_nodeVersion":"10.22.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-cAGTi+t/e/BQSBZOqCsDCFXYZSu4Cj2TVnraMAbcixGrf2rvi6kG1vO10EtMEctAdQa8+TNkP4vhuZ02exTJ1A==","shasum":"c1ae8d7ac5105f1a5dc725b1dc6976a3a8a4fa71","tarball":"https://registry.npmjs.org/@alexrafael10/eslint-plugin-prettier-vue/-/eslint-plugin-prettier-vue-2.1.2.tgz","fileCount":13,"unpackedSize":26217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbOjdCRA9TVsSAnZWagAAC4UP/1FdfQFlPUuKkxmnYNAo\nK6yq9UGjNsDlW0SJ0HrXQZekPGLySb/VnKFa/Ba6vOeuwYZsmOhSIarqF4T3\nQ8RqeDHbj8QufOqqQRHeuM82pmj5r7kB1i5cvo9TEcBHdoRFIsd+eSdFwm5/\nrTCSi5gkcMCmiHyRpX11b8bo67Ogo7116ISGndj6FAmPUVnSVA02zvhSSnOD\n6mREeMcHy7/6AFMhFp96M+OzM+T9y6+j//LrGG0okZ2V7iouauBhWa+3rw8t\nF7EHEn2Dj1dPbEcRk8yQP27+W1qWjyplfZ7ub99oOcNgLEvtecOoZ8pRAqbl\nQ9F4VKJQnG1VfXFTudHOq48ehi0n9two/OZ1DoW8Uy577TG8c7B31ZiTWQUA\nSM1c/uE2AGbSTPWJEUKSuHWbBet6rz8qMV6muWQkthWt6qZeMCDtoS3yWnpZ\nyvJLvbo4HpntnPd23CyKqTWWbI5oR71sNhJXWpZwI/y+XyW8h0XQhB3yw+bQ\n73IoV4grpHDKOEGWOF0O3YbO/qE2gZYdiZp1KdwLafKhV0bVCs1pDZFqAj/R\n5nuW3FaErWyDmGJAWc6WxCjfwRjgIKlqqnvMcYtMjlPK43bgD4Dlwl00pgj3\nNp6hLdKYMHx6A1Q6N3wqy5oIcg9gj7NNTPglhd+24E212E196Jp0VpVTa6pn\nJCmO\r\n=1+Ga\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyaX2/2qkAz+IoMD8pm2f2zYUtVOZH9ynXcbaJbx4P8AiEAjyPAsIqbmk587xYXYp1PuXg7hgeNzuAv+NeZGsDTycI="}]},"maintainers":[{"name":"alexrafael10","email":"alexrafael10@gmail.com"}],"_npmUser":{"name":"alexrafael10","email":"alexrafael10@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-prettier-vue_2.1.2_1600973021535_0.4753329434708149"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-24T18:43:41.485Z","2.1.2":"2020-09-24T18:43:41.663Z","modified":"2022-04-04T12:41:29.484Z"},"maintainers":[{"name":"alexrafael10","email":"alexrafael10@gmail.com"}],"description":"ESLint plugin for Prettier formatting, which is better for Vue SFC","homepage":"https://github.com/meteorlxy/eslint-plugin-prettier-vue","repository":{"type":"git","url":"git+https://github.com/alexrafael10/eslint-plugin-prettier-vue.git"},"author":{"name":"meteorlxy","email":"meteor.lxy@foxmail.com"},"bugs":{"url":"https://github.com/alexrafael10/eslint-plugin-prettier-vue/issues"},"license":"MIT","readme":"[ This is a fork of the original package ]\r\n\r\n__Current branch is mainly for vue 2.0__\r\n\r\n__For better vue 3.0 support, check the [next](https://github.com/meteorlxy/eslint-plugin-prettier-vue/tree/next) branch__\r\n\r\n# eslint-plugin-prettier-vue\r\n\r\n[![npm](https://img.shields.io/npm/v/eslint-plugin-prettier-vue)](https://www.npmjs.com/package/eslint-plugin-prettier-vue)\r\n[![prettier](https://img.shields.io/badge/code%20style-prettier-blue)](https://github.com/prettier/prettier)\r\n[![GitHub](https://img.shields.io/github/license/meteorlxy/eslint-plugin-prettier-vue)](https://github.com/meteorlxy/eslint-plugin-prettier-vue/blob/master/LICENSE)\r\n\r\n> Make prettier works better on Vue SFCs\r\n\r\n- Includes all functions of [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier).\r\n- Provides the ability for `prettier` to process [custom blocks](https://vue-loader.vuejs.org/guide/custom-blocks.html) of Vue SFCs.\r\n- Options to disable `prettier` for `<template>`, `<script>` or `<style>` blocks of Vue SFCs.\r\n\r\n## Demo\r\n\r\nPrettier custom blocks:\r\n\r\n![demo](https://user-images.githubusercontent.com/18205362/63491748-9a33fb00-c4ea-11e9-9f2e-cdb9b1dab8f1.gif)\r\n\r\n## Usage\r\n\r\n### Installation\r\n\r\n```sh\r\nnpm install --save-dev \\\r\n  eslint-plugin-prettier-vue \\\r\n  eslint-plugin-vue \\\r\n  eslint-config-prettier \\\r\n  eslint \\\r\n  prettier\r\n```\r\n\r\n### ESLint Config\r\n\r\n__DO NOT__ use `eslint-plugin-prettier` together. This plugin is based on `eslint-plugin-prettier` so you do not need it.\r\n\r\n```js\r\n// .eslintrc.js\r\nmodule.exports = {\r\n  extends: [\r\n    'plugin:vue/recommended',\r\n    'plugin:prettier-vue/recommended',\r\n    // Do not add `'prettier/vue'` if you don't want to use prettier for `<template>` blocks\r\n    'prettier/vue',\r\n  ],\r\n\r\n  settings: {\r\n    'prettier-vue': {\r\n      // Settings for how to process Vue SFC Blocks\r\n      SFCBlocks: {\r\n        /**\r\n         * Use prettier to process `<template>` blocks or not\r\n         *\r\n         * If set to `false`, remember not to `extends: ['prettier/vue']`, as you need the rules from `eslint-plugin-vue` to lint `<template>` blocks\r\n         *\r\n         * @default true\r\n         */\r\n        template: false,\r\n\r\n        /**\r\n         * Use prettier to process `<script>` blocks or not\r\n         *\r\n         * @default true\r\n         */\r\n        script: true,\r\n\r\n        /**\r\n         * Use prettier to process `<style>` blocks or not\r\n         *\r\n         * @default true\r\n         */\r\n        style: true,\r\n\r\n        // Settings for how to process custom blocks\r\n        customBlocks: {\r\n          // Treat the `<docs>` block as a `.markdown` file\r\n          docs: { lang: 'markdown' },\r\n\r\n          // Treat the `<config>` block as a `.json` file\r\n          config: { lang: 'json' },\r\n\r\n          // Treat the `<module>` block as a `.js` file\r\n          module: { lang: 'js' },\r\n\r\n          // Ignore `<comments>` block (omit it or set it to `false` to ignore the block)\r\n          comments: false,\r\n\r\n          // Other custom blocks that are not listed here will be ignored\r\n        },\r\n      },\r\n\r\n      // Use prettierrc for prettier options or not (default: `true`)\r\n      usePrettierrc: true,\r\n\r\n      // Set the options for `prettier.getFileInfo`.\r\n      // @see https://prettier.io/docs/en/api.html#prettiergetfileinfofilepath-options\r\n      fileInfoOptions: {\r\n        // Path to ignore file (default: `'.prettierignore'`)\r\n        // Notice that the ignore file is only used for this plugin\r\n        ignorePath: '.testignore',\r\n\r\n        // Process the files in `node_modules` or not (default: `false`)\r\n        withNodeModules: false,\r\n      },\r\n    },\r\n  },\r\n\r\n  rules: {\r\n    'prettier-vue/prettier': [\r\n      'error',\r\n      {\r\n        // Override all options of `prettier` here\r\n        // @see https://prettier.io/docs/en/options.html\r\n        printWidth: 100,\r\n        singleQuote: true,\r\n        semi: false,\r\n        trailingComma: 'es5',\r\n      },\r\n    ],\r\n  },\r\n}\r\n```\r\n\r\n## LICENSE\r\n\r\n[MIT](https://github.com/meteorlxy/eslint-plugin-prettier-vue/blob/master/LICENSE) &copy; [@meteorlxy](https://github.com/meteorlxy) & [Contributors](https://github.com/meteorlxy/eslint-plugin-prettier-vue/graphs/contributors)\r\n","readmeFilename":"README.md"}