Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@strv/eslint-config-javascript

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strv/eslint-config-javascript

Write bulletproof JavaScript like a pro!

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
303
increased by22.67%
Maintainers
1
Weekly downloads
 
Created
Source

JavaScript Coding Standards

Write bulletproof JavaScript like a pro!

Build Status ESLint version

About

This repository contains various configuration files for the awesome JavaScript linter, ESLint. The configuration files are purposefully separated into various categories to allow their composition according to developers' preferences or requirements. It should also make adoption of ESlint across existing codebases easier.

Goals

  • Safety
  • Coding style consistency

The goal of this project is to help all developers write better code. It should not be a hindrance or cause a major fight about how to write it. Although it will never achieve the "one-config-suits-all" status in terms of coding style, it should achieve that when it comes to writing safe JavaScript.

Structure

The ESLint rules are semantically grouped into various categories for easy composition.

Environments

These rules are the ones you should be including in your .eslintrc configuration. They are separated into categories based on the environment for which the code is being developed. Additionally, each environment provides several levels of "strictness" which the developer can choose from. This level of separation is meant as a means to gradual adoption of all the rulesets.

It is recommended for new projects to include all levels.

Coding Styles

These rules help developers adhere to a certain coding style. They do not provide code safety, but help developers write code in a way that is consistent across the whole codebase, which in long term helps them better maintain that code.

These rules are intended to be used independently on platform. However, you should still consider including rules for your environment if you really care about high-quality JavaScript.

Usage

Installation

This package can be installed via npm using Github-URL:

npm install --save-dev strvcom/js-coding-standards

Note that the package will be installed as eslint-config-javascript, because that's what the package's name is.

Configuration

Once the ruleset is installed, you must create your own .eslintrc configuration file in your project's root and include those rulesets that you want to use. See the examples directory for, well... examples.

Status

  • standard: Finished
  • environments
    • nodejs: Finished
    • browser: Not started
    • babel: Not started
  • coding-styles: Finished

License

This software is licensed under the BSD-3-Clause License. See the LICENSE file for more information.

Keywords

FAQs

Package last updated on 18 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc