Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozfreddyb/eslint-config-scanjs
umbrella config to achieve scanjs-like functionality through eslint
https://github.com/mozfreddyb/eslint-config-scanjs
Last synced: 3 months ago
JSON representation
umbrella config to achieve scanjs-like functionality through eslint
- Host: GitHub
- URL: https://github.com/mozfreddyb/eslint-config-scanjs
- Owner: mozfreddyb
- Archived: true
- Created: 2015-06-29T13:33:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-06-09T07:58:43.000Z (over 3 years ago)
- Last Synced: 2024-07-04T02:54:58.152Z (4 months ago)
- Size: 86.9 KB
- Stars: 88
- Watchers: 5
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-eslint - config - plugin-scanjs-rules) - Security-related rules. (Plugins / Security)
README
# This repository has been archived as read-only
We recommend looking at https://github.com/mozilla/eslint-plugin-no-unsanitized
if you are interested in xss-prevention techniques.## ScanJS Rules through ESLint.
If you want to get something like ScanJS using ESLint. This is the config
file.## Install
```sh
npm -g install
* cp -v .eslintrc ~/.scanjs-eslintrc
```## Running
```sh
cd project-to-scan/
eslint --no-eslintrc -c ~/.scanjs-eslintrc .
```### Usage within IntelliJ IDEs (WebStorm, PyCharm etc.)
1. Open the Settings dialog and navigate to **Languages & Frameworks → JavaScript → Code Quality Tools → ESLint**.
2. **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`.
3. **Supply the config path `~/.scanjs-eslintrc`**
4. 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 .`