{"id":13549244,"url":"https://github.com/sindresorhus/grunt-eslint","last_synced_at":"2025-05-15T20:07:17.340Z","repository":{"id":9507860,"uuid":"11402746","full_name":"sindresorhus/grunt-eslint","owner":"sindresorhus","description":"Validate files with ESLint","archived":false,"fork":false,"pushed_at":"2024-04-11T11:20:20.000Z","size":131,"stargazers_count":199,"open_issues_count":6,"forks_count":73,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-12T03:34:13.378Z","etag":null,"topics":["eslint","grunt-plugin","linter","nodejs","npm-package"],"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/sindresorhus.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":".github/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","buy_me_a_coffee":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2013-07-14T12:32:03.000Z","updated_at":"2025-05-04T15:23:17.000Z","dependencies_parsed_at":"2023-09-27T09:48:55.324Z","dependency_job_id":"f94181ca-b3fc-414d-ae91-7e661e7dbf88","html_url":"https://github.com/sindresorhus/grunt-eslint","commit_stats":{"total_commits":146,"total_committers":28,"mean_commits":5.214285714285714,"dds":0.2534246575342466,"last_synced_commit":"82c984f0b7a6857f81ba3d230c59dcafe63036c7"},"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fgrunt-eslint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fgrunt-eslint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fgrunt-eslint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fgrunt-eslint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/grunt-eslint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414499,"owners_count":22067272,"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","grunt-plugin","linter","nodejs","npm-package"],"created_at":"2024-08-01T12:01:19.798Z","updated_at":"2025-05-15T20:07:17.073Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://buymeacoffee.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["JavaScript"],"sub_categories":[],"readme":"# grunt-eslint\n\n\u003e Validate files with [ESLint](https://eslint.org)\n\n![](screenshot.png)\n\n## Install\n\n```sh\nnpm install --save-dev grunt-eslint\n```\n\n## Usage\n\n```js\nrequire('load-grunt-tasks')(grunt);\n\ngrunt.initConfig({\n\teslint: {\n\t\ttarget: ['file.js']\n\t}\n});\n\ngrunt.registerTask('default', ['eslint']);\n```\n\n## Examples\n\n### Custom config and rules\n\n```js\nconst noAlertRule = require('./conf/rules/no-alert');\n\ngrunt.initConfig({\n\teslint: {\n\t\toptions: {\n\t\t\toverrideConfigFile: 'conf/eslint.js',\n\t\t\tplugins: {\n\t\t\t\tnoAlertRule\n\t\t\t}\n\t\t},\n\t\ttarget: ['file.js']\n\t}\n});\n```\n\n### Custom formatter\n\n```js\ngrunt.initConfig({\n\teslint: {\n\t\toptions: {\n\t\t\tformat: './node_modules/eslint-tap/index.js'\n\t\t},\n\t\ttarget: ['file.js']\n\t}\n});\n```\n\n## Options\n\nSee the [ESLint options](https://eslint.org/docs/developer-guide/nodejs-api#-new-eslintoptions).\n\nIn addition the following options are supported:\n\n### format\n\nType: `string`\\\nDefault: `'stylish'`\n\nThe name of a [built-in formatter](https://github.com/eslint/eslint/tree/master/lib/cli-engine/formatters) or path to a custom one.\n\nSome formatters you might find useful: [eslint-json](https://github.com/sindresorhus/eslint-json), [eslint-tap](https://github.com/sindresorhus/eslint-tap).\n\n### outputFile\n\nType: `string`\\\nDefault: `''`\n\nOutput the report to a file.\n\n### quiet\n\nType: `boolean`\\\nDefault: `false`\n\nReport errors only.\n\n### maxWarnings\n\nType: `number`\\\nDefault: `-1` *(Means no limit)*\n\nThe nmber of warnings to trigger non-zero exit code.\n\n### failOnError\n\nType: `boolean`\\\nDefault: `true`\n\nFail the build if ESLint found any errors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fgrunt-eslint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fgrunt-eslint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fgrunt-eslint/lists"}