{"id":26709398,"url":"https://github.com/js-bits/formalinter","last_synced_at":"2026-05-03T19:33:24.459Z","repository":{"id":57122329,"uuid":"344595498","full_name":"js-bits/formalinter","owner":"js-bits","description":"Add formatting and linting to your project in one simple step","archived":false,"fork":false,"pushed_at":"2023-07-19T01:40:09.000Z","size":500,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T11:53:49.443Z","etag":null,"topics":["formatting","javascript","linting","tooling","vscode"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"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/js-bits.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-03-04T20:05:36.000Z","updated_at":"2023-07-03T20:52:44.000Z","dependencies_parsed_at":"2024-11-18T07:47:02.496Z","dependency_job_id":null,"html_url":"https://github.com/js-bits/formalinter","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bits%2Fformalinter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bits%2Fformalinter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bits%2Fformalinter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bits%2Fformalinter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-bits","download_url":"https://codeload.github.com/js-bits/formalinter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806447,"owners_count":20675298,"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":["formatting","javascript","linting","tooling","vscode"],"created_at":"2025-03-27T08:16:46.558Z","updated_at":"2026-05-03T19:33:19.413Z","avatar_url":"https://github.com/js-bits.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Add basic formatting and linting to your project in one simple step\n\nThis package incudes standardized ESLint and Prettier configuration, automatically adds `lint` NPM script for source code linting and enables auto-formatting in [Visual Studio Code](https://code.visualstudio.com/).\n\n## Installation\n\nInstall with npm:\n\n```\nnpm install @js-bits/formalinter -D\n```\n\nInstall with yarn:\n\n```\nyarn add @js-bits/formalinter -D\n```\n\nThat's all you need to do.\n\n## VS Code Integration\n\n1. Install [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) extensions for VSCode if you haven't already done so.\n1. Restart VSCode to make sure that updated configuration is applied.\n1. Enjoy 🎉\n\n## Customization\n\nFormalinter adds the following to your project's package.json\n\n```\n  \"scripts\": {\n    ...\n    \"lint\": \"eslint '**/*.{js,jsx}'\"\n  },\n  \"prettier\": \"@js-bits/formalinter/.prettierrc.json\",\n  \"eslintConfig\": {\n    \"extends\": \"@js-bits/eslint-config-formalinter/.eslintrc.json\"\n  }\n```\n\nFor further information regarding ESLint and Prettier customization please refer to sharable config docs:\n\n- ESLint: [Shareable Configs](https://eslint.org/docs/developer-guide/shareable-configs)\n- Prettier: [Sharing configurations](https://prettier.io/docs/en/configuration.html#sharing-configurations)\n\n## Developer notes\n\n(!) NOTE: `eslint-config-` prefix is required by ESLint\n\n\u003e Shareable configs are simply npm packages that export a configuration object. Make sure the module name begins with `eslint-config-`, such as `eslint-config-myconfig`. npm scoped modules are also supported, by naming or prefixing the module with `@scope/eslint-config`, such as `@scope/eslint-config` or `@scope/eslint-config-myconfig`.\n\n### Useful links\n\n- [https://glebbahmutov.com/blog/configure-prettier-in-vscode/#format-json-files-with-prettier](https://glebbahmutov.com/blog/configure-prettier-in-vscode/#format-json-files-with-prettier)\n- [https://blog.echobind.com/integrating-prettier-eslint-airbnb-style-guide-in-vscode-47f07b5d7d6a](https://blog.echobind.com/integrating-prettier-eslint-airbnb-style-guide-in-vscode-47f07b5d7d6a)\n- [https://scotch.io/tutorials/linting-and-formatting-with-eslint-in-vs-code](https://scotch.io/tutorials/linting-and-formatting-with-eslint-in-vs-code)\n\n### VSCode integration issues\n\n- [Unable to resolve custom configuration module](https://github.com/prettier/prettier-vscode/issues/1289)\n- [Extension not auto-fixing on Save](https://github.com/microsoft/vscode-eslint/issues/833)\n- [Code Actions on Save for a particular source waits for all outstanding code action requests to complete](https://github.com/microsoft/vscode/issues/89745)\n- [not working with eslint 6](https://github.com/prettier/prettier-vscode/issues/870#issuecomment-571163060)\n\n### Other issues\n\n- [Parsing error: Unexpected token](https://stackoverflow.com/questions/36001552/eslint-parsing-error-unexpected-token)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-bits%2Fformalinter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-bits%2Fformalinter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-bits%2Fformalinter/lists"}