Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

anion155/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this module about?

It's my personal eslint configuration. It's based on eslint-config-airbnb, has support for prettier, and some other eslint plugins.

Usage

// Node Package Manager
npm install --save-dev @anion155/eslint-config eslint prettier typescript
// OR
// Yarn Package Manager
yarn add --dev @anion155/eslint-config eslint prettier typescript

tsc --init
// .eslintrc.json
{
  "extends": ["@anion155"],
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

jestConfig

There is also override configuration for jest test files. Default structure is __tests__ sub folders in sources and .spec sub extension:

  • src/
    • moduleA.ts
    • tests/
      • moduleA.spec.ts

Used like this

// .eslintrc.js
const jestConfig = require('@anion155/eslint-config/jest');

/** @type {import('eslint').Linter.Config} */
module.exports = {
  "root": true,
  "extends": ["@anion155"],
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "overrides": [
    jestConfig({}),
  ]
}

About

Personal eslint configuration. Moved to https://github.com/anion155/monorepo/

Resources

Stars

Watchers

Forks

Packages

No packages published