@fxone/eslint-config
v5.0.0
Published
eslint config
Readme
eslint config
This is a configuration for eslint
Installation
First, install the package:
$ npm install @fxone/eslint-config -D
# or
$ pnpm add @fxone/eslint-config -D
# or
$ yarn add @fxone/eslint-config -DImportant: You must also install ESLint and its rule package as peer dependencies:
$ npm install eslint @eslint/js -D
# or
$ pnpm add eslint @eslint/js -D
# or
$ yarn add eslint @eslint/js -DAlternatively, use npx install-peerdeps to automatically install peer dependencies:
$ npx install-peerdeps @fxone/eslint-config --devUsage
Create a eslint.config.js file with the following content:
import config from '@fxone/eslint-config';
export default [
...config
];Formatting
This config formats through @stylistic/eslint-plugin — eslint --fix is the
formatter. Do not run Prettier alongside it: the two disagree on operator
line breaks, binary operand indentation and quoted properties, and each will
undo the other's output.
