eslint-config-nfour

3.5.0 • Public • Published

eslint-config-nfour

Some opinionated style & type rules built on top of eslint-config-standard-typescript-prettier

See ./.eslintrc.js

Why

Pros:

  • [x] You do not need to install ANY eslint dependencies explicitly in your project
  • [x] Eslint dependencies work together out of the box
  • [x] Eslint config with simplified defaults

Cons:

  • [x] If this package becomes outdated you may need to manually manage dependencies again

Install

Install it.

pnpm add -D eslint-config-nfour

Wire it up.

echo "module.exports = require('eslint-config-nfour')" > .eslintrc.js

# OR with react rules...

echo "module.exports = require('eslint-config-nfour/.eslintrc.react')" > .eslintrc.js

Configure .prettierrc.js with something like:

module.exports = {
  ...require('eslint-config-nfour/.prettierrc'),
  semi: false,
}

Done.

How it works

Thanks to require('@rushstack/eslint-patch/modern-module-resolution');, plugins can be included relative to the configs, not the consuming project, so you don't need to install any eslint plugins/config peer dependencies.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-nfour

Weekly Downloads

36

Version

3.5.0

License

MIT

Unpacked Size

7.4 kB

Total Files

9

Last publish

Collaborators

  • nfour