1.0.4 • Published 2 years ago

@manoelmotoso/eslint-config v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@manoelmotoso/eslint-config

ESlint config for Nodejs projects in Typescript with:

  • Airbnb code style
  • Prettier formatter

Setup

install

yarn add -D @manoelmotoso/eslint-config

install required dependencies

yarn add -D \
"@types/node@^18.6.2" \
"@typescript-eslint/eslint-plugin@^5.31.0" \
"@typescript-eslint/parser@^5.31.0" \
"eslint@^7.32.0" \
"eslint-config-airbnb-base@^15.0.0" \
"eslint-config-airbnb-typescript@^17.0.0" \
"eslint-config-prettier@^8.5.0" \
"eslint-import-resolver-typescript@^3.3.0" \
"eslint-plugin-import@^2.26.0" \
"eslint-plugin-prettier@^4.2.1" \
"prettier@^2.7.1"

Install VScode extensions

Prettier ESlint

Config Prettier

create a file .prettierrc

{
  "tabWidth": 2,
  "semi": true,
  "trailingComma": "all"
}

Change Vscode settings .vscode/settings.json

{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "prettier.enable": true,
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "eslint.validate": ["javascript", "typescript"]
}
acorn-jsxacornansi-regexajvansi-stylesarray-includesarray.prototype.flatargparsearray-unionbalanced-matchbrace-expansioncall-bindcolor-convertcolor-namebracescallsiteschalkconcat-mapcross-spawnconfusing-browser-globalsdefine-lazy-propdebugdir-globdeep-isdoctrinedefine-propertiesenhanced-resolvees-to-primitivees-abstractes-shim-unscopablesescape-string-regexpeslint-scopeeslint-import-resolver-nodeeslint-module-utilseslint-utilseslint-visitor-keysesqueryespreeestraverseesrecursefast-deep-equalfast-diffesutilsfastqfast-json-stable-stringifyfast-levenshteinfile-entry-cachefill-rangefind-upflat-cachefast-globflattedfs.realpathfunction-bindfunction.prototype.namefunctional-red-black-treeget-tsconfigfunctions-have-namesget-symbol-descriptionget-intrinsicglobalyzerglob-parentglobalsglobbygraceful-fshasglobrexhas-symbolshas-bigintshas-flagglobhas-tostringtagignoreimurmurhashimport-freshis-bigintinheritsinternal-slotinflightis-boolean-objectis-dockeris-core-moduleis-callablehas-property-descriptorsis-date-objectis-extglobis-globis-negative-zerois-numberis-number-objectis-regexis-shared-array-bufferis-symbolis-stringis-wslisexeis-weakrefjson-schema-traverselocate-pathjson-stable-stringify-without-jsonifyjson5levnlodash.mergelru-cachemerge2micromatchjs-yamlobject-inspectmsminimistobject-keysnatural-compareminimatchobject.assignopenobject.valuesobject.entriesoncep-limitoptionatorp-locateparent-modulepath-existspath-typep-trypath-is-absolutepath-parsepath-keypicocolorsprettier-linter-helperspunycodepicomatchprelude-lsregexp.prototype.flagsresolve-fromqueue-microtaskregexppresolvereusifyrun-parallelrimrafsemvershebang-commandshebang-regexstring.prototype.trimstartstring.prototype.trimendslashstrip-ansistrip-bomsupports-preserve-symlinks-flagside-channelsupports-colortapablesynckitstrip-json-commentstext-tabletiny-globtsconfig-pathsto-regex-rangetsutilstype-checktslibtype-festunbox-primitiveuri-jstypescriptv8-compile-cachewhich-boxed-primitivewhichword-wrapyallistwrappy
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago