{"id":15015849,"url":"https://github.com/ember-cli/ember-cli-eslint","last_synced_at":"2026-04-09T01:30:20.222Z","repository":{"id":27314179,"uuid":"30788414","full_name":"ember-cli/ember-cli-eslint","owner":"ember-cli","description":"Ember CLI addon for linting Ember projects with ESLint","archived":true,"fork":false,"pushed_at":"2022-01-18T16:14:36.000Z","size":3750,"stargazers_count":115,"open_issues_count":37,"forks_count":47,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-02-15T13:45:00.717Z","etag":null,"topics":["ember","ember-cli","eslint"],"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/ember-cli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-02-14T05:45:40.000Z","updated_at":"2025-01-24T00:03:19.000Z","dependencies_parsed_at":"2022-07-18T06:30:34.414Z","dependency_job_id":null,"html_url":"https://github.com/ember-cli/ember-cli-eslint","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fember-cli-eslint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fember-cli-eslint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fember-cli-eslint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fember-cli-eslint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ember-cli","download_url":"https://codeload.github.com/ember-cli/ember-cli-eslint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239975520,"owners_count":19727962,"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":["ember","ember-cli","eslint"],"created_at":"2024-09-24T19:48:03.020Z","updated_at":"2026-04-09T01:30:20.175Z","avatar_url":"https://github.com/ember-cli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-cli-eslint\n==============================================================================\n\n[![Latest NPM release][npm-badge]][npm-badge-url]\n[![TravisCI Build Status][travis-badge]][travis-badge-url]\n[![Ember Observer Score][ember-observer-badge]][ember-observer-badge-url]\n\n[npm-badge]: https://img.shields.io/npm/v/ember-cli-eslint.svg\n[npm-badge-url]: https://www.npmjs.com/package/ember-cli-eslint\n[travis-badge]: https://img.shields.io/travis/ember-cli/ember-cli-eslint/master.svg\n[travis-badge-url]: https://travis-ci.org/ember-cli/ember-cli-eslint\n[ember-observer-badge]: https://emberobserver.com/badges/ember-cli-eslint.svg\n[ember-observer-badge-url]: https://emberobserver.com/addons/ember-cli-eslint\n\n[ESLint](http://eslint.org/) for [Ember CLI](https://ember-cli.com/) apps and addons.\n\n## 🔴 DEPRECATED 🔴\n\nPlease use [ESLint](https://github.com/eslint/eslint) directly instead.\n\nMore info / background:\n\n* https://github.com/ember-cli/rfcs/pull/121\n* https://github.com/emberjs/rfcs/blob/master/text/0121-remove-ember-cli-eslint.md\n* https://github.com/ember-cli/ember-cli/pull/9009\n\nInstallation\n------------------------------------------------------------------------------\n\nESLint 4 (for Node 4 and above):\n\n```\nember install ember-cli-eslint@4\n```\n\nESLint 3 (for Node 4 and above):\n\n```\nember install ember-cli-eslint@3\n```\n\nESLint 2 (for Node 0.10 and above):\n\n```\nember install ember-cli-eslint@2\n```\n\nAfter installation, an `.eslintrc.js` file will be placed in both the root of\nyour project and the `/tests` directory.\n\nFurthermore, a `.eslintignore` file can be used to exclude files from\nlinting while the linter is running. Its syntax is identical to\n`.gitignore` files.\n\n\n### Disabling JSHint\n\nCongratulations! You've made the leap into the next generation of JavaScript\nlinting. At the moment, however, `ember-cli` defaults to generating\napplications and addons with a `jshint` configuration.\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n    If you notice the two awkwardly running side by side, click here!\n  \u003c/summary\u003e\n\n#### ember-cli \u003e= 2.5.0\n\nAs of `ember-cli v.2.5.0`,\n[`jshint` is provided through its own `ember-cli-jshint` addon](https://github.com/ember-cli/ember-cli/pull/5757).\nRunning `npm uninstall --save-dev ember-cli-jshint`, in addition to removing\nany `.jshintrc` files from your project should guarantee that its behavior\nis disabled.\n\n#### ember-cli \u003c 2.5.0\n\nControlling linting is a bit trickier on versions of `ember-cli` prior to\n`2.5.0`. Within your `ember-cli-build.js` file, `ember-cli-qunit` or\n`ember-cli-mocha` can be configured to have their default linting process\ndisabled during:\n\n```javascript\nmodule.exports = function(defaults) {\n  const app = new EmberApp(defaults, {\n    'ember-cli-qunit': {\n      useLintTree: false\n    }\n  });\n};\n```\n\nor\n\n```javascript\nmodule.exports = function(defaults) {\n  const app = new EmberApp(defaults, {\n    'ember-cli-mocha': {\n      useLintTree: false\n    }\n  });\n};\n```\n\nAlongside this setting, the `hinting` property can then be used to\nenable/disable globally:\n\n```javascript\nconst isTesting = process.env.EMBER_ENV === 'test';\n\nmodule.exports = function(defaults) {\n  const app = new EmberApp(defaults, {\n    hinting: !isTesting,\n  });\n};\n```\n\n\u003c/details\u003e\n\n\nUsage\n------------------------------------------------------------------------------\n\nESLint will be run by `ember-cli-qunit` or `ember-cli-mocha` automatically\nwhen you run `ember test`.  If ESLint is *not* being run automatically, try\nupdating your `ember-cli` and/or `ember-cli-qunit`/`ember-cli-mocha`\ndependencies.\n\n\n### Configuration\n\n`ember-cli-eslint` can be configured through the `eslint` key in your\n`ember-cli-build.js` file:\n\n```js\nlet app = new EmberApp(defaults, {\n  eslint: {\n    testGenerator: 'qunit',\n    group: true,\n    rulesDir: 'eslint-rules',\n    extensions: ['js'],\n  }\n});\n```\n\n- `testGenerator` is automatically detected if `ember-qunit`/`ember-cli-qunit`\n  or `ember-mocha`/`ember-cli-mocha` are used, but can also be set to `qunit`\n  and `mocha` manually.\n\n- `group` can be set to `false` to go back to the previous behavior where\n  every generated test was contained in its own separate module.\n\n- `rulesDir` is the name of the directory for your custom eslint rules.\n  It defaults to `eslint-rules`.\n\n- `extensions` is an array containing the file extensions to lint. If you want to lint JavaScript and TypeScript files for example it should be set to `['js', 'ts']`. _NOTE_: If you add Typescript files `@typescript-eslint/parser` has to be installed and specified as the parser. For more information take a look at the [`@typescript-eslint/parser`](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser)\n\n### On Build Files\n\nPlease note that if you are using this to lint files which are part of the build\nprocess (ie. index.js, ember-cli-build.js, config/), whether in an application or\nas part of an addon, they will not be linted. It is recommended that `eslint` is\nsetup separately to lint these files and can be setup as an npm script and run as\npart of a CI process.\n\n\nContributing\n------------------------------------------------------------------------------\n\n### Installation\n\n* `git clone` this repository\n* `cd ember-cli-eslint`\n* `npm install`\n* `bower install`\n\n### Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n### Running Tests\n\n* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n* `ember try:each`\n\n### Linting\n\n* `npm run lint:hbs`\n* `npm run lint:js`\n* `npm run lint:js -- --fix`\n\n\n### Running the dummy application\n\n* `ember serve`\n* Visit the dummy application at [http://localhost:4200](http://localhost:4200).\n\nFor more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fember-cli%2Fember-cli-eslint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fember-cli%2Fember-cli-eslint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fember-cli%2Fember-cli-eslint/lists"}