UNPKG

prettier-plugin-sorted

Version:

Sort your JavaScript and TypeScript imports with prettier with automatic alias support

126 lines (125 loc) 2.87 kB
{ "name": "prettier-plugin-sorted", "version": "2.0.0", "description": "Sort your JavaScript and TypeScript imports with prettier with automatic alias support", "keywords": [ "import-sort", "prettier", "sort", "typescript", "plugin", "tsconfig", "alias" ], "license": "MIT", "author": { "name": "Ifiok Jr.", "email": "ifiokotung@gmail.com", "url": "https://ifiokjr.com" }, "files": [ "dist", "src" ], "main": "dist/index.js", "module": "dist/prettier-plugin-sorted.esm.js", "typings": "dist/index.d.ts", "scripts": { "build": "tsdx build", "lint": "tsdx lint", "prepare": "tsdx build", "start": "tsdx watch", "test": "tsdx test" }, "husky": { "hooks": { "pre-commit": "tsdx lint", "pre-push": "yarn tsc --noEmit && yarn lint && yarn test" } }, "prettier": { "plugins": [ "./node_modules/prettier-plugin-packagejson", "./" ], "printWidth": 80, "semi": true, "singleQuote": true, "trailingComma": "all" }, "resolutions": { "mem": ">=4", "minimist": ">=1.2.2" }, "dependencies": { "@types/prettier": "^2.0.0", "import-sort": "^6.0.0", "import-sort-config": "^6.0.0", "import-sort-parser-typescript": "^6.0.0", "import-sort-style-custom": "^2.1.2", "tiny-invariant": "^1.1.0" }, "devDependencies": { "@semantic-release/changelog": "^5.0.1", "@semantic-release/git": "^9.0.0", "@types/jest": "^25.2.1", "conventional-changelog-conventionalcommits": "^4.2.3", "husky": "^4.2.5", "lint-staged": "^10.2.0", "prettier": "^2.0.0", "prettier-plugin-packagejson": "^2.2.2", "semantic-release": "^17.0.7", "tsdx": "^0.13.2", "tslib": "^1.11.1", "typescript": "^3.8.3" }, "peerDependencies": { "prettier": "^2.0.0" }, "importSort": { ".js,.ts,.tsx": { "options": { "cacheStrategy": "directory", "wildcardAtStart": false, "ignoredAliases": [], "extraAliases": [ "@my-alias", "simple" ], "bottomAliases": [ "@bottom", "./relative/bottom" ] } } }, "release": { "plugins": [ [ "@semantic-release/commit-analyzer", { "preset": "conventionalcommits" } ], [ "@semantic-release/release-notes-generator", { "preset": "conventionalcommits" } ], "@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/github", [ "@semantic-release/git", { "assets": [ "package.json", "CHANGELOG.md" ], "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" } ] ] } }