2.1.0 • Published 2 years ago
@hyperspaceinc/eslint-config v2.1.0
@hyperspaceinc/eslint-config
ESLint configration for Hyperspace projects
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
andeslint-plugin-cypress
to be installed
module.exports = {
extends: [
"@hyperspaceinc/eslint-config",
"@hyperspaceinc/eslint-config/cypress",
// ...other extends here
],
};
Maintainers
- Griko Nibras (@grikomsn)