1.9.0 • Published 1 year ago

@aviene/eslint-config-typescript v1.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@aviene/eslint-config-typescript

Configuration for TypeScript projects.

Installation

npm install -D @aviene/eslint-config-typescript

Rulesets

  • '@aviene/eslint-config-typescript': A generic ruleset that focuses on code correctness
  • '@aviene/eslint-config-typescript/optional': Addiitonal ruleset that might provide useful tips and hints how to improve your code
  • '@aviene/eslint-config-typescript/style': Ruleset that focuses solely on code style (indentation, spacing, naming, syntax preference etc.)
  • '@aviene/eslint-config-typescript/react': Ruleset that provides additional customisations for the @aviene/eslint-config-react ruleset when working with TypeScript`

Usage

// eslint.config.mjs
import typescript from '@aviene/eslint-config-typescript'
import optional from '@aviene/eslint-config-typescript/optional'
import style from '@aviene/eslint-config-typescript/style'
// Just to help us re-use the same globs multiple times
const globs = {
  js: '**/*.js',
}

/** @type {Array<import("eslint").Linter.Config>} */
const config = [
  { files: [globs.js], ...typescript },
  { files: [globs.js], ...optional },
  { files: [globs.js], ...style },
  // Any custom settings to be applied
  { files: [globs.js],
    languageOptions: { ecmaVersion: 2023 }
  },
]

export default config
1.8.2

1 year ago

1.9.0

1 year ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago