Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-reperio

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-reperio

Reperio ESLint config

  • 0.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-96.36%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-config-reperio

This is a sharable ESLint configuration for Reperio. It is based on the following packages:

  • eslint-config-universe from Expo for cross-platform support
  • eslint-plugin-perfectionist for sorting

Getting started

  1. Install the package and peer dependencies:
npm install --save-dev eslint-config-reperio eslint@8 prettier
  1. Add the following to your .eslintrc.json file:
{
  "extends": "reperio"
}
  1. Add npm run lint and npm run format scripts to package.json since most of the rules are automatically fixable.
{
  "scripts": {
    "lint": "eslint . --ignore-path .gitignore",
    "format": "eslint . --fix --ignore-path .gitignore"
  }
}

Editor integration

It's recommended to install the ESLint and Prettier extensions for your editor. For VS Code, you can install the ESLint extension and Prettier extension.

It is also recommended to enable "Format On Save". Here is an example configuration for VS Code's settings.json:

{
  "[javascript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
    "editor.formatOnSave": false
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
    "editor.formatOnSave": false
  },
  "[typescript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
    "editor.formatOnSave": false
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
    "editor.formatOnSave": false
  },
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnPaste": true,
  "editor.formatOnSave": true,
  "eslint.codeActionsOnSave.rules": null,
  "eslint.format.enable": true
}

Disabling rules

The perfectionist rules are faily opinionated for sorting, so you can disable them as needed, e.g.:

// eslint-disable-next-line perfectionist/sort-objects
const helloWorld = { b: 2, a: 1 }

Keywords

FAQs

Package last updated on 09 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

  • 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