{"id":19071936,"url":"https://github.com/cyansalt/eslint-config","last_synced_at":"2025-03-22T23:44:06.650Z","repository":{"id":57105150,"uuid":"302857054","full_name":"CyanSalt/eslint-config","owner":"CyanSalt","description":"My ESLint configuration preset","archived":false,"fork":false,"pushed_at":"2025-01-23T07:45:44.000Z","size":793,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T19:42:13.715Z","etag":null,"topics":["eslint","eslint-config"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CyanSalt.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-10T08:47:15.000Z","updated_at":"2025-02-20T12:37:25.000Z","dependencies_parsed_at":"2023-11-23T12:26:07.620Z","dependency_job_id":"7b999294-65f1-4c8e-8f75-2a2a3a95faad","html_url":"https://github.com/CyanSalt/eslint-config","commit_stats":{"total_commits":302,"total_committers":1,"mean_commits":302.0,"dds":0.0,"last_synced_commit":"36d1dec64ff917579544d5359414697f9a84ed3c"},"previous_names":[],"tags_count":157,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyanSalt","download_url":"https://codeload.github.com/CyanSalt/eslint-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245036122,"owners_count":20550661,"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","eslint-config"],"created_at":"2024-11-09T01:32:53.934Z","updated_at":"2025-03-22T23:44:06.625Z","avatar_url":"https://github.com/CyanSalt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @cyansalt/eslint-config\n\n[![npm](https://img.shields.io/npm/v/@cyansalt/eslint-config.svg)](https://www.npmjs.com/package/@cyansalt/eslint-config)\n\nMy ESLint configuration preset.\n\n## Installation\n\n```shell\nnpm install --save-dev @cyansalt/eslint-config\n```\n\n## Usage\n\n```javascript\n// eslint.config.js\nimport config from '@cyansalt/eslint-config'\n\nexport default config()\n```\n\n### Customization\n\n```javascript\n// eslint.config.js\nimport config from '@cyansalt/eslint-config'\nimport { customize } from '@cyansalt/eslint-config/configs/vue.js'\n\nexport default config({\n  configs: [\n    ...customize({ vue: { legacy: true } }, {\n      files: ['**/vue2/**.vue'],\n    }),\n  ],\n})\n```\n\n## Options\n\n```javascript\n// eslint.config.js\nimport config from '@cyansalt/eslint-config'\n\nexport default config({\n\n  // Whether to enable TypeScript rules.\n  // It will be enabled when `typescript` is installed in the project by default.\n  // This option also supports an object of the form `{ mixed: true }`.\n  // `mixed` indicates whether this project is a mixed TS and JS project\n  // which defaults to the value of `compilerOptions.checkJs` in tsconfig.\n  typescript: true,\n\n  // Whether to enable Babel rules.\n  // It will be enabled when the project includes `babel.config.js` by default.\n  // This option will have no effect when non-mixed typescript is enabled.\n  babel: true,\n\n  // Whether to enable React rules.\n  // It will be enabled when `react` is installed in the project by default.\n  react: true,\n\n  // Whether to enable Vue rules.\n  // It will be enabled when `vue` is installed in the project by default.\n  // This option also supports an object of the form { legacy: 2.7, macros: true }.\n  // `legacy` indicates whether Vue is 2.7 (`2.7`) or earlier (`true`)\n   // which comes from the current Vue version by default.\n   // `macros` indicates whether to enable compiler macros\n   // which is determined based on whether the project has Vue Macros installed by default.\n  vue: true,\n\n  // Whether to enable JSX.\n  // It will be determined based on `compilerOptions.jsx` in tsconfig by default.\n  jsx: true,\n\n  // Additional configurations.\n  // Each item in the array can be an ESLint flat config or its array,\n  // or a function that returns one or more configs.\n  // When the type is a function, it accepts the parsed complete options as a parameter.\n  configs: [],\n\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyansalt%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyansalt%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyansalt%2Feslint-config/lists"}