{"id":15198530,"url":"https://github.com/devrsi0n/eslint-config-prettify","last_synced_at":"2025-10-28T10:32:34.645Z","repository":{"id":44566515,"uuid":"137882953","full_name":"devrsi0n/eslint-config-prettify","owner":"devrsi0n","description":"A set of pretty eslint configs with prettier include. Support for React/TypeScript/ES2019.","archived":false,"fork":false,"pushed_at":"2022-02-08T01:50:44.000Z","size":873,"stargazers_count":14,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T03:33:17.831Z","etag":null,"topics":["eslint-config","eslint-configs","react","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/devrsi0n.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-06-19T11:34:45.000Z","updated_at":"2023-08-24T07:54:42.000Z","dependencies_parsed_at":"2022-09-11T20:31:12.506Z","dependency_job_id":null,"html_url":"https://github.com/devrsi0n/eslint-config-prettify","commit_stats":null,"previous_names":["devrsi0n/eslint-config"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrsi0n%2Feslint-config-prettify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrsi0n%2Feslint-config-prettify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrsi0n%2Feslint-config-prettify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrsi0n%2Feslint-config-prettify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devrsi0n","download_url":"https://codeload.github.com/devrsi0n/eslint-config-prettify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238638025,"owners_count":19505517,"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":["eslint-config","eslint-configs","react","typescript"],"created_at":"2024-09-28T01:21:01.552Z","updated_at":"2025-10-28T10:32:34.229Z","avatar_url":"https://github.com/devrsi0n.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-prettify\n\n[![version](https://img.shields.io/npm/v/eslint-config-prettify-base.svg?style=flat-square)](http://npm.im/eslint-config-prettify-base)\n[![MIT License](https://img.shields.io/npm/l/eslint-config-prettify-base.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=flat-square)](https://lerna.js.org/)\n\nA set of prettify eslint configs with prettier and Airbnb rules include. Support for React/TypeScript/ES2019/Node.\n\nThis repo container 4 npm packages.\n\n- `eslint-config-prettify-base` for ES2019 or Node project\n- `eslint-config-prettify-react` for React JavaScript project\n- `eslint-config-prettify-ts-base` for vanilla TypeScript project\n- `eslint-config-prettify-ts-react` for React TypeScript project\n\n## Quick start\n\nChose proper config 👆, and install dependencies. For example, `eslint-config-prettify-base`:\n\n```bash\n# Just those two dependencies, no need for extra parser, plugins or configs\nyarn add --dev eslint eslint-config-prettify-base prettier\n# Or using npm if you prefer\nnpm install --save-dev eslint eslint-config-prettify-base prettier\n```\n\nUpgrade your ESLint config\n\n```json\n// .eslintrc\n{\n  \"root\": true,\n  \"extends\": [\"eslint-config-prettify-base\"]\n}\n```\n\n## Configuration\n\n### tsconfig path\n\n`eslint-config-prettify-ts-react` and `eslint-config-prettify-ts-base` using command executing directory to detect `tsconfig.json`(for TypeScript path alias), try below configuration if you meet `Unable to resolve path to module ‘xxx’` error.\n\n```js\n{\n  \"extends\": [\"eslint-config-prettify-base\"],\n  \"settings\": {\n    \"import/parsers\": {\n      \"@typescript-eslint/parser\": [\".ts\", \".tsx\"]\n    },\n    \"import/resolver\": {\n      // use \u003croot\u003e/tsconfig.json\n      \"typescript\": {\n        // always try to resolve types under `\u003croot/\u003e@types` directory even it doesn't contain any source code, like `@types/unist`\n        \"alwaysTryTypes\": true,\n        // use \u003croot\u003e/path/to/folder/tsconfig.json\n        \"directory\": \"./path/to/folder\"\n      },\n\n      // Multiple tsconfigs (Useful for monorepos)\n\n      // use a glob pattern\n      \"typescript\": {\n        \"directory\": \"./packages/*/tsconfig.json\"\n      },\n\n      // use an array\n      \"typescript\": {\n        \"directory\": [\n          \"./packages/module-a/tsconfig.json\",\n          \"./packages/module-b/tsconfig.json\"\n        ]\n      },\n  }\n}\n```\n\n## Development\n\nThis monorepo managed by [lerna](https://lerna.js.org/) with yarn workspace.\n\n### Install dependencies\n\n```bash\n# Trigger 'lerna bootstrap'\nyarn\n```\n\n### Test\n\nUnit tests write with jest\n\n```bash\nyarn test\n```\n\n### Commit\n\nCommit message lint by [commitlint](https://github.com/conventional-changelog/commitlint) with config `@commitlint/config-conventional`, scope must be package's names.For example, `fix(base): import module unsolved`.\n\n### Publish\n\n```bash\n# Create package CHANGELOG.md, increase package.json version and git commit and tag\nyarn run release\n# Publish release version\nyarn run publish\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevrsi0n%2Feslint-config-prettify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevrsi0n%2Feslint-config-prettify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevrsi0n%2Feslint-config-prettify/lists"}