{"id":13800800,"url":"https://github.com/nkt/eslint-plugin-es5","last_synced_at":"2025-04-09T08:11:07.271Z","repository":{"id":52144896,"uuid":"77924968","full_name":"nkt/eslint-plugin-es5","owner":"nkt","description":"ESLint plugin for ES5 users.","archived":false,"fork":false,"pushed_at":"2022-12-30T17:46:14.000Z","size":191,"stargazers_count":55,"open_issues_count":13,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T02:46:28.469Z","etag":null,"topics":["ecmascript","es2015","es2016","eslint-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/eslint-plugin-es5","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/nkt.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":"2017-01-03T14:37:58.000Z","updated_at":"2025-03-09T14:15:12.000Z","dependencies_parsed_at":"2023-01-31T12:31:19.999Z","dependency_job_id":null,"html_url":"https://github.com/nkt/eslint-plugin-es5","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkt%2Feslint-plugin-es5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkt%2Feslint-plugin-es5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkt%2Feslint-plugin-es5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkt%2Feslint-plugin-es5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nkt","download_url":"https://codeload.github.com/nkt/eslint-plugin-es5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999861,"owners_count":21031046,"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":["ecmascript","es2015","es2016","eslint-plugin"],"created_at":"2024-08-04T00:01:16.385Z","updated_at":"2025-04-09T08:11:07.252Z","avatar_url":"https://github.com/nkt.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Compatibility"],"readme":"eslint-plugin-es5\n=================\n\n![Build Status](https://github.com/nkt/eslint-plugin-es5/workflows/Test/badge.svg)\n[![Cult Of Martians](http://cultofmartians.com/assets/badges/badge.svg)](http://cultofmartians.com/tasks/eslint-es5.html)\n\nESLint plugin for ES5 users.\n\nWhy?\n----\n\nSometimes someone doesn't want to or can't use Babel.\nEven if you support modern browsers or node.js, JS engines have bugs\nlike broken [block-scoping](http://stackoverflow.com/q/32665347).\nMaybe you only want to forbid usage of `for-of` in your project.\n\nIf this concerns you, this plugin should help you.\n\nInstallation\n------------\n\n```\nnpm install --save-dev eslint-plugin-es5\n```\n\nUsage\n-----\n\nAdd the plugin to your `.eslintrc`:\n\n```json\n{\n  \"plugins\": [\n    \"es5\"\n  ]\n}\n```\n\nAnd then any of the rules [listed below](#list-of-supported-rules) like this:\n\n```json\n{\n  \"rules\": {\n    \"es5/no-arrow-functions\": \"error\"\n  }\n}\n```\n\nAlso you can extend one of presets:\n```json\n{\n  \"extends\": [\n    \"eslint:recommended\",\n    \"plugin:es5/no-es2015\"\n  ]\n}\n```\n\nAvailable presets:\n\n  - `plugin:es5/no-es2015`: Forbid ES2015 usage.\n  - `plugin:es5/no-es2016`: Forbid ES2016 usage.\n\nList of supported rules\n-----------------------\n\n  - `es5/no-es6-methods` Forbid ES2015 [methods](http://babeljs.io/learn-es2015/#math--number--string--object-apis) for `Array` and `String`\n  - `es5/no-es6-static-methods` Forbid ES2015 [static methods](http://babeljs.io/learn-es2015/#math--number--string--object-apis) for `Array`, `Math`, `Number`, and `Object`. You can enable specific functions: `\"es5/no-es6-static-methods\": [\"error\", { exceptMethods: [\"Math.imul\"] }]`\n  - `es5/no-arrow-functions`:wrench:: Forbid [arrow-functions](https://babeljs.io/learn-es2015/#ecmascript-2015-features-arrows-and-lexical-this).\n  - `es5/no-binary-and-octal-literals`:wrench:: Forbid [binary and octal literals](https://babeljs.io/learn-es2015/#binary-and-octal-literals).\n  - `es5/no-block-scoping`: Forbid `let` and `const` declarations. You can enable them using options: `\"es5/no-block-scoping\": [\"error\", { \"let\": true }]`\n  - `es5/no-classes`: Forbid [ES2015 classes](https://babeljs.io/learn-es2015/#ecmascript-2015-features-classes).\n  - `es5/no-computed-properties`: Forbid [computed properties](https://babeljs.io/learn-es2015/#ecmascript-2015-features-enhanced-object-literals).\n  - `es5/no-default-parameters`: Forbid [default parameters](https://babeljs.io/learn-es2015/#ecmascript-2015-features-default-rest-spread).\n  - `es5/no-destructuring`:wrench:: Forbid [destructuring statements](https://babeljs.io/learn-es2015/#ecmascript-2015-features-destructuring).\n  - `es5/no-exponentiation-operator`: Forbid exponentiation operator `a ** b` usage.\n  - `es5/no-for-of`: Forbid [`for-of` statements](https://babeljs.io/learn-es2015/#ecmascript-2015-features-iterators-for-of).\n  - `es5/no-generators`: Forbid [generators](https://babeljs.io/learn-es2015/#ecmascript-2015-features-generators) usage.\n  - `es5/no-modules`: Forbid ES2015 [modules](https://babeljs.io/learn-es2015/#ecmascript-2015-features-modules) usage.\n  - `es5/no-object-super`: Forbid `super`/`super.foo()` calls.\n  - `es5/no-rest-parameters`: Forbid [rest parameters](https://babeljs.io/learn-es2015/#ecmascript-2015-features-default-rest-spread).\n  - `es5/no-shorthand-properties`:wrench:: Forbid [shorthand properties](https://babeljs.io/learn-es2015/#ecmascript-2015-features-enhanced-object-literals).\n  - `es5/no-spread`:wrench:: Forbid [...spread expressions](https://babeljs.io/learn-es2015/#ecmascript-2015-features-default-rest-spread).\n  - `es5/no-template-literals`:wrench:: Forbid [template strings](https://babeljs.io/learn-es2015/#ecmascript-2015-features-template-strings) usage.\n  - `es5/no-typeof-symbol`: Forbid `typeof foo === 'symbol'` [checks](https://babeljs.io/learn-es2015/#ecmascript-2015-features-symbols).\n  - `es5/no-unicode-code-point-escape`:wrench:: Forbid [Unicode support](https://babeljs.io/learn-es2015/#unicode) in code point escape.\n  - `es5/no-unicode-regex`: Forbid [Unicode support](https://babeljs.io/learn-es2015/#ecmascript-2015-features-unicode) in RegExp.\n\nLicense\n-------\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnkt%2Feslint-plugin-es5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnkt%2Feslint-plugin-es5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnkt%2Feslint-plugin-es5/lists"}