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

eslint-config-agile-digital

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-agile-digital

Agile Digital's standard ESLint config


Version published
Maintainers
1
Created

eslint-config-agile-digital

Agile Digital's standard ESLint config

Build Status Type Coverage npm Snyk Vulnerabilities for GitHub Repo

Installation

yarn add --dev eslint-config-agile-digital \
  eslint-config-typed-fp \
  @typescript-eslint/eslint-plugin \
  @typescript-eslint/parser \
  eslint \
  eslint-plugin-functional \
  eslint-plugin-total-functions \
  eslint-plugin-jest \
  eslint-plugin-prettier \
  eslint-plugin-sonarjs \
  eslint-plugin-import \
  eslint-plugin-react \
  eslint-plugin-react-hooks \
  eslint-plugin-jsx-a11y \
  typescript

Usage

  1. Turn on TypeScript's strict mode and noUncheckedIndexedAccess option.
  2. Set up ESLint + TypeScript.
  3. Update your .eslintrc.js:
module.exports = {
+  parser: "@typescript-eslint/parser",
  parserOptions: {
+    project: "./tsconfig.json",
+    ecmaVersion: 2018,
+    sourceType: "module"
  },
  extends: [
+  "agile-digital",
+  "agile-digital/react", // In addition to the above if this is a React project 
  ...
  ],
  plugins: [
+  "jest",
+  "sonarjs",
+  "functional",
+  "@typescript-eslint",
+  "prettier",
+  "total-functions",
+  "import",
+  "react",
+  "react-hooks",
+  "jsx-a11y",
  ...
],
  rules: {
    ...
  }
};

FAQs

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