New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@app-press/eslint-config

Package Overview
Dependencies
Maintainers
11
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@app-press/eslint-config

App Press' ESLint rules

  • 2.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
26
increased by62.5%
Maintainers
11
Weekly downloads
 
Created
Source

eslint-config

This package provides App Press' .eslintrc.json as an extensible shared config.

Usage

A few ESLint configurations are exported for convenience; all exports allow for standard testing frameworks (Mocha, Jasmine, and Jest):

eslint-config

The default export contains all ESLint rules, including ES6 and React, and tries to find a balance between traditional server-side and client-side code styles. For this reason, it does not use modules for client-side code by default; thus, the following code will not pass linting:

import React from "react";

But this will:

const React = require("react");
  1. npm install --save-dev @app-press/eslint-config eslint eslint-plugin-react
  2. Add "extends": "@app-press/eslint-config to your .eslintrc file

eslint-config/node

This export is for use on server-side-only code and will not lint React (though it will lint ES6).

  1. npm install --save-dev @app-press/eslint-config eslint
  2. Add "extends": "@app-press/eslint-config/node to your .eslintrc.json file

eslint-config/client

This export is for use on client-side-only code and will lint React (including JSX) and ES6 code.

  1. npm install --save-dev @app-press/eslint-config eslint
  2. Add "extends": "@app-press/eslint-config/client to your .eslintrc file

eslint-config/client-modules

This export is for use on client-side-only code and will lint React (including JSX) and ES6 code. It will also expect that all client-side code is ES6 module based (and thus will assume strict by default).

  1. npm install --save-dev @app-press/eslint-config eslint
  2. Add "extends": "@app-press/eslint-config/client-modules to your .eslintrc file

To override specific rules, simply add a rules section to your .elintrc.json and add your desired rules — they will take precedence.

You may also modify the parser, parserOptions, etc. Just include those sections as well.

FAQs

Package last updated on 22 Sep 2017

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