2.1.0 • Published 6 months ago

eslint-config-lucas-silbernagel v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

ESLint and Prettier config for React + TypeScript

To use in a project add it by using the following steps:

npx install-peerdeps --dev eslint-config-lucas-silbernagel

Use yarn instead of npm if prompted to do so.

Then, create a .eslintrc.js file in the root of your project's directory and add the configuration.

module.exports = {
  extends: ['eslint-config-lucas-silbernagel'],
}

Finally add these two scripts to package.json

{
    "scripts": {
        "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --ignore-path .gitignore .",
        "lint:fix": "eslint --fix --ext \".js,.jsx,.ts,.tsx\" --ignore-path .gitignore ."
    }
}

Depending on which project the package is being installed in, you may encounter dependency conflicts. To resolve, delete node_modules, yarn.lock, and package-lock.json. Also delete "eslint" from package.json if it exists. Then run yarn or npm install. If the project is dockerized, rebuild the Docker container. Depending on the project, further dependency conflict resolution may be necessary.

In VSCode, make sure you are not running the Prettier extension. The ESLint extension should be used instead, as this package bundles Prettier with ESLint, and can cause conflicts with the Prettier extension.

To lint all files at once, use the above scripts. Otherwise, linting issues can be resolved file by file.

To disable linting in any file add the following comment at the top:

/* eslint-disable */
acornacorn-jsxajvansi-regexansi-stylesargparsearia-queryarray-includesarray-unionarray.prototype.flatmapast-types-flowaxe-coreaxobject-querybalanced-matchbrace-expansionbracescall-bindcallsiteschalkcolor-convertcolor-nameconcat-mapcore-js-purecross-spawndamerau-levenshteindebugdeep-isdefine-propertiesdir-globdoctrineemoji-regexes-abstractes-shim-unscopableses-to-primitiveescape-string-regexpeslint-scopeeslint-utilseslint-visitor-keysespreeesqueryesrecurseestraverseesutilsfast-deep-equalfast-difffast-globfast-json-stable-stringifyfast-levenshteinfastqfile-entry-cachefill-rangeflat-cacheflattedfs.realpathfunction-bindfunction.prototype.namefunctional-red-black-treefunctions-have-namesget-intrinsicget-symbol-descriptionglobglob-parentglobalsglobbyhashas-bigintshas-flaghas-property-descriptorshas-symbolshas-tostringtagignoreimport-freshimurmurhashinflightinheritsinternal-slotis-bigintis-boolean-objectis-callableis-core-moduleis-date-objectis-extglobis-globis-negative-zerois-numberis-number-objectis-regexis-shared-array-bufferis-stringis-symbolis-weakrefisexejs-tokensjs-yamljsescjson-schema-traversejson-stable-stringify-without-jsonifyjsx-ast-utilslanguage-subtag-registrylanguage-tagslevnlodash.mergeloose-envifylru-cachemerge2micromatchminimatchmsnatural-compareobject-assignobject-inspectobject-keysobject.assignobject.entriesobject.fromentriesobject.hasownobject.valuesonceoptionatorparent-modulepath-is-absolutepath-keypath-parsepath-typepicomatchprelude-lsprettier-linter-helpersprop-typespunycodequeue-microtaskreact-isregenerator-runtimeregexp.prototype.flagsregexppresolveresolve-fromreusifyrimrafrun-parallelsemvershebang-commandshebang-regexside-channelslashstring.prototype.matchallstring.prototype.trimendstring.prototype.trimstartstrip-ansistrip-json-commentssupports-colorsupports-preserve-symlinks-flagtext-tableto-fast-propertiesto-regex-rangetslibtsutilstype-checktype-festtypescriptunbox-primitiveuri-jsv8-compile-cachewhichwhich-boxed-primitiveword-wrapwrappyyallist
2.0.3

6 months ago

2.0.2

6 months ago

2.0.5

6 months ago

2.0.4

6 months ago

2.0.7

6 months ago

2.0.6

6 months ago

2.0.9

6 months ago

2.0.8

6 months ago

2.1.0

6 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.2.0

12 months ago

1.1.1

2 years ago

1.1.0

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