{"id":16330864,"url":"https://github.com/amarcruz/eslint-config-standardize","last_synced_at":"2025-10-25T22:30:22.713Z","repository":{"id":57229245,"uuid":"170793630","full_name":"aMarCruz/eslint-config-standardize","owner":"aMarCruz","description":"My personal configuration based on StandardJS, ready for JavaScript and TypeScript","archived":false,"fork":false,"pushed_at":"2021-04-28T15:15:04.000Z","size":125,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T10:51:15.426Z","etag":null,"topics":["config","eslint","eslint-plugin-prettierx","eslint-rule","javascript","lint","plugin","preact","preset","prettierx","standardjs","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/aMarCruz.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":"2019-02-15T03:04:28.000Z","updated_at":"2024-09-29T16:14:19.000Z","dependencies_parsed_at":"2022-09-14T14:50:23.741Z","dependency_job_id":null,"html_url":"https://github.com/aMarCruz/eslint-config-standardize","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aMarCruz%2Feslint-config-standardize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aMarCruz%2Feslint-config-standardize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aMarCruz%2Feslint-config-standardize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aMarCruz%2Feslint-config-standardize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aMarCruz","download_url":"https://codeload.github.com/aMarCruz/eslint-config-standardize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238216885,"owners_count":19435610,"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":["config","eslint","eslint-plugin-prettierx","eslint-rule","javascript","lint","plugin","preact","preset","prettierx","standardjs","typescript"],"created_at":"2024-10-10T23:24:46.071Z","updated_at":"2025-10-25T22:30:17.359Z","avatar_url":"https://github.com/aMarCruz.png","language":"JavaScript","funding_links":["https://ko-fi.com/C0C7LF7I"],"categories":[],"sub_categories":[],"readme":"# eslint-config-standardize\n\n[![License][license-badge]][license-url]\n[![npm Version][npm-badge]][npm-url]\n\n## IMPORTANT\n\neslint-config-standardize was my first attempt to integrate ESLint with TypeScript and React. Currently, the package that my team and I use is [@quitsmx/eslint-config](https://github.com/quitsmx/eslint-config). With TypeScript and PrettierX integrated, this one is more modern and easier to use. I would recommend you give it a try, eslint-config-standardize will be discontinued soon.\n\n---\n\nCustomizable ESLint config backed by [StandardJS](https://www.npmjs.com/package/eslint-config-standard) rules and [PrettierX](https://www.npmjs.com/package/prettierx) formatting.\n\nFor use with ESLint v7.0 and above, for previous versions use eslint-config-standardize 0.7.x or bellow.\n\nMinimum Node.js version: 10.13, 12.0, or above.\n\n**NOTE:**\n\nFrom v0.9.0, [eslint-plugin-prettierx](https://www.npmjs.com/package/eslint-plugin-prettierx) is included and enabled in this package. You don't need to include the \"eslint-plugin-prettierx/standardize-bundle\" config.\n\n## Setup\n\nInstall from npm (omit eslint if it's already installed or you are using CRA).\n\n```sh\nnpm install -D eslint eslint-config-standardize\n# or\nyarn add -D eslint eslint-config-standardize\n```\n\nIn your ESLint config file:\n\n```js\n// .eslintrc.js\nmodule.exports = {\n  root: true, // optional, avoids searching upwards\n  extends: ['standardize'],\n}\n```\n\n### With TypeScript\n\nIf you are using TypeScript, install the parser and the eslint plugin\n\n```bash\nyarn add @typescript-eslint/parser @typescript-eslint/eslint-plugin -D\n```\n\nthen add \"standardize/typescript\" to your eslint config\n\n```js\n// .eslintrc.js\nmodule.exports = {\n  root: true, // optional, avoids searching upwards\n  extends: ['standardize', 'standardize/typescript'],\n}\n```\n\n### With React or Preact\n\nYou don't need to do anything else, the config automatically detects React and Preact.\n\n\"standardize/preact\" is no longer needed and has been removed.\n\n## Included Plugins\n\n- [import](https://www.npmjs.com/package/eslint-plugin-import)\n- [node](https://www.npmjs.com/package/eslint-plugin-node)\n- [prettierx](https://www.npmjs.com/package/eslint-plugin-prettierx)\n- [promise](https://www.npmjs.com/package/eslint-plugin-promise)\n- [react](https://www.npmjs.com/package/eslint-plugin-react)\n- [react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks)\n- [unicorn](https://www.npmjs.com/package/eslint-plugin-unicorn)\n\n## Differences vs StandardJS\n\nStandardize uses a more strict and opinionated configuration than _StandardJS_ and include the react-hooks and unicorn plugins.\n\nAlmost all the code passes with no problems through the StandardJS linter, but has some differences with the default settings of StandardJS/PrettierX. This is the most important:\n\n### Multiline Ternary\n\nThe formatting of multiline ternary is a mess, although the result seems to be inline with the StandardJS rules. See [Known Issues](#known-issues).\n\n### Trailing Commas\n\nAlthough _StandardJS_ avoids trailing commas in all, this is a common practice as it helps to clarify commits.\n\nStandardize leaves everything to 'always', except for the function parameters (Prettier's `trailingComma: 'es5'` option).\n\nESLint rule: [`comma-dangle`](https://eslint.org/docs/rules/comma-dangle)\nPrettier: [`trailingComma`](https://prettier.io/docs/en/options.html#trailing-commas)\n\n### JSX quotes\n\nThe React style favors double quotes in properties, and I agree.\n\nESLint rule: [`jsx-quotes`](https://eslint.org/docs/rules/jsx-quotes)\nPrettier: [`jsxSingleQuote`](https://prettier.io/docs/en/options.html#jsx-quotes)\n\n### Quote Props\n\nBoth Prettier and StandardJS enclose the properties in quotes \"as needed\", this looks ugly with syntax highlighting on large JS objects (such as those used in configurations) and is inconsistent at object level. I prefer `\"consistent\"`.\n\nESLint rule: [`quote-props`](https://eslint.org/docs/rules/quote-props)\nPrettier: [`quoteProps`](https://prettier.io/docs/en/options.html#quote-props)\n\n### eslint-plugin-prettierx\n\nThe [eslint-plugin-prettierx](https://github.com/aMarCruz/eslint-plugin-prettierx) **is used** to format the JS code. You don't need install PrettierX.\n\nThis plugin is a excellent alternative to the VS Code 'Prettier - Code formatter' extension.\n\nSee [here](https://github.com/aMarCruz/eslint-plugin-prettierx#vs-code-eslint) to know how to configure it.\n\n## Support my Work\n\nI'm a full-stack developer with more than 20 year of experience and I try to share most of my work for free and help others, but this takes a significant amount of time and effort so, if you like my work, please consider...\n\n[\u003cimg src=\"https://amarcruz.github.io/images/kofi_blue.png\" height=\"36\" title=\"Support Me on Ko-fi\" /\u003e][kofi-url]\n\nOf course, feedback, PRs, and stars are also welcome 🙃\n\nThanks for your support!\n\n## License\n\nThe [MIT](LICENSE) License \u0026copy; 2019-2021 Alberto Martínez\n\n[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: https://github.com/aMarCruz/eslint-config-standardize/blob/master/LICENSE\n[npm-badge]: https://img.shields.io/npm/v/eslint-config-standardize.svg\n[npm-url]: https://www.npmjs.com/package/eslint-config-standardize\n[kofi-url]: https://ko-fi.com/C0C7LF7I\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famarcruz%2Feslint-config-standardize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famarcruz%2Feslint-config-standardize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famarcruz%2Feslint-config-standardize/lists"}