@apeframework/eslint-config

0.0.0-dev.1 • Public • Published

Ape Framework ESLint configuration

ESLint configuration for Ape Framework.

NPM package: @apeframework/eslint-config

GitHub repository: ApeCommerce/ape-eslint

Installation

npm install @apeframework/eslint-config

Usage in a TypeScript project

Install required NPM packages:

npm install --save-dev \
  eslint \
  @typescript-eslint/parser \
  @typescript-eslint/eslint-plugin \
  @stylistic/eslint-plugin \
  @apeframework/eslint-config  

Create .eslintrc.json file:

{
  "root": true,
  "env": {
    "node": true
  },
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "tsconfig.json"
  },
  "plugins": [
    "@typescript-eslint",
    "@stylistic"
  ],
  "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended-type-checked",
    "@apeframework/stylistic"
  ]
}

Usage in a JavaScript project

Install required NPM packages:

npm install --save-dev \
  eslint \
  @stylistic/eslint-plugin \
  @apeframework/eslint-config  

Create .eslintrc.json file:

{
  "root": true,
  "env": {
    "node": true
  },
  "plugins": [
    "@stylistic"
  ],
  "extends": [
    "eslint:recommended",
    "@apeframework/stylistic"
  ]
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @apeframework/eslint-config

      Weekly Downloads

      22

      Version

      0.0.0-dev.1

      License

      MIT

      Unpacked Size

      9.25 kB

      Total Files

      4

      Last publish

      Collaborators

      • mattsyms