{"id":17736647,"url":"https://github.com/parro-it/eslint-config-features","last_synced_at":"2025-03-31T19:17:10.578Z","repository":{"id":57228142,"uuid":"49564286","full_name":"parro-it/eslint-config-features","owner":"parro-it","description":"Automatically configure eslint ecmaFeatures according to package.json `engines` field.","archived":false,"fork":false,"pushed_at":"2016-02-08T22:30:12.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-10T18:23:15.796Z","etag":null,"topics":[],"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/parro-it.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":"2016-01-13T09:39:44.000Z","updated_at":"2019-07-15T20:59:05.000Z","dependencies_parsed_at":"2022-09-12T21:23:09.650Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/eslint-config-features","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Feslint-config-features","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Feslint-config-features/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Feslint-config-features/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Feslint-config-features/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/eslint-config-features/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523847,"owners_count":20791444,"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-26T00:23:54.720Z","updated_at":"2025-03-31T19:17:10.549Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-features\n\n\u003e Automatically configure eslint ecmaFeatures according to package.json `engines` field.\n\n[![Travis Build Status](https://img.shields.io/travis/parro-it/eslint-config-features.svg)](http://travis-ci.org/parro-it/eslint-config-features)\n[![NPM module](https://img.shields.io/npm/v/eslint-config-features.svg)](https://npmjs.org/package/eslint-config-features)\n[![NPM downloads](https://img.shields.io/npm/dt/eslint-config-features.svg)](https://npmjs.org/package/eslint-config-features)\n\n# Usage\n\nInstall the module as a development dependency:\n\n```bash\nnpm install -D eslint-config-features\n```\n\nThen, you have to configure it as a eslint configuration preset.\nIn your package.json files, add:\n\n```js\n  \"eslintConfig\": {\n    \"extends\": [\n      \"features\"\n    ]\n  },\n```\n\nYou also need to add an `engines` section to `package.json`, to let this module know what minimum node version you target, e.g.:\n\n```js\n  \"engines\": {\n    \"node\": \"\u003e=0.12\"\n  },\n```\n\nNow, whenever you lint your code with eslint, you get\nthe set of es2015 rules supported by node 0.12.\n\n# How it works\n\nIt uses [babel-preset-es2015-auto](https://www.npmjs.com/package/babel-preset-es2015-auto) module to discover what babel-transforms are required by node version you specify in `engines` features.\n\nThe babel transforms not needed are already implemented natively by node, so they are converted\nto eslint rules using [babelplugin-to-eslintrule](https://github.com/parro-it/babelplugin-to-eslintrule)\n\n# Related modules\n\n* [babel-preset-es2015-auto](https://github.com/jakepusateri/auto-babel) - a project that aims to bring autoprefixer-like functionality to babel.\n* [babelplugin-to-eslintrule](https://github.com/parro-it/babelplugin-to-eslintrule) - Map babel plugins to corresponding eslint ecmaFeatures\n* [semver-first-satisfied](https://github.com/parro-it/semver-first-satisfied) -Find minimum in an array of versions that satisfies a semver range.\n\n# License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Andrea Parodi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Feslint-config-features","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Feslint-config-features","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Feslint-config-features/lists"}