@veracity/eslint-config

1.0.0 • Public • Published

@veracity/eslint-config

Veracity's ESLint presets.

[!IMPORTANT]
This package has a dependency to prettier because of the legacy preset. It has not been tested with Prettier 3 yet.

Usage

Add eslint and @veracity/eslint-config as dependencies to your project and create a .eslintrc.cjs file at the root (don't forget to replace {preset}!):

/* eslint-env node */

// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('@veracity/eslint-config/patch')

module.exports = {
  extends: ['@veracity/eslint-config/{preset}']
}

Presets

/recommended [BETA]

Recommended preset, itself built on relevant recommended presets:

  • eslint:recommended
  • plugin:@typescript-eslint/recommended
  • plugin:react/recommended
  • plugin:react/jsx-runtime
  • plugin:react-hooks/recommended

Version 1.0.0 is not finalized yet, feedback is welcomed! Note that eslint-plugin-react-refresh will probably be added too.

/legacy

This was the original (and still is) the ESLint configuration for VUI (packages/vui). It has a lot of enabled rules related to stylistic "issues" like imports ordering and thus require to be used with the eslint-plugin-prettier The trend is to STOP using linters for stylistic "issues" thus this preset is deprecated. It will be kept for its internal usage in VUI though, at least for now.

Readme

Keywords

none

Package Sidebar

Install

npm i @veracity/eslint-config

Weekly Downloads

102

Version

1.0.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

5.71 kB

Total Files

7

Last publish

Collaborators

  • oyvind.mokal.luras
  • sakshi_minocha
  • waqash13
  • aditya.pandya
  • markdnv
  • marlon.polomelo.dnv
  • leszek.lewandowski.dnv
  • vinodbhoye
  • anushka.subedi.dnv
  • patryk.szczypka
  • abdullah.dnv
  • alicjajelinska
  • jakubdzien
  • sarchr
  • sacjam
  • eriktorv
  • mdog_dnv
  • ronaldwu
  • francispaulin_dnv
  • roshanmha
  • aritor
  • dafi-dnv
  • dnv_mathis
  • leifwalkergrant
  • hfjukstad
  • lailakristine
  • pawelllr
  • janpochmara
  • max_g
  • melo1523
  • andrzej-zaniewski
  • mwojcik-dnv
  • tomasz.boczarski.dnv
  • arilar
  • rongling
  • madanya
  • denpokdnv
  • tongxg
  • dnvhaakon
  • adrianlippa
  • marszwdnv
  • hanslb
  • johnlauvd
  • hersete
  • p.jedryszczak.dnv
  • steven.mark.alford
  • emilmuellerdnvcom
  • lieliu
  • oddtk
  • sergii.sokurenko
  • bartlomiej.gross
  • oana.botezat
  • zoeyxue
  • brandnv
  • sheggem-dnv
  • derek_wm
  • andreassovik
  • thobas
  • frankveracity
  • gunskednv