New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@ilo-org/eslint-config

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ilo-org/eslint-config

ESLint configuration for ILO Design System

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
5
-88.89%
Maintainers
2
Weekly downloads
 
Created
Source

@ilo-org/eslint-config

ESLint configuration for ILO Design System. These docs are a WIP

Getting started

npm install -D @ilo-org/eslint-config

Usage

@ilo-org/eslint-config provides a list of ESLint flat configurations:

Config NameDescriptionInternal Extends
jsBase JavaScript config⛔
recommendedRecommended configuration js + tsjs
reactReact Typescript configts -> js

You can use any configuration you like by simply including it inside your eslint config

Just export it

import configs from "@ilo-org/eslint-config";

export default configs.recommended;

or extend and add your own

import configs from "@ilo-org/eslint-config";

export default [
  ...configs.recommended,
  {
    rules: {
      "no-console": "warn",
    },
  },
];

Opinionated rules

🚨 - Displayed as an error 🚧 - Displayed as a warning ✅ - Allowed

RuleSeverityDescription
"prettier/prettier"🚨Is strong about formatting
"no-console"🚧Prevents the use of console.log but allows warn and error
"no-duplicate-imports"🚧Prevents duplicate imports
"no-await-in-loop"🚧Prevents await inside loops
"no-unused-vars"🚧Prevents unused variables but allows _ to be ignored
"@typescript-eslint/class-literal-property-style"🚧Normalizes class literal properties
"@typescript-eslint/no-duplicate-enum-values"🚧
"@typescript-eslint/prefer-for-of"🚧Enforces the use of for-of
"@typescript-eslint/consistent-type-definitions"🚧interface is preferred
"@typescript-eslint/ban-ts-comments"✅
"@typescript-eslint/ban-ts-ignores"✅

📝 License

Licensed under the Apache 2.0 License.

Keywords

ilo

FAQs

Package last updated on 25 Sep 2024

Related posts