🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@thesis-co/eslint-config

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thesis-co/eslint-config

ESLint TypeScript shareable config for Thesis wide projects

latest
npmnpm
Version
0.6.1
Version published
Weekly downloads
248
-23.69%
Maintainers
3
Weekly downloads
 
Created
Source

eslint-config

A shared ESLint config based off Airbnb style guides. Covers JS and TS including React / JSX.

Getting started

  • Install eslint and the shared config with yarn
yarn add -D eslint prettier @typescript-eslint/eslint-plugin @typescript-eslint/parser
yarn add -D @thesis-co/eslint-config
  • In your .eslintrc.js add:
module.exports = {
  root: true,
  extends: [
      "@thesis-co"
  ]
}
  • Add .tsconfig-eslint.json. You can add this file manually with custom configuration or symlink this file with the default options.
ln -s ./node_modules/@thesis-co/eslint-config/.tsconfig-eslint.json ./.tsconfig-eslint.json
  • Add commands for linting to your package.json:
{
 "scripts": {
   "lint:eslint": "eslint .",
   "lint:fix:eslint": "eslint . --fix"
 }
}
 - repo: local
   hooks:
    - id: lint-ts
      name: 'lint ts'
      entry: /usr/bin/env bash -c "yarn lint:ts"
      files: '\.tsx$'
      language: script
      description: "Checks TS code according to the package's linter configuration"
    - id: lint-js
      name: 'lint js'
      entry: /usr/bin/env bash -c "yarn lint:js"
      files: '\.jsx$'
      language: script
      description: "Checks JS code according to the package's linter configuration"

FAQs

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