{"id":15537332,"url":"https://github.com/nullvoxpopuli/eslint-configs","last_synced_at":"2025-04-12T17:13:11.735Z","repository":{"id":37023790,"uuid":"349718460","full_name":"NullVoxPopuli/eslint-configs","owner":"NullVoxPopuli","description":"My Preferred ESLint configs for all my projects. Uses only overrides so that they're easy to maintain and update","archived":false,"fork":false,"pushed_at":"2025-04-06T21:46:10.000Z","size":2537,"stargazers_count":9,"open_issues_count":11,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T17:12:46.932Z","etag":null,"topics":["eslint","hacktoberfest"],"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/NullVoxPopuli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-20T12:27:45.000Z","updated_at":"2025-03-31T02:31:04.000Z","dependencies_parsed_at":"2024-03-10T04:21:18.985Z","dependency_job_id":"7e95bec2-f282-4e73-aa67-d874e573efdf","html_url":"https://github.com/NullVoxPopuli/eslint-configs","commit_stats":{"total_commits":624,"total_committers":8,"mean_commits":78.0,"dds":0.7019230769230769,"last_synced_commit":"1495be89c8941289632950ec95162c7c0d12be88"},"previous_names":[],"tags_count":184,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Feslint-configs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Feslint-configs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Feslint-configs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Feslint-configs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullVoxPopuli","download_url":"https://codeload.github.com/NullVoxPopuli/eslint-configs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602312,"owners_count":21131616,"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","hacktoberfest"],"created_at":"2024-10-02T11:56:12.304Z","updated_at":"2025-04-12T17:13:11.729Z","avatar_url":"https://github.com/NullVoxPopuli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESLint Configs\n\n[![npm version](https://badge.fury.io/js/%40nullvoxpopuli%2Feslint-configs.svg)](https://badge.fury.io/js/%40nullvoxpopuli%2Feslint-configs)\n\nESLint has grown complicated for projects with variance:\n - JavaScript or TypeScript\n - Node or Browser\n - App or Library\n - Cross-Platform\n - etc\n\nThis project aims to simplify both configuring and overriding ESLint configs.\n\n## Install\n\n```bash\nyarn add --dev @nullvoxpopuli/eslint-configs\n# or\nnpm install --save-dev @nullvoxpopuli/eslint-configs\n# or \npnpm add --save-dev @nullvoxpopuli/eslint-configs\n```\n\nAnd due to how ESLint resolves plugins,\nyou'll need to ensure that all the dependencies of `@nullvoxpopuli/eslint-configs` are installed in the root `node_modules` directory.\n\nThis is easier with either yarn workspaces or npm. Standalone yarn with non-monorepos nests `node_modules` which confuses eslint.\n\n## Upgrading across major version boundaries\n\nThis goes for major bumps of this package, and any plugin within.\n\nYou'll want to use [eslint-formatter-todo](https://github.com/lint-todo/eslint-formatter-todo),\nso that when you encounter new rules, or a plugin changes the defaults, you can _mark them as \"TODO\"_.\nThis is effectively _temporarily_ turning errors into warnings,\nbut it allows you to incrementally adopt big changes to your lint configs over time.\n\nThis is _especially_ useful on large codebases, and when lint rules don't come with auto-fixers.\n\nI'd recommend updating your `lint:js` script in `package.json` to:\n```js\n\"scripts\": {\n  \"lint:js\": \"eslint . --format @lint-todo/eslint-formatter-todo\"\n}\n```\n\nSee the [Usage](https://github.com/lint-todo/eslint-formatter-todo#usage) section of eslint-formatter-todo for details.\n\n## Usage\n\n**Ember**\n```js\n// eslint.config.js  \nimport { configs } from '@nullvoxpopuli/eslint-configs';\n\n// accommodates: JS, TS, App, Addon, and V2 Addon\nexport default configs.ember(import.meta.dirname);\n```\n\n_overriding_\n```js\n// eslint.config.js  \nimport { configs } from '@nullvoxpopuli/eslint-configs';\n\nconst config = configs.ember(import.meta.dirname);\n\nexport default [\n    ...config,\n    // your modifications here\n    // see: https://eslint.org/docs/user-guide/configuring/configuration-files#how-do-overrides-work\n];\n```\n\n**Cross-Platform**\n\nThis config is ESM, as ESM is the most widely supported module format across different distributions (browser, node, etc).\n\n```js \n// eslint.config.js  \nimport { configs } from '@nullvoxpopuli/eslint-configs';\n\nexport default configs.crossPlatform(import.meta.dirname);\n```\n\n**Node**\n\nThis config looks at your package.json to determine if your project is CommonJS or ES Modules.\n```js\n// eslint.config.js  \nimport { configs } from '@nullvoxpopuli/eslint-configs';\n\nexport default configs.node(import.meta.dirname);\n```\n\n_overriding_\n```js\n// eslint.config.js \nimport { configs } from '@nullvoxpopuli/eslint-configs';\n\nconst config = configs.node();\n\nexport default [\n    ...config,\n    // your modifications here\n    // see: https://eslint.org/docs/user-guide/configuring/configuration-files#how-do-overrides-work\n]\n```\n\n\n### Disabling type-aware linting\n\n```js\nimport { disableTypedLints } from '@nullvoxpopuli/eslint-configs';\n\nexport default [\n    // ...\n    disableTypedLints.forTests,\n];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Feslint-configs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullvoxpopuli%2Feslint-configs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Feslint-configs/lists"}