5.0.0 • Published 3 months ago

@strv/eslint-config-typescript v5.0.0

Weekly downloads
1,012
License
BSD-3-Clause
Repository
github
Last release
3 months ago

@strv/eslint-config-typescript

Configuration for TypeScript projects.

Installation

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

Rulesets

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

Usage

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

/** @type {Array<import("eslint").Linter.FlatConfig>} */
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

License

See the LICENSE file for information.

5.0.0

3 months ago

4.1.0

10 months ago

4.0.0

10 months ago

4.1.2

10 months ago

4.1.1

10 months ago

3.2.0

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0-alpha.9

3 years ago

3.0.0

3 years ago

3.0.0-alpha.8

3 years ago

3.0.0-alpha.7

3 years ago

3.0.0-alpha.6

3 years ago

3.0.0-alpha.5

3 years ago

3.0.0-alpha.4

4 years ago

3.0.0-alpha.3

4 years ago

3.0.0-alpha.1

4 years ago

3.0.0-alpha.0

4 years ago

3.0.0-alpha.2

4 years ago

2.3.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.4

4 years ago

2.1.5

4 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.1-alpha.0

5 years ago