@futagoza/eslint-config
v17.3.0
Published
Futago-za Ryuu's default ESLint configuration
Downloads
763
Maintainers
Readme
This package contains configuration files for ESLint v10+
These is the default configuration file I use for ESLint, used for my JavaScript and/or TypeScript projects. It extends my other ESLint configurations to create a single unified configuration that can easily be used when working with:
- Node v20+ (and by extension ECMAScript 2023+)
- TypeScript v6+
installation
$ npm i --save-dev @futagoza/eslint-configusage
Put the following into your eslint configuration file:
import futagoza from "@futagoza/eslint-config"
// this if you don't plan to add more configurations
export default futagoza
// this if you need more configurations
export default [
futagoza,
// ...
]Unlike the rest of my configuration files, this one does not export a raw javascript object that represents the config, mainly due to the fact that this configuration file is meant to be an all in one ready to use config; this is why I don't recommend you use it in the extends array property for defineConfig from eslint/config; It's best you just create your own configuration from my other configuration files, some of which should be available simply by only putting this (@futagoza/eslint-config) in your projects/packages dependencies.
configurations
The main configuration file is a combination of all of the following configuration files available as individual packages:
@futagoza/eslint-config-core@futagoza/eslint-config-globals@futagoza/eslint-config-ignore@futagoza/eslint-config-javascript@futagoza/eslint-config-node@futagoza/eslint-config-typescript
global ignore
This configuration includes @futagoza/eslint-config-ignore, which exports a set of file-path globs (mostly recursively), used by this configuration to add a global ignore property.
- See ignored patterns: @futagoza/eslint-config-ignore/index.js
- See documentation: eslint.org/docs/latest/use/configure/ignore
license
Copyright © 2017+ Futago-za Ryuu Released under the MIT License, http://opensource.org/licenses/MIT
