{"id":19738781,"url":"https://github.com/adhamu/zero","last_synced_at":"2025-04-30T05:31:53.745Z","repository":{"id":45425470,"uuid":"436005018","full_name":"adhamu/zero","owner":"adhamu","description":"Formatting and linting configurations","archived":false,"fork":false,"pushed_at":"2023-09-26T08:53:48.000Z","size":292,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T13:51:03.997Z","etag":null,"topics":["emotion","eslint","jest","node","nvm","prettier","react","stylelint","tsconfig","typescript","vscode","yarn"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adhamu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-07T19:38:27.000Z","updated_at":"2023-03-09T01:30:27.000Z","dependencies_parsed_at":"2024-10-29T12:51:55.277Z","dependency_job_id":null,"html_url":"https://github.com/adhamu/zero","commit_stats":{"total_commits":84,"total_committers":4,"mean_commits":21.0,"dds":"0.47619047619047616","last_synced_commit":"8bea5dbc46ff9c1f06aa2f57b74409ffc8552e9a"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhamu%2Fzero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhamu%2Fzero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhamu%2Fzero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adhamu%2Fzero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adhamu","download_url":"https://codeload.github.com/adhamu/zero/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223772311,"owners_count":17199977,"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":["emotion","eslint","jest","node","nvm","prettier","react","stylelint","tsconfig","typescript","vscode","yarn"],"created_at":"2024-11-12T01:15:19.897Z","updated_at":"2025-04-30T05:31:53.739Z","avatar_url":"https://github.com/adhamu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zero\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/adhamu/zero/main/logo.png\" alt=\"drawing\" width=\"350\"/\u003e\n\nShared linting and formatting configurations.\n\n[![Build](https://github.com/adhamu/zero/workflows/CI/badge.svg)](https://github.com/adhamu/zero/actions)\n\n\u003c/div\u003e\n\n## Includes\n\n- [Installation](#installation)\n- [Requirements](#requirements)\n- [Usage](#usage)\n  - [Quickstart](#quickstart)\n  - [Manual](#manual)\n    - [ESLint](#eslint)\n    - [Prettier](#prettier)\n    - [Stylelint](#stylelint)\n    - [TSConfig](#tsconfig)\n    - [Jest](#jest)\n\n## Installation\n\n```sh\nyarn add @adhamu/zero -D\n```\n\n## Usage\n\n### Setup Wizard\n\n```sh\nnpx zero\n```\n\n### Manual\n\nAlternatively, you can selectively install the configurations you need.\n\n#### ESLint\n\n```sh\ncat \u003e eslint.config.js \u003c\u003c EOF\nconst eslintConfig = require('@adhamu/zero/eslint')\n\nmodule.exports = eslintConfig\nEOF\n```\n\nIf you would like to override any settings:\n\n```sh\ncat \u003e eslint.config.js \u003c\u003c EOF\nconst eslintConfig = require('@adhamu/zero/eslint')\n\nmodule.exports = [\n  ...eslintConfig,\n  {\n    rules: {\n      '@typescript-eslint/no-explicit-any': 'warn',\n    },\n  },\n]\nEOF\n```\n\n##### Ignoring files\n\n**Note** There is no longer an `.eslintignore`. To configure ignore patterns, you need to do something like:\n\n```javascript\nconst eslintConfig = require('@adhamu/zero/eslint')\n\nmodule.exports = [{ ignores: ['**/dist/*'] }, ...eslintConfig]\n```\n\n**Note** By default, anything in your `.gitignore` is automatically ignored by ESLint\n\n- [See configurations](./eslint)\n\n#### Prettier\n\n```sh\ncat \u003e .prettierrc.yaml \u003c\u003c EOF\n\"@adhamu/zero/prettier\"\nEOF\n```\n\nIf you would like to override any Prettier settings, you can instead use a Javascript file:\n\n```shell\ncat \u003e .prettierrc.js \u003c\u003c EOF\nmodule.exports = {\n  ...require('@adhamu/zero/prettier'),\n  semi: true,\n}\nEOF\n```\n\n- [See configurations](./prettier)\n\n#### Stylelint\n\n```sh\ncat \u003e stylelint.config.js \u003c\u003c EOF\nconst stylelintConfig = require('@adhamu/zero/stylelint')\n\nmodule.exports = stylelintConfig\nEOF\n```\n\n- [See configurations](./stylelint)\n\n#### TSConfig\n\n```sh\ncat \u003e tsconfig.json \u003c\u003c EOF\n{\n  \"extends\": \"@adhamu/zero/tsconfig/base.json\",\n  \"include\": [\"src/**/*.ts\"],\n  \"compilerOptions\": {\n    \"outDir\": \"./dist\"\n  }\n}\nEOF\n```\n\n- [See configurations](./tsconfig)\n\n#### Jest\n\n```sh\ncat \u003e jest.config.js \u003c\u003c EOF\nmodule.exports = {\n  ...require('@adhamu/zero/jest'),\n  transform: { '^.+\\\\.ts(x)?$': 'ts-jest' },\n}\nEOF\n```\n\nNote: You will need to install your own transformer. Eg. `ts-jest`, `@swc/jest` etc.\n\n- [See configuration](./jest)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadhamu%2Fzero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadhamu%2Fzero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadhamu%2Fzero/lists"}