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

eslint-config-altheajs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-altheajs

An eslint config, what else?

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

altheajs-eslint-config

Althea Web Service's eslint configuration.

You can view this package on NPM: click here

Installation

npm

npm install --save-dev altheajs-eslint-config

yarn

yarn add --dev altheajs-eslint-config

Usage

Configuration

The simplest way to install and use the default config is to reference it directly in your package.json file as follows:

{
	// ...package.json
	"eslintConfig": {
		"extends" : "altheajs-eslint-config"
	}
}

If you'd like to extend the configurations, create a .eslintrc.js file at the root of your project that contains:

module.exports = {
	"extends": ["altheajs-eslint-config"],
	// if using typescript
	"parserOptions": { "project": "./tsconfig.json" }
	// ...more custom config overrides
};

NPM Scripts Command

You can add in an npm script to your package.json which will apply lint rules across all the file patterns specified. Simply add the following to apply to all files:

{
	// ...package.json
	"scripts": {
		// check for linting errors
		"lint:quality": "npx eslint -c .eslintrc.js . --ext .js,.jsx,.ts,.tsx"
		// fix and apply the rules to those that can be fixed
		"fix:quality": "npx eslint -c .eslintrc.js . --ext .js,.jsx,.ts,.tsx --fix",
	}
}

Editor Integration

Visual Studio Code

  1. Install ESLint extension: View → Extensions then find and install the ESLint extension.

  2. Reload the editor.

  3. In your user settings Code -> Preferences -> Settings add the following settings:

    {
    	// ...settings.json
    	"editor.codeActionsOnSave": {
    		"source.fixAll.eslint": true
    	}
    }
    

Enforced Rules

Check out all of ESlint's configuration options.

Keywords

FAQs

Package last updated on 15 Jul 2021

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