Skip to content

ESLint configuration used by AV's projects.

Notifications You must be signed in to change notification settings

Alergeek-Ventures/eslint-config

Repository files navigation

AV's ESLint configuration

  • our way of ensuring code consistency
  • no styling rules - use with prettier
  • available flavors 🍧:
    • vanilla (Javascript + imports)
    • typescript (uses @typescript-eslint suite)
    • react (react, JSX, hooks)
    • tests (integration / unit tests via @testing-library and jest)
    • cypress (e2e tests)

how to use:

# example
module.exports = {
  env: {
    node: true,
    commonjs: true,
    jest: true,
  },
  extends: ["./vanilla.js", "./typescript.js", "./react.js", "./tests.js"],
  parser: "@typescript-eslint/parser",
  root: true,
  parserOptions: {
    /* eslint-disable-next-line @typescript-eslint/no-unsafe-assignment */
    tsconfigRootDir: __dirname,
    project: ["./tsconfig.json"],
  },

  settings: {
    react: {
      version: "detect",
    },
  },
};

About

ESLint configuration used by AV's projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published