{"id":13801815,"url":"https://github.com/mozfreddyb/eslint-config-scanjs","last_synced_at":"2025-05-13T11:31:54.859Z","repository":{"id":34329737,"uuid":"38249354","full_name":"mozfreddyb/eslint-config-scanjs","owner":"mozfreddyb","description":"umbrella config to achieve scanjs-like functionality through eslint","archived":true,"fork":false,"pushed_at":"2021-06-09T07:58:43.000Z","size":89,"stargazers_count":88,"open_issues_count":0,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-12T11:49:36.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/mozfreddyb.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}},"created_at":"2015-06-29T13:33:38.000Z","updated_at":"2023-10-09T19:19:47.000Z","dependencies_parsed_at":"2022-08-20T06:40:44.079Z","dependency_job_id":null,"html_url":"https://github.com/mozfreddyb/eslint-config-scanjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozfreddyb%2Feslint-config-scanjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozfreddyb%2Feslint-config-scanjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozfreddyb%2Feslint-config-scanjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozfreddyb%2Feslint-config-scanjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozfreddyb","download_url":"https://codeload.github.com/mozfreddyb/eslint-config-scanjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253932978,"owners_count":21986488,"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-08-04T00:01:27.879Z","updated_at":"2025-05-13T11:31:49.850Z","avatar_url":"https://github.com/mozfreddyb.png","language":null,"funding_links":[],"categories":["Plugins"],"sub_categories":["Security"],"readme":"# This repository has been archived as read-only\nWe recommend looking at https://github.com/mozilla/eslint-plugin-no-unsanitized\nif you are interested in xss-prevention techniques.\n\n## ScanJS Rules through ESLint.\n\nIf you want to get something like ScanJS using ESLint. This is the config \nfile.\n\n## Install\n```sh\nnpm -g install\n* cp -v .eslintrc ~/.scanjs-eslintrc\n```\n\n\u003c!--\nNote that a globally installed eslint can see only globally installed plugins.\n\nSo you either have to install eslint itself and then required packages locally\nOr everything globally.\n--\u003e\n\n\n## Running\n```sh\ncd project-to-scan/\neslint --no-eslintrc -c ~/.scanjs-eslintrc .\n```\n\n### Usage within IntelliJ IDEs (WebStorm, PyCharm etc.)\n1. Open the Settings dialog and navigate to **Languages \u0026 Frameworks → JavaScript → Code Quality Tools → ESLint**.\n2. **Enable ESLint** and make sure your settings match your installation:  Use a globally installed eslint package, the installer will place this in `/usr/lib/node_modules/eslint` or `usr/local/lib/node_modules/eslint`.\n3. **Supply the config path `~/.scanjs-eslintrc`**\n4. Reset the default rules, by providing **extra eslint options**, so we only use the provided config. This disables the default eslint rules, which check for coding style, not security: `--no-eslintrc -c ~/.scanjs-eslintrc .`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozfreddyb%2Feslint-config-scanjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozfreddyb%2Feslint-config-scanjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozfreddyb%2Feslint-config-scanjs/lists"}