2.1.8 • Published 2 years ago

eslint-config-apteryx v2.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Apteryx's ESLint Config

Installation

npm install eslint eslint-config-apteryx
yarn add eslint eslint-config-apteryx
pnpm add eslint eslint-config-apteryx

Any additional dependencies - based on which configurations you decide to use - will automatically be installed upon your first run of ESLint.

Usage

This package includes the following configurations:

Configuration

{
    "root": true,
    "extends": [
        "apteryx/common",
        "apteryx/node",
        "apteryx/typescript",
        "apteryx/prettier"
    ],
    "parserOptions": {
        "project": "./tsconfig.json"
    },
    "ignorePatterns": ["**/dist/*"]
}
{
    "root": true,
    "extends": [
        "apteryx/common",
        "apteryx/browser",
        "apteryx/node",
        "apteryx/typescript",
        "apteryx/next",
        "apteryx/prettier"
    ],
    "parserOptions": {
        "project": "./tsconfig.json"
    },
    "ignorePatterns": ["**/dist/*"],
    "rules": {
        "react/react-in-jsx-scope": 0,
        "react/jsx-filename-extension": [1, { "extensions": [".tsx"] }]
    }
}

Usage with Prettier

Use with prettier-config-apteryx.

{
    "extends": [
        "apteryx/common",
        "apteryx/node",
        "apteryx/typescript",
        "apteryx/prettier"
    ]
}

apteryx/prettier must be last in the list, as this will disable all other rules that conflict with Prettier.

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.6

2 years ago

2.0.7

2 years ago

2.1.5

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

2.1.0

2 years ago

2.0.5

2 years ago

2.0.6

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.4

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago