@newceptiondev/eslint-config v2.1.0
ESLint Config
ESLint Config used in projects developed by NewCeptionDev
Installation
Install the package via npm:
npm install --save-dev --save-exact @newceptiondev/eslint-config
I would recommend using the --save-exact addition when installing the package to make sure, that the config won't change without your intention to do so.
After installing the package, add a file called eslint.config.mjs and extend it with this config.
import config from '@newceptiondev/eslint-config';
export default [
...config, ];
You can also reference this package with a short form:
{ "extends": "@newceptiondev"}
See the ESLint Guide for more information.
Usage
After including the config you can run eslint by using:
eslint .
This will output all warnings and errors for your code.
ESLint can automatically fix some errors.
To do so use the following command:
eslint --fix .
To include ESLint into your IDE setup, have a look at ESLint Integrations.