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

@kreozot/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kreozot/eslint-config

Kreozot ESLint config

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@kreozot/eslint-config

Structured shareable ESLint-config with custom rules overrides for JS, TS and TS+React projects.

Based on Airbnb JavaScript Style Guide, more specific on TypeScript adaptation.

Has autotests with precommit and prepublish hooks to ensure that all the rules are defined correctly.

Usage with TypeScript + React

Installation with all required dependencies (including ESLint and TypeScript):

npm i --save-dev @kreozot/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint typescript eslint-config-airbnb eslint-config-airbnb-typescript eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks

Why not to add all these dependencies to package.json? Because of ESLint restrictions.

Project ESLint configuration example:

{
  "extends": [
    "@kreozot/eslint-config"
  ],
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

Usage with TypeScript

Installation with all required dependencies (including ESLint):

npm i --save-dev @kreozot/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint typescript eslint-config-airbnb eslint-config-airbnb-typescript eslint-plugin-import

Project ESLint configuration example:

{
  "extends": [
    "@kreozot/eslint-config/ts"
  ],
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

Usage with JavaScript

Installation with all required dependencies (including ESLint):

npm i --save-dev @kreozot/eslint-config eslint eslint-config-airbnb-base eslint-plugin-import

Project ESLint configuration example:

{
  "extends": [
    "@kreozot/eslint-config/js"
  ],
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

Project structure

  • overrides - Common rules overrides
  • overrides-ts - Rules overrides for TypeScript
  • overrides-react - Rules overrides for React
  • js.js - Config entry point for JavaScript
  • ts.js - Config entry point for TypeScript
  • ts-react.js - Config entry point for TypeScript + React

FAQs

Package last updated on 17 Sep 2022

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