New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-translated

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-translated

ESLint rules for JavaScript projects

  • 1.0.41
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-60.87%
Maintainers
1
Weekly downloads
 
Created
Source

Translated ESLint config

This package provides the ESLint configuration for JavaScript projects, both NodeJS and ReactJS, of Translated organization.

You can check eslint plugins used directly from the plugins section.

Rules

The following rules are explicitly applied on top of the base configuration exported from plugins:

  • "no-console": "off": services currently log using the native console.log and console.error without using 3rd party logging libraries
  • "max-lines-per-function": ["error", 200]: good indicator of a too complex function
  • "import/order": "error": for improved readability
  • "singleQuote": true: for improved readability
  • "printWidth": 160: for improved readability, assuming company developers are supposed to use at least a 24" display

Installation

Install package as a devDependency:

yarn add --dev eslint-config-translated

Configuration

Create a .eslintrc file with the following content:

{
  "extends": ["eslint-config-translated"]
}

Linting

Fix codebase errors:

yarn eslint --fix .

Keywords

FAQs

Package last updated on 11 Apr 2023

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