@apeframework/eslint

0.2.0 • Public • Published

Ape Framework ESLint configuration

Ape Framework ESLint configuration.

NPM package: @apeframework/eslint.

GitHub repository: MattSyms/apeframework-eslint.

Installation

yarn add @apeframework/eslint --dev

Usage (eslint.config.js)

Node configuration:

import base from '@apeframework/eslint/base'
import typescript from '@apeframework/eslint/typescript'

const config = [
  base(),
  {
    files: ['*.ts', '**/*.ts'],
    ...typescript(),
  },
]

export {
  config as default,
}

Browser configuration:

import base from '@apeframework/eslint/base'
import typescript from '@apeframework/eslint/typescript'
import vue from '@apeframework/eslint/vue'

const config = [
  base('browser'),
  {
    files: ['*.ts', '**/*.ts'],
    ...typescript('browser'),
  },
  {
    files: ['*.vue', '**/*.vue'],
    ...vue,
  },
]

export {
  config as default,
}

Development

Install dependencies:

yarn

Update dependencies:

yarn update

Analyze rules:

yarn analyze

Compile:

yarn compile

Lint:

yarn lint

Release:

Tag stable release:

git tag v<major>.<minor>.<patch>

Tag dev release:

git tag v0.0.0-dev.<number>

Push tags:

git push --tags

Readme

Keywords

Package Sidebar

Install

npm i @apeframework/eslint

Weekly Downloads

286

Version

0.2.0

License

MIT

Unpacked Size

130 kB

Total Files

31

Last publish

Collaborators

  • mattsyms