Socket
Book a DemoInstallSign in
Socket

eslint-config-pegasus

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-pegasus

Eslint shareable config with personalized defaults

6.0.1
Source
npmnpm
Version published
Weekly downloads
200
250.88%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-pegasus

pegasus

Tests npm version npm licence

Eslint shareable config with personalized defaults.

Install

npm install eslint eslint-config-pegasus --save-dev

Usage

See Eslint's Shareable Configs for more information.

import pegasus from 'eslint-config-pegasus';

export default [
  pegasus.configs.default, // core config
  pegasus.configs.stylistic, // stylistic config
];

Additional rules

Node.js

import pegasus from 'eslint-config-pegasus';

export default [
  pegasus.configs.default, // core
  pegasus.configs.node,
];

Typescript

import pegasus from 'eslint-config-pegasus';

export default [
  pegasus.configs.default,
  pegasus.configs.node,
  ...pegasus.tsConfig({
    files: ['*.ts'],
    extends: pegasus.configs.typescript,
  }),
];

Or Use Recommended Config

import pegasus from 'eslint-config-pegasus';

export default [
  pegasus.configs.default,
  pegasus.configs.node,
  ...pegasus.tsConfig({
    files: ['*.ts'],
    extends: pegasus.configs.typescriptRecommended,
  }),
];

This extendes typescript-eslint/recommended with typechecking

Or Use Strict Config

import pegasus from 'eslint-config-pegasus';

export default [
  pegasus.configs.default,
  pegasus.configs.node,
  ...pegasus.tsConfig({
    files: ['*.ts'],
    extends: pegasus.configs.typescriptStrict,
  }),
];

typescript-strict includes all base, recommended and stylistic configuration

React

import pegasus from './index.js';

export default [
  pegasus.configs.default,
  {
    ...pegasus.configs.react,
    files: ['test/fixtures/jsx/*.jsx'],
  },
];

Browsers

import pegasus from 'eslint-config-pegasus';

export default [
  pegasus.configs.default, // core config
  pegasus.configs.browser,
];

Keywords

eslint

FAQs

Package last updated on 04 Nov 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.