{"id":25969248,"url":"https://github.com/tyler36/eslint-demo","last_synced_at":"2026-04-17T18:02:35.566Z","repository":{"id":277068600,"uuid":"804160751","full_name":"tyler36/eslint-demo","owner":"tyler36","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-02T00:10:38.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-04T15:30:18.052Z","etag":null,"topics":["eslint","github-workflow","gitlab-pipeline","linting"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyler36.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-22T04:25:46.000Z","updated_at":"2025-12-02T00:10:41.000Z","dependencies_parsed_at":"2025-05-07T01:20:20.923Z","dependency_job_id":"58278618-2302-4b52-8779-d73d93acacad","html_url":"https://github.com/tyler36/eslint-demo","commit_stats":null,"previous_names":["tyler36/eslint-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tyler36/eslint-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyler36%2Feslint-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyler36%2Feslint-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyler36%2Feslint-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyler36%2Feslint-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyler36","download_url":"https://codeload.github.com/tyler36/eslint-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyler36%2Feslint-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31939788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["eslint","github-workflow","gitlab-pipeline","linting"],"created_at":"2025-03-04T22:47:18.447Z","updated_at":"2026-04-17T18:02:35.551Z","avatar_url":"https://github.com/tyler36.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESLint \u003c!-- omit in toc --\u003e\n\n- [Overview](#overview)\n- [Getting started](#getting-started)\n- [Configuration](#configuration)\n    - [Ignoring files](#ignoring-files)\n    - [Using configuration comments](#using-configuration-comments)\n- [Usage](#usage)\n- [Rules](#rules)\n- [Awesome ESLint](#awesome-eslint)\n    - [Plugins](#plugins)\n        - [@stylistic](#stylistic)\n        - [ESLint-plugin-compat](#eslint-plugin-compat)\n        - [ESLint-plugin-cypress](#eslint-plugin-cypress)\n        - [ESLint-plugin-HTML](#eslint-plugin-html)\n        - [ESLint-plugin-jest](#eslint-plugin-jest)\n        - [ESLint-plugin-jsdoc](#eslint-plugin-jsdoc)\n        - [ESLint-plugin-json](#eslint-plugin-json)\n        - [ESLint-plugin-promise](#eslint-plugin-promise)\n        - [ESLint-plugin-unicorn](#eslint-plugin-unicorn)\n        - [ESLint-plugin-vue](#eslint-plugin-vue)\n    - [VScode extension](#vscode-extension)\n\n## Overview\n\nESLint statically analyzes your code to find problems.\nRun ESLint as part of your continuous integration pipeline.\n\n- [Homepage](https://eslint.org/)\n\n## Getting started\n\n1. Install ESLint in your project\n\n```shell\nnpm install --save-dev eslint @eslint/js\n```\n\n1. Add `eslint.config.js` configuration file.\n\n```shell\n# Create JavaScript configuration file\ntouch eslint.config.js\n```\n\n1. Add configuration to the `eslint.config.js` file. See Configure ESLint [documentation](https://eslint.org/docs/latest/use/configure/).\n\n```js\n// ./eslint.config.js\nimport js from \"@eslint/js\";\n\nexport default [\n    js.configs.recommended,\n   {\n       rules: {\n           \"no-unused-vars\": \"warn\",\n           \"no-undef\": \"warn\"\n       }\n   }\n];\n```\n\n## Configuration\n\nThe following are valid configuration file names:\n\n- `eslint.config.js`\n- `eslint.config.mjs`\n- `eslint.config.cjs`\n\n```js\nexport default [\n    {\n        rules: {\n            eqeqeq: \"off\",\n            \"no-unused-vars\": \"error\",\n            \"prefer-const\": [\"error\", { \"ignoreReadBeforeAssign\": true }]\n        }\n    }\n];\n```\n\n### Ignoring files\n\nBy default, ESLint ignores files using the following patter: `[\"**/node_modules/\", \".git/\"]`\nTo ignore files (added to the previous pattern):\n\n- On the command-line, use `--ignore-pattern`\n- Inside your config files\n\n```js\n// eslint.config.js\nimport js from '@eslint/js';\nimport globals from \"globals\";\n\nexport default [\n    js.configs.recommended,\n    {\n        languageOptions: {\n            // Set common globals (windows,document...) to prevent \"no-undef\"\n            globals: {\n                ...globals.browser,\n            }\n        },\n        ignores: ['node_modules', 'vendor', '.gitlab-ci-local'],\n}];\n\n```\n\n### Using configuration comments\n\nUse file comments to dynamically configure rules.\n\n```js\n/* eslint eqeqeq: \"off\", curly: \"error\" */\n```\n\nTo include option settings:\n\n```js\n/* eslint quotes: [\"error\", \"double\"], curly: 2 */\n```\n\nAdd specific descriptions too.\n\n```js\n/* eslint eqeqeq: \"off\", curly: \"error\"\n * --------\n * This will not work due to the line above starting with a '*' character.\n */\n```\n\n## Usage\n\n- Use the command:\n\n```bash\nnpx eslint\n```\n\n- Add a script helper to `package.json`\n\n```json\n  \"scripts\": {\n    \"lint:js\": \"eslint\",\n    \"lint:js:fix\": \"eslint --fix\"\n  },\n```\n\n## Rules\n\n[Rule list](https://eslint.org/docs/latest/rules/)\n\nRules have 3 configurable states:\n\n- `off` / `0` - turn the rule off.\n- `warn` / `1` - turn the rule on, but do not throw errors.\n- `error` / `2` - turn the rule on, and return an non-zero exit code.\n\n[Rule list](https://eslint.org/docs/latest/rules/) groups rules as:\n\n- [Possible problems](https://eslint.org/docs/latest/rules/#possible-problems)\n- [Suggestions](https://eslint.org/docs/latest/rules/#suggestions)\n- [Layout \u0026 Formatting](https://eslint.org/docs/latest/rules/#layout--formatting)\n\n## Awesome ESLint\n\n[Awesome ESLint](https://github.com/dustinspecker/awesome-eslint)\n\n### Plugins\n\n#### @stylistic\n\nESLint extracted formatter rules into separate packages.\n\nMigrated plugins:\n\n- `eslint` -\u003e [`@stylistic/eslint-plugin-js`](https://eslint.style/packages/js)\nBuilt-in stylistic rules for JavaScript\n- `@typescript-eslint/eslint-plugin` -\u003e [`@stylistic/eslint-plugin-ts`](https://eslint.style/packages/ts)\nStylistic rules for TypeScript\n- `eslint-plugin-react` -\u003e [`@stylistic/eslint-plugin-jsx`](https://eslint.style/packages/jsx)\nStylistic rules for framework-agnostic JSX\n\nPlugins:\n\n- [`@stylistic/eslint-plugin-plus`](https://eslint.style/packages/plus)\nOther rules introduced by ESLint Stylistic\n\nUnified plugins:\n\n- [`@stylistic/eslint-plugin`](https://eslint.style/packages/default)\nAll rules from the above 4 plugins\n\n#### ESLint-plugin-compat\n\nHomepage: [`eslint-plugin-compa`t](https://github.com/amilajack/eslint-plugin-compat)\nLint the browser compatibility of your code.\n\n#### ESLint-plugin-cypress\n\nHomepage: [`eslint-plugin-cypress`](https://github.com/cypress-io/eslint-plugin-cypress)\nLint the Cypress tests.\n\n#### ESLint-plugin-HTML\n\nHomepage: [`eslint-plugin-html`](https://github.com/BenoitZugmeyer/eslint-plugin-html)\nLint and fix inline scripts contained in HTML files.\n\n#### ESLint-plugin-jest\n\nHomepage: [`eslint-plugin-jest`](https://github.com/jest-community/eslint-plugin-jest)\n\nRules and fixes for Jest tests.\n\n#### ESLint-plugin-jsdoc\n\nHomepage: [`eslint-plugin-jsdoc`](https://github.com/gajus/eslint-plugin-jsdoc)\nJSDoc linting rules for ESLint.\n\n#### ESLint-plugin-json\n\nHomepage: [`eslint-plugin-json`](https://github.com/azeemba/eslint-plugin-json)\n\nESLint plugin for JSON files.\n\n#### ESLint-plugin-promise\n\nHomepage: [`eslint-plugin-promise`](https://github.com/xjamundx/eslint-plugin-promise)\nEnforce best practices for JavaScript promises.\n\n#### ESLint-plugin-unicorn\n\nHomepage: [`eslint-plugin-unicorn`](https://github.com/sindresorhus/eslint-plugin-unicorn)\n\nMore than 100 powerful ESLint rules.\n\n#### ESLint-plugin-vue\n\nHomepage: [`eslint-plugin-vue`](https://github.com/vuejs/eslint-plugin-vue)\n\nOfficial plugin for Vue.\n\n### VScode extension\n\nHomepage: \u003chttps://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint\u003e\n\n```json\n{\n  \"editor.formatOnSave\": false,\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll.eslint\": \"always\"\n  },\n  \"eslint.enable\": true\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyler36%2Feslint-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyler36%2Feslint-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyler36%2Feslint-demo/lists"}