{"id":18332485,"url":"https://github.com/cellular/cellular-lint","last_synced_at":"2025-04-06T03:33:47.748Z","repository":{"id":29358376,"uuid":"120930032","full_name":"cellular/cellular-lint","owner":"cellular","description":"CLI toolbox for linting projects","archived":false,"fork":false,"pushed_at":"2022-05-27T19:09:09.000Z","size":1541,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-21T16:21:25.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/cellular.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":"2018-02-09T16:38:43.000Z","updated_at":"2018-10-22T15:01:28.000Z","dependencies_parsed_at":"2022-07-27T18:35:02.853Z","dependency_job_id":null,"html_url":"https://github.com/cellular/cellular-lint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cellular%2Fcellular-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cellular%2Fcellular-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cellular%2Fcellular-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cellular%2Fcellular-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cellular","download_url":"https://codeload.github.com/cellular/cellular-lint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430838,"owners_count":20937873,"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":"2024-11-05T19:39:12.437Z","updated_at":"2025-04-06T03:33:43.141Z","avatar_url":"https://github.com/cellular.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cellular-lint\n\n[![Build Status](https://travis-ci.org/cellular/cellular-lint.svg?branch=master)](https://travis-ci.org/cellular/cellular-lint) [![Greenkeeper badge](https://badges.greenkeeper.io/cellular/cellular-lint.svg)](https://greenkeeper.io/)\n\nCLI toolbox for linting projects\n\n## Usage\n\nAdd the following script to your package.json:\n\n```json\n{\n  \"scripts\": {\n    \"lint\": \"cellular-lint\",\n    \"precommit\": \"cellular-lint-staged\"\n  }\n}\n```\n\n__NOTE:__ This package includes [husky](https://github.com/typicode/husky) which will install a Git-hook that executes the `precommit` script upon commits.\n\n## Binaries\n\n### `cellular-lint`\n\nRuns ESLint. If the project does not have any ESLint config, the following defaults are used instead:\n\n```json\n{\n  \"extends\": [\"cellular\"]\n}\n```\n\n__NOTE:__ This package has a `postinstall` script that will create a `.eslintrc` file with the defaults from above if the project does not contain any custom config.\n\n\n### `cellular-lint-staged`\n\nRuns lint-staged with the folloing settigns:\n\n```js\n{\n  linters: {\n    '**/*.+(js|mjs|jsx)': [\n      'cellular-lint --fix',\n      'cellular-flow focus-check', // if flow is present\n      'git add'\n    ]\n  }\n}\n```\n\n__NOTE:__ If the project contains a `.lintstagedrc` or `lint-staged.config.js` file that config will be used instead.\n\n\n### `cellular-flow`\n\nThis is just a wrapper around the `flow` binary. Why? It's not uncommon for projects to contain an npm script called \"flow\". If such a script exists, lint-staged will run this instead of the actual flow binary which would prevent `flow focus-check` from working! To fix this we use `cellular-flow` as alias in our lint-staged configuration.\n\n# License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcellular%2Fcellular-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcellular%2Fcellular-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcellular%2Fcellular-lint/lists"}