2.1.0 • Published 2 years ago

@hyperspaceinc/eslint-config v2.1.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
2 years ago

@hyperspaceinc/eslint-config

ESLint configration for Hyperspace projects

npm packagephobia/install packagephobia/publish


Table of contents


Installation

# using npm
npm install --save-dev eslint@^7 @hyperspaceinc/eslint-config

# using yarn
yarn add --dev eslint@^7 @hyperspaceinc/eslint-config

Usage

module.exports = {
  extends: [
    "@hyperspaceinc/eslint-config",
    // "@hyperspaceinc/eslint-config/base", // deprecated
  ],
};

For React projects

module.exports = {
  extends: [
    "@hyperspaceinc/eslint-config/react",
    // ...other extends here
  ],
};

For Next.js projects*

requires eslint-config-next to be installed

module.exports = {
  extends: [
    "@hyperspaceinc/eslint-config/react",
    "plugin:@next/next/recommended",
    // ...other extends here
  ],
};

For Cypress projects*

requires eslint-plugin-chai-friendly and eslint-plugin-cypress to be installed

module.exports = {
  extends: [
    "@hyperspaceinc/eslint-config",
    "@hyperspaceinc/eslint-config/cypress",
    // ...other extends here
  ],
};

Maintainers