{"analyzedAt":"2022-07-05T09:59:36.938Z","collected":{"metadata":{"name":"@thunder-tools/prettier-plugin-formatter","scope":"thunder-tools","version":"1.1.1","description":"A prettier formatter plugin, supporting to sort and remove unused imports","date":"2020-11-02T16:15:22.959Z","author":{"name":"Kay - Khanh Bùi","email":"khanhbui.lab@gmail.com","username":"thunder-tools"},"publisher":{"username":"thunder-tools","email":"khanhbui.lab@gmail.com"},"maintainers":[{"username":"thunder-tools","email":"khanhbui.lab@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/rwxrwx-rwx/thunder-web-tools.git"},"links":{"npm":"https://www.npmjs.com/package/%40thunder-tools%2Fprettier-plugin-formatter"},"license":"MIT","dependencies":{"import-sort":"6.0.0","import-sort-config":"6.0.0","import-sort-parser-babylon":"6.0.0","import-sort-parser-typescript":"6.0.0","import-sort-style-eslint":"6.0.0","import-sort-style-module":"6.0.0","import-sort-style-renke":"6.0.0","js-beautify":"1.13.0","posthtml":"0.13.1","posthtml-attrs-sorter":"1.1.0","prettier":"^2.1.2","typescript-parser":"2.6.1"},"releases":[{"from":"2022-06-05T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":0},{"from":"2022-04-06T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":1},{"from":"2022-01-06T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":1},{"from":"2021-07-05T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":1},{"from":"2020-07-05T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":6}],"readme":"A prettier formatter plugin, supporting to sort and remove unused imports.\n\nThis plugin can work well with vscode, prettier cli and pretty-quick.\n\n<img src=\"https://raw.githubusercontent.com/rwxrwx-rwx/thunder-web-tools/HEAD/packages/prettier-plugin-formatter/assets/prettier-plugin-formatter.gif?raw=true\" width=\"700\">\n\n## Installation\n\n```\nyarn add -D @thunder-tools/prettier-plugin-formatter\n```\n\n## Usage with Visual Studio Code\n\nInstall Prettier extension for vscode:\n\n```\nesbenp.prettier-vscode\n```\n\nTo apply auto format on save for vscode, you must create \".vscode > settings.json\" with properties:\n\n```\n\"[typescript]\": {\n    \"editor.defaultFormatter\": \"esbenp.prettier-vscode\"\n},\n\"editor.formatOnSave\": true\n```\n\nThen restart vscode\n\n## Usage with prettier cli\n\nYou can format ts imports using prettier cli, the example command line:\n\n```\nyarn prettier src\\app\\app.component.ts\n```\n\n## Usage with lint-staged, pretty-quick\n\nThe tool can also format staged files before committing by GIT.\n\nFirstly, we install the needed libraries.\n\n```\nyarn add -D lint-staged pretty-quick\n```\n\nThen we register this code to package.json\n\n```\n\"lint-staged\": {\n  \"*.{ts,tsx,js,jsx,json,scss,md}\": [\n    \"pretty-quick --staged\",\n    \"git add -f\"\n  ]\n},\n```"},"npm":{"downloads":[{"from":"2022-07-04T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":8},{"from":"2022-06-28T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":13},{"from":"2022-06-05T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":130},{"from":"2022-04-06T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":435},{"from":"2022-01-06T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":904},{"from":"2021-07-05T00:00:00.000Z","to":"2022-07-05T00:00:00.000Z","count":2505}],"starsCount":0}},"evaluation":{"quality":{"carefulness":0.33,"tests":0,"health":0,"branding":0},"popularity":{"communityInterest":0,"downloadsCount":145,"downloadsAcceleration":-1.0926179604261799,"dependentsCount":0},"maintenance":{"releasesFrequency":0.34828767123287674,"commitsFrequency":0,"openIssues":0,"issuesDistribution":0}},"score":{"final":0.18025947566092937,"detail":{"quality":0.20086796360358883,"popularity":0.01014057009787193,"maintenance":0.33271396298742156}}}