1.0.0 • Published 5 months ago

@ajorquera/components v1.0.0

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

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default tseslint.config({
  extends: [
    // Remove ...tseslint.configs.recommended and replace with this
    ...tseslint.configs.recommendedTypeChecked,
    // Alternatively, use this for stricter rules
    ...tseslint.configs.strictTypeChecked,
    // Optionally, add this for stylistic rules
    ...tseslint.configs.stylisticTypeChecked,
  ],
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default tseslint.config({
  plugins: {
    // Add the react-x and react-dom plugins
    'react-x': reactX,
    'react-dom': reactDom,
  },
  rules: {
    // other rules...
    // Enable its recommended typescript rules
    ...reactX.configs['recommended-typescript'].rules,
    ...reactDom.configs.recommended.rules,
  },
})
acceptsacornacorn-jsxajvansi-alignansi-escapesansi-regexansi-stylesargparseastringaxe-corebailbalanced-matchbcp-47-matchboolbaseboxenbrace-expansionbracesbrowserslistbundle-namecache-content-typecall-bind-apply-helperscall-boundcallsitescamelcasecaniuse-liteccountchalkcharacter-entitiescharacter-entities-html4character-entities-legacycharacter-reference-invalidchokidarclassnamescli-boxescli-widthcliuiclsxcocollapse-white-spacecolor-convertcolor-namecomma-separated-tokenscommandercomponentsconcat-mapcontent-dispositioncontent-typeconvert-source-mapcookiecookiescross-spawncss-selector-parsercsstypedebugdecode-named-character-referencedecode-uri-componentdeep-equaldeep-isdefault-browserdefault-browser-iddefine-lazy-propdelegatesdepddequaldestroydevlopdirectiondunder-protoee-firstelectron-to-chromiumemoji-regexencodeurlentitieses-define-propertyes-errorses-object-atomsesast-util-from-estreeesast-util-from-jsesbuildescaladeescape-htmlescape-string-regexpeslint-scopeeslint-visitor-keysespreeesqueryesrecurseestraverseestree-util-attach-commentsestree-util-build-jsxestree-util-is-identifier-nameestree-util-scopeestree-util-to-jsestree-util-visitestree-walkeresutilsextendfast-deep-equalfast-globfast-json-stable-stringifyfast-levenshteinfastqfdirfile-entry-cachefill-rangefilter-objfind-upflat-cacheflattedfreshfunction-bindgensyncget-caller-fileget-east-asian-widthget-intrinsicget-portget-protoglob-parentglobbyglobrexgopdgraphemergraphqlhas-flaghas-symbolshas-tostringtaghasownhast-util-classnameshast-util-from-parse5hast-util-has-propertyhast-util-parse-selectorhast-util-rawhast-util-selecthast-util-to-estreehast-util-to-jsx-runtimehast-util-to-parse5hast-util-to-stringhast-util-whitespacehastscriptheaders-polyfillhistoryhtml-void-elementshttp-asserthttp-errorsignoreimport-freshimurmurhashinheritsinline-style-parseris-alphabeticalis-alphanumericalis-decimalis-dockeris-extglobis-fullwidth-code-pointis-generator-functionis-globis-hexadecimalis-inside-containeris-node-processis-numberis-plain-objis-regexis-wslisexejs-tokensjs-yamljsescjson-bufferjson-schema-traversejson-stable-stringify-without-jsonifyjson5keygripkeyvkoakoa-composekoa-connectkoa-convertlevnlocate-pathlodash.mergelongest-streakloose-envifylru-cachemarkdown-extensionsmarkdown-tablemath-intrinsicsmdast-util-find-and-replacemdast-util-from-markdownmdast-util-gfmmdast-util-gfm-autolink-literalmdast-util-gfm-footnotemdast-util-gfm-strikethroughmdast-util-gfm-tablemdast-util-gfm-task-list-itemmdast-util-mdxmdast-util-mdx-expressionmdast-util-mdx-jsxmdast-util-mdxjs-esmmdast-util-phrasingmdast-util-to-hastmdast-util-to-markdownmdast-util-to-stringmedia-typermerge2micromarkmicromark-core-commonmarkmicromark-extension-gfmmicromark-extension-gfm-autolink-literalmicromark-extension-gfm-footnotemicromark-extension-gfm-strikethroughmicromark-extension-gfm-tablemicromark-extension-gfm-tagfiltermicromark-extension-gfm-task-list-itemmicromark-extension-mdx-expressionmicromark-extension-mdx-jsxmicromark-extension-mdx-mdmicromark-extension-mdxjsmicromark-extension-mdxjs-esmmicromark-factory-destinationmicromark-factory-labelmicromark-factory-mdx-expressionmicromark-factory-spacemicromark-factory-titlemicromark-factory-whitespacemicromark-util-charactermicromark-util-chunkedmicromark-util-classify-charactermicromark-util-combine-extensionsmicromark-util-decode-numeric-character-referencemicromark-util-decode-stringmicromark-util-encodemicromark-util-events-to-acornmicromark-util-html-tag-namemicromark-util-normalize-identifiermicromark-util-resolve-allmicromark-util-sanitize-urimicromark-util-subtokenizemicromark-util-symbolmicromark-util-typesmicromatchmime-dbmime-typesminimatchmsmswmute-streamnanoidnatural-comparenegotiatornode-releasesnth-checkobject-assignon-finishedonlyopenoptionatoroutvariantp-limitp-locateparent-moduleparse-entitiesparse5parseurlpath-existspath-keypath-to-regexppath-typepicocolorspicomatchpostcssprelude-lsprism-react-rendererprop-typesproperty-informationpslpunycodequery-stringquerystringifyqueue-microtaskreact-hotkeys-hookreact-inspectorreact-isreact-refreshreaddirprecma-build-jsxrecma-jsxrecma-parserecma-stringifyregenerator-runtimerehype-class-namesrehype-rawrehype-recmaremark-gfmremark-mdxremark-parseremark-rehyperemark-stringifyrequire-directoryrequires-portresolve-fromreusifyrolluprun-applescriptrun-parallelsafe-buffersafe-regex-testschedulersemversetprototypeofshebang-commandshebang-regexsignal-exitslashsource-mapsource-map-jsspace-separated-tokenssplit-on-firststatusesstrict-event-emitterstring-widthstringify-entitiesstrip-ansistrip-json-commentsstyle-to-jsstyle-to-objectsupports-colortinyglobbyto-regex-rangetoidentifiertough-cookietrim-linestroughts-api-utilstsconfcktsscmptype-checktype-festtype-isundici-typesunicorn-magicunifiedunist-util-isunist-util-positionunist-util-position-from-estreeunist-util-stringify-positionunist-util-visitunist-util-visit-parentsuniversalifyupdate-browserslist-dburi-jsurl-parsevaryvfilevfile-locationvfile-messagevite-tsconfig-pathsweb-namespaceswhichwidest-lineword-wrapwrap-ansiy18nyallistyargsyargs-parserylruyocto-queueyoctocolors-cjszwitch
1.0.0

5 months ago