{"id":17275101,"url":"https://github.com/daun/eslint-config-daun","last_synced_at":"2025-03-26T13:42:54.051Z","repository":{"id":57227999,"uuid":"282658787","full_name":"daun/eslint-config-daun","owner":"daun","description":"ESLint and Prettier Setup","archived":false,"fork":false,"pushed_at":"2021-02-04T16:56:25.000Z","size":149,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T16:19:19.676Z","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/daun.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":"2020-07-26T13:46:08.000Z","updated_at":"2021-02-04T16:56:24.000Z","dependencies_parsed_at":"2022-09-12T22:31:15.651Z","dependency_job_id":null,"html_url":"https://github.com/daun/eslint-config-daun","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Feslint-config-daun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Feslint-config-daun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Feslint-config-daun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Feslint-config-daun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daun","download_url":"https://codeload.github.com/daun/eslint-config-daun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245667085,"owners_count":20652895,"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-10-15T08:55:26.758Z","updated_at":"2025-03-26T13:42:54.019Z","avatar_url":"https://github.com/daun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESLint and Prettier Setup\n\nESLint and prettier rules for my personal projects.\n\n## Installation\n\nInstall [eslint](https://github.com/eslint/eslint) and this module in your\nproject's `devDependencies`:\n\n```bash\nnpm install --save-dev eslint eslint-config-daun\n```\n\n## Usage\n\nExtend the main config from your `.eslintrc.js`:\n\n```js\nmodule.exports = {\n  extends: 'daun',\n  rules: {\n    // your overrides\n  }\n}\n```\n\n### Other configs\n\nThis config also exposes a few other configs that can be pulled in as needed.\n\nYou can use them standalone:\n\n```js\nmodule.exports = {\n  extends: 'daun/\u003cconfig-name\u003e',\n}\n```\n\nOr in combination with the base config (recommended):\n\n```js\nmodule.exports = {\n  extends: ['daun', 'daun/\u003cconfig-name\u003e'],\n}\n```\n\n### Peer dependencies\n\nWe need to patch ESLint to recognize the associated plugins without having to\ninstall them as local dependencies. See\n[this bug](https://github.com/eslint/eslint/issues/3458) for details.\n\nAdd this to the top of your `.eslintrc.js`:\n\n```js\n// Patch ESLint module resolution to find shared configs' plugins\nrequire('eslint-config-daun/eslint-patch/module-resolution')\n\nmodule.exports = {\n  extends: ['daun']\n}\n```\n\n- `babel-module`:\n  [babel-plugin-module-resolver](https://www.npmjs.com/package/babel-plugin-module-resolver)\n  for the import plugin to work with the module-resolver babel plugin\n  (_eslint-plugin-import_ and _eslint-import-resolver-babel-module_)\n- `jest`: [jest](http://facebook.github.io/jest/) testing framework\n- `vue`: [Vue](https://www.npmjs.com/package/vue) JS library\n  (_eslint-plugin-react_)\n- `webpack`: [Webpack](https://npmjs.com/package/webpack) for the import plugin\n  to work with webpack overloaded imports/requires (_eslint-plugin-import_,\n  _eslint-import-resolver-alias_ and _eslint-import-resolver-webpack_)\n\n### Things to know\n\n- The default config uses `babel-eslint` to support stage features that ESLint\n  doesn't support and it opts to use the `eslint-plugin-babel` rules over the\n  ESLint rules to support rules for these features as well.\n- All plugins needed for rules used by these configs are dependencies of this\n  module so you don't have to install anything on your own.\n- The default config actually is composed of several configurations and you can\n  use those individually. These are the configs it's using:\n  `possible-errors.js`, `best-practices.js`, `stylistic.js`, `es6/index.js`, and\n  `import/index.js`. Also, the `es6` and `import` configs each have a\n  `possible-errors.js`, `best-practices.js`, and `stylistic.js` which they are\n  composed of as well.\n\n#### Example of customized config\n\n```js\nmodule.exports = {\n  extends: [\n    'daun/possible-errors',\n    'daun/best-practices',\n    'daun/es6/possible-errors',\n    'daun/import',\n    'daun/jest',\n    'daun/vue'\n  ],\n  rules: {\n    /* custom rules */\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Feslint-config-daun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaun%2Feslint-config-daun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Feslint-config-daun/lists"}