{"id":26266094,"url":"https://github.com/calvin-ll/import-sort-parser-babel-vue","last_synced_at":"2025-03-14T03:16:49.669Z","repository":{"id":42877199,"uuid":"256841508","full_name":"Calvin-LL/import-sort-parser-babel-vue","owner":"Calvin-LL","description":"An import-sort parser for Vue based on import-sort-parser-babylon","archived":false,"fork":false,"pushed_at":"2023-01-06T03:44:56.000Z","size":376,"stargazers_count":0,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T17:25:20.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Calvin-LL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-18T19:57:39.000Z","updated_at":"2020-08-18T18:42:02.000Z","dependencies_parsed_at":"2023-02-05T06:01:29.778Z","dependency_job_id":null,"html_url":"https://github.com/Calvin-LL/import-sort-parser-babel-vue","commit_stats":null,"previous_names":["coolcyberbrain/import-sort-parser-babel-vue"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calvin-LL%2Fimport-sort-parser-babel-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calvin-LL%2Fimport-sort-parser-babel-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calvin-LL%2Fimport-sort-parser-babel-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calvin-LL%2Fimport-sort-parser-babel-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Calvin-LL","download_url":"https://codeload.github.com/Calvin-LL/import-sort-parser-babel-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243515532,"owners_count":20303258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-14T03:16:49.036Z","updated_at":"2025-03-14T03:16:49.654Z","avatar_url":"https://github.com/Calvin-LL.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# import-sort-parser-babel-vue\nVue parser for import-sort. Works with typescript or flow in Vue Single File Components, or just plain typescript or flow code. Most of the code is from [import-sort-parser-babylon](https://github.com/renke/import-sort/tree/master/packages/import-sort-parser-babylon).\n\n# Set-up\n[See more about importsortrc](https://github.com/renke/import-sort#using-a-different-style-or-parser)\n\n#### Add the following in `.importsortrc`\n```\n\".js, .jsx, .es6, .es, .mjs, .ts, .tsx, .vue\": {\n  \"parser\": \"import-sort-parser-babel-vue\",\n  \"style\": \"eslint\"\n}\n```\n#### Or add the following in `package.json`\n```\n\"importSort\": {\n  \".js, .jsx, .es6, .es, .mjs, .ts, .tsx, .vue\": {\n    \"parser\": \"import-sort-parser-babel-vue\",\n    \"style\": \"eslint\"\n  }\n}\n```\n\nPersonally I prefer `\"style\": \"module\"`, you'll need to install `import-sort-style-module`.\n\n# Result\nThe extra line above the first import is unavoidable because of the design of [import-sort](https://github.com/renke/import-sort)\n```\n\u003ctemplate\u003e\n  \u003cdiv class=\"container\"\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript lang=\"ts\"\u003e\n\nimport Vue from \"vue\";\n\nexport default Vue.extend({\n});\n\u003c/script\u003e\n\n\u003cstyle lang=\"scss\"\u003e\n@import \"@/assets/mixins\";\n\n.container {\n}\n\u003c/style\u003e\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalvin-ll%2Fimport-sort-parser-babel-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalvin-ll%2Fimport-sort-parser-babel-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalvin-ll%2Fimport-sort-parser-babel-vue/lists"}