Socket
Book a DemoInstallSign in
Socket

@manuscripts/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manuscripts/eslint-config

Shared ESLint config for Manuscripts projects

latest
Source
npmnpm
Version
0.5.1
Version published
Weekly downloads
202
445.95%
Maintainers
1
Weekly downloads
 
Created
Source

Manuscripts ESLint config

Shared ESLint config for Manuscripts projects.

Install

Use the following command to install ESLint, this shared config and the plugins needed as dev dependencies:

yarn add --dev eslint typescript \
    @typescript-eslint/eslint-plugin @typescript-eslint/parser \
    eslint-plugin-prettier eslint-config-prettier \
    eslint-plugin-import eslint-plugin-simple-import-sort \
    eslint-plugin-react eslint-plugin-react-hooks \
    eslint-plugin-header eslint-plugin-jest  \
    eslint-plugin-promise eslint-plugin-node \
    eslint-plugin-jsx-a11y \
    eslint-plugin-mdx \
    @manuscripts/eslint-config

Usage

Use the following in a project's .eslintrc.js file (or eslintConfig section in package.json):

module.exports = {
  extends: '@manuscripts/eslint-config',
  parserOptions: {
    project: './tsconfig.json',
  },
}

License header

The header/header rule enforces a short Apache 2.0 license header at the start of every file.

To add the missing file header to all files in a project, run eslint --ext .ts,.tsx src --fix

To disable this rule, add the following to the "rules" section of the project's ESLint config:

  "header/header": false

FAQs

Package last updated on 22 Dec 2022

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