{"id":22425232,"url":"https://github.com/fireworkweb/eslint-config","last_synced_at":"2025-10-25T02:39:20.787Z","repository":{"id":42902281,"uuid":"251734948","full_name":"fireworkweb/eslint-config","owner":"fireworkweb","description":"Custom eslint config for Firework projects","archived":false,"fork":false,"pushed_at":"2022-03-26T10:34:30.000Z","size":167,"stargazers_count":8,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T04:39:14.159Z","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/fireworkweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-31T21:22:48.000Z","updated_at":"2021-08-26T18:53:30.000Z","dependencies_parsed_at":"2022-09-22T02:22:03.506Z","dependency_job_id":null,"html_url":"https://github.com/fireworkweb/eslint-config","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fireworkweb/eslint-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireworkweb%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireworkweb%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireworkweb%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireworkweb%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fireworkweb","download_url":"https://codeload.github.com/fireworkweb/eslint-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireworkweb%2Feslint-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268192551,"owners_count":24210541,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-05T19:13:35.329Z","updated_at":"2025-10-25T02:39:20.704Z","avatar_url":"https://github.com/fireworkweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @fireworkweb/eslint-config\n\nEslint rule configs for Javascript and Vue.js projects.\n\n## Installation\n\nTo install, add it with `eslint` to your dev dependencies.\n\n```bash\n# With yarn\nyarn add -D eslint @fireworkweb/eslint-config\n\n# With npm\nnpm install --dev eslint @fireworkweb/eslint-config\n```\n\n## Usage\n\nCurrently there are two configs available: `js` for pure javascript projects, `vue` for Vue.js projects and `react` for React projects. The `vue` and `react` configs already includes the `js` config.\n\nAfter installing, create a `.eslintrc.js` file and add this to your config (add only one):\n\n```js\nmodule.exports = {\n    extends: [\n        // for javascript project\n        '@fireworkweb/eslint-config/js',\n        // for vue project\n        '@fireworkweb/eslint-config/vue',\n        // for react project\n        '@fireworkweb/eslint-config/react',\n    ],\n};\n```\n\nAlso, you should add this script to your `package.json`:\n\n```json\n{\n    // ...\n    \"scripts\": {\n        // ...\n        \"lint\": \"eslint --ext js,vue,jsx .\"\n    }\n}\n```\n\nYou should customize the extensions (`--ext` parameter) to fit your needs.\n\nThen you can run `yarn lint` or `npm run lint`. To automatically fix some of the errors, you can add `--fix` to the lint command.\n\n### Custom Rules\n\nYou can customize any rules ([js](https://eslint.org/docs/rules/), [vue](https://eslint.vuejs.org/rules/)), [react](https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules)) as this example:\n\n```js\nmodule.exports = {\n    extends: [\n        '@fireworkweb/eslint-config/js',\n    ],\n    rules: {\n        'no-console': 'off',\n    },\n};\n```\n\nYou can also (and probably will) add any specific global variable:\n\n```js\n// for vue project\nmodule.exports = {\n    extends: [\n        '@fireworkweb/eslint-config/vue',\n    ],\n    globals: {\n        Vue: true, // if you set window.Vue\n        _: true, // lodash/underscore\n        Nova: true, // Laravel Nova\n    },\n};\n```\n\n## License\n\n[MIT](LICENSE.md).\n\n## Collaborators\n\n| [\u003cimg src=\"https://avatars0.githubusercontent.com/u/11093090?v=3\u0026s=115\" width=\"115\"\u003e\u003cbr\u003e\u003csub\u003e@gabrielboliveira\u003c/sub\u003e](https://github.com/gabrielboliveira) | [\u003cimg src=\"https://avatars3.githubusercontent.com/u/17432496?v=3\u0026s=115\" width=\"115\"\u003e\u003cbr\u003e\u003csub\u003e@nkabz\u003c/sub\u003e](https://github.com/nkabz) |\n|:-:|:-:|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireworkweb%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffireworkweb%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireworkweb%2Feslint-config/lists"}