1.0.0 • Published 9 years ago

eslint-plugin-fasec v1.0.0

Weekly downloads
3
License
-
Repository
github
Last release
9 years ago

Fusion Alliance Security for Node.js - ESLint Plugins

Maintenance Status NPM version Build Status Dependency Status Coverage Status

The plugin architecture of ESLint makes it possible to create plugins that look for potential security issues in JavaScript code. Adam Baldwin discusses some of these techniques in his article Using ESLint Plugins for Node.js App Security. This project is a collection of security-minded ESLint custom rules.

Getting Started

You can use these rules in ESLint manually:

eslint --reset -c config.json --rulesdir ./lib [file.js] [dir]

But in practice it's much more convenient to use them in a task runner plugin, such as the FASEC Grunt plugin.

Demo

To see FASEC in action, clone and run the FASEC demo project.

Test

Testing is provided by mocha.

Either run in bash:

$ npm test

Or the full command:

$ node_modules/mocha/bin/_mocha tests/**/*.js --reporter spec

List of supported rules

Contributors

Fusion Alliance Logo FASEC is a product of Fusion Alliance © 2015.

This project uses the following Open Source components:

LICENSE

The MIT License (MIT)

Copyright (c) 2015 Fusion Alliance With portions Copyright (c) 2013 Adam Baldwin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.