@futagoza/eslint-config-javascript
v17.2.0
Published
Futago-za Ryuu's ESLint configurations for JavaScript
Maintainers
Readme
This package contains configuration files for ESLint v10+
These are configuration files for ESLint that are used to lint my JavaScript projects.
NOTE: All the main configuration files...
- extend @futagoza/eslint-config-core, so it's already included as a dependency when using this package
- extend their relevant configuration files from @futagoza/eslint-config-globals (e.g
@futagoza/eslint-config-javascript/es2022.jsextends@futagoza/eslint-config-globals/es2022.js)
installation
$ npm i --save-dev @futagoza/eslint-config-javascriptusage
Put the following into your eslint configuration file:
import { defineConfig } from "eslint/config"
import javascript from "@futagoza/eslint-config-javascript"
// Used alongside other configurations:
export default [
// ...
javascript,
// ...
]
// Used as base configuration for other configurations:
export default defineConfig(
{
// ...
extends: [ javascript ],
// ...
},
)configurations
A list of importable ESLint configuration files:
@futagoza/eslint-config-javascript(alias for my current default)@futagoza/eslint-config-javascript/es5.js@futagoza/eslint-config-javascript/es2015.js@futagoza/eslint-config-javascript/es2016.js@futagoza/eslint-config-javascript/es2017.js@futagoza/eslint-config-javascript/es2018.js@futagoza/eslint-config-javascript/es2019.js@futagoza/eslint-config-javascript/es2020.js@futagoza/eslint-config-javascript/es2021.js@futagoza/eslint-config-javascript/es2022.js@futagoza/eslint-config-javascript/es2023.js(default)@futagoza/eslint-config-javascript/es2024.js@futagoza/eslint-config-javascript/es2025.js@futagoza/eslint-config-javascript/es2026.js
Additionally, there are some base configuration files that help target source types (the intention was to use them with the above configuration files, but I ended up finding a much better way to implement them and decided to leave these as they can provide a way to quickly switch (or target) source types; e.g. commonjs on Node):
@futagoza/eslint-config-javascript/common.js(common.js based JavaScript modules)@futagoza/eslint-config-javascript/latest.js(the latest supported JavaScript version by ESLint; e.g. ESNext)@futagoza/eslint-config-javascript/module.js(ES2015+ import/export based JavaScript modules)@futagoza/eslint-config-javascript/script.js(plain JavaScript code)
license
Copyright © 2017+ Futago-za Ryuu Released under the MIT License, http://opensource.org/licenses/MIT
