Giter VIP home page Giter VIP logo

eslint-config-agile-digital's Introduction

eslint-config-agile-digital

Agile Digital's standard ESLint config

Build Status Type Coverage npm Snyk Vulnerabilities for GitHub Repo

Installation

yarn add --dev @agiledigital/eslint-config \
  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-simple-import-sort \
  eslint-plugin-filename-rules \
  eslint-plugin-jsdoc \
  eslint-plugin-tsdoc \
  eslint-plugin-no-secrets \
  eslint-plugin-prefer-arrow-functions \
  eslint-plugin-react \
  eslint-plugin-react-hooks \
  eslint-plugin-jsx-a11y \
  eslint-plugin-react-refresh \
  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"
+    tsconfigRootDir: __dirname,
  },
  extends: [
+  "@agiledigital",
+  "@agiledigital/eslint-config/react", // In addition to the above if this is a React project 
  ...
  ],
  rules: {
    ...
  }
};

eslint-config-agile-digital's People

Contributors

adamlthomas avatar avonow avatar danielnixon avatar dspasojevic avatar haolinj avatar renovate[bot] avatar rorystokes avatar sammurphydev avatar tim-w-james avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eslint-config-agile-digital's Issues

Disable certain rules for tests

e.g.

  "overrides": [
    {
      "files": ["*.test.ts"],
      "rules": {
        "functional/functional-parameters": "off",
        "functional/no-return-void": "off",
        "functional/no-throw-statement": "off",
        "functional/no-expression-statement": "off",
        "total-functions/no-unsafe-mutable-readonly-assignment": "off",
        "sonarjs/no-duplicate-string": "off"
      }
    }
  ]

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency eslint-plugin-tsdoc to ^0.3.0
  • Update dependency eslint-plugin-no-secrets to v1
  • Update dependency eslint-plugin-sonarjs to v1
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/node.js.yml
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
  • actions/setup-node v3
npm
package.json
  • @agiledigital/eslint-config ^4.1.0
  • @types/react ^18.2.46
  • @typescript-eslint/eslint-plugin ^6.17.0
  • @typescript-eslint/parser ^6.17.0
  • eslint ^8.56.0
  • eslint-config-prettier ^9.1.0
  • eslint-config-typed-fp ^5.4.0
  • eslint-plugin-filename-rules ^1.3.1
  • eslint-plugin-functional ^6.0.0
  • eslint-plugin-import ^2.29.1
  • eslint-plugin-jest ^27.6.1
  • eslint-plugin-jsdoc ^46.8.2
  • eslint-plugin-jsx-a11y ^6.8.0
  • eslint-plugin-no-secrets ^0.8.9
  • eslint-plugin-prefer-arrow-functions ^3.1.4
  • eslint-plugin-prettier ^5.1.2
  • eslint-plugin-react ^7.33.2
  • eslint-plugin-react-hooks ^4.6.0
  • eslint-plugin-react-refresh ^0.4.3
  • eslint-plugin-simple-import-sort ^10.0.0
  • eslint-plugin-sonarjs ^0.23.0
  • eslint-plugin-total-functions ^7.1.0
  • eslint-plugin-tsdoc ^0.2.17
  • jest ^29.7.0
  • prettier ^3.1.1
  • prettier-plugin-packagejson ^2.4.6
  • react ^18.2.0
  • ts-jest ^29.1.1
  • type-coverage ^2.27.1
  • typescript ^5.3.3
  • @typescript-eslint/eslint-plugin >=6.7.0
  • @typescript-eslint/parser >=6.7.0
  • eslint ^8.0.0
  • eslint-config-prettier >=9.0.0
  • eslint-config-typed-fp >=5.3.0
  • eslint-plugin-filename-rules >=1.3.1
  • eslint-plugin-functional >=6.0.0
  • eslint-plugin-import >=2.28.0
  • eslint-plugin-jest >=27.4.0
  • eslint-plugin-jsdoc >=46.5.1
  • eslint-plugin-jsx-a11y >=6.7.0
  • eslint-plugin-no-secrets >=0.8.9
  • eslint-plugin-prefer-arrow-functions >=3.1.4
  • eslint-plugin-prettier >=5.0.0
  • eslint-plugin-react >=7.33.0
  • eslint-plugin-react-hooks >=4.6.0
  • eslint-plugin-react-refresh >=0.3.4
  • eslint-plugin-simple-import-sort >=10.0.0
  • eslint-plugin-sonarjs >=0.21.0
  • eslint-plugin-total-functions >=7.1.0
  • eslint-plugin-tsdoc >=0.2.17
  • typescript ^5.0.0
  • node >=16.10.0
nvm
.nvmrc
  • node 18

  • Check this box to trigger a request for Renovate to run again on this repository

Disable prefer-immutable-types

It's currently bugged:

ESLint: 8.56.0

Error: ErrorType encountered.
Occurred while linting [...]
Rule: "functional/prefer-immutable-types"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.