4.13.80 • Published 10 months ago

@taktikorg/facere-cupiditate v4.13.80

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

eslint-define-config

Provide a defineConfig function for .eslintrc.js, and a defineFlatConfig function for eslint.config.js files.

Installation

# add eslint and eslint-define-config to project’s dev dependencies
npm add --save-dev eslint eslint-define-config
# or
yarn add --dev eslint eslint-define-config
# or
pnpm add --save-dev eslint eslint-define-config

Usage

By default only eslint's rules are supported. To activate auto-suggestions for Rules of specific plugins, you need to install the respective types for that plugin.
Plugins can either support their own types, or they could be supported by the community in the @eslint-types repository.

A list of community supported plugins can be found here.

.eslintrc.js

// @ts-check
const { defineConfig } = require('eslint-define-config');

/// <reference types="@eslint-types/typescript-eslint" />

module.exports = defineConfig({
  root: true,
  rules: {
    // rules...
  },
});

Flat Config

eslint.config.js

// @ts-check
const { defineFlatConfig } = require('eslint-define-config');
const js = require('@eslint/js');
const customConfig = require('./custom-config.js');

/// <reference types="@eslint-types/typescript-eslint" />

module.exports = defineFlatConfig([
  js.configs.recommended,
  customConfig,
  {
    plugins: {
      // plugins...
    },
    rules: {
      // rules...
    },
  },
]);

Why?

Improve your eslint configuration experience with:

  • auto-suggestions
  • type checking (Use // @ts-check at the first line in your .eslintrc.js or eslint.config.js)
  • documentation
  • deprecation warnings

Video

Click on the thumbnail to play the video

Want to support your own plugin?

:warning: This feature is very new and requires the support of the respective plugin owners

Add a declare module to your plugin package like this:

declare module 'eslint-define-config' {
  export interface CustomRuleOptions {
    /**
     * Require consistently using either `T[]` or `Array<T>` for arrays.
     *
     * @see [array-type](https://typescript-eslint.io/rules/array-type)
     */
    '@typescript-eslint/array-type': [
      {
        default?: 'array' | 'generic' | 'array-simple';
        readonly?: 'array' | 'generic' | 'array-simple';
      },
    ];

    // ... more Rules
  }
}

There are other interfaces that can be extended.

  • CustomExtends
  • CustomParserOptions
  • CustomParsers
  • CustomPlugins
  • CustomSettings

Credits

entriespositiveamazonclilibphonenumberdeep-copyjshintglobal this valuehookformbabelESnextString.prototype.matchAllequalitymockingworkerhandlersjapanesefiledependencieslanguageemrexecutereactlastweaksetpackagesvariables in cssredactgestures.gitignoreshamperformantutilswalkstylessesconsumeautoscalingaccessibilityzxreduceshellgraphqldotenvWeakMapes2015getoptqspureharmonyArray.prototype.flatMapmatchshimpatchdeep-cloneredux-toolkitcloneStreamserverES2023kinesisxtermtseslintfast-copyECMAScript 6circularhigher-orderwgetserviceyamlstyled-componentsjoiviewextradom-testing-libraryjavascriptfront-endclientajaxbddback-endprivate dataissyntaxerroracornfastifyenumerableeventDispatcherdefinePropertyECMAScript 2017ebsSystem.globalObservableincludessignedcoresuperstructTypeScriptttynativeArrayBuffer#slicewindowsES6expression[[Prototype]]authequalwriteautoprefixerreact-componentfindLastIndexFloat32Arrayfskeyeslint-pluginless cssruntimedependency managerObject.fromEntriesRFC-6455descriptortypemacosTypedArrayes-abstractproxystylingemitoperating-systemfnmatchwaitStyleSheetelmUint8ClampedArrayvpcexit-codeminimalregularsymbolpluginfullwidthglobmergematchesoutputWebSocketsortedfast-deep-copyArray.prototype.filterargspersistentlivecomputed-typesgdprcss lesschaiECMAScript 5es-shimslogxhrexecfileauthenticationpnpm9Uint8Arrayconfigcss-in-jssharedschemasomephoneregexconcates2017jsxparserfast-clonescheme-validationbyteOffsettranspileforEachURLSearchParamshascertificatesObjectchromiumzerojsonjson-schema-validationinstallCSSStyleDeclarationprotobufbundlingflagslengthArray.prototype.flattentyped arrayecmascriptES8es-shim APIECMAScript 2021deleteformatfull-widthspawnflagcall-boundcommand-linees2016toolkitArray.prototype.containsstreamsUint16Array@@toStringTagsetPrototypeOfbusylazyESbindproppromisecloudtrailnegativestatemkdirppopmotionimportefficientcall-binddragassertsintrinsiccollectiontypedtypesafejsonschemaendpointCSScheckbundlertransportcore-jsmomentlockfilelruuploadArrayBuffer.prototype.slicereact-testing-libraryfindURLMicrosoftreadableindicatormonorepocolorgitignoreObject.definePropertypredictablepinoloadingirqtestWebSocketsa11yreal-timequerystringsymlinkstacitcss variablecss nestinggenericspostcssECMAScript 2015make dirreact-hookshelperroutingonceconsolei18niamchromecloudsearchstringifyInt32Arrayzodjwtasserterror-handlingECMAScript 7iteratorurlassertionjQuerymatchAllpushenvironmentunicodefullrandomlinkforkSymbollessslicebinchannelless mixinspyyamlkeysqueryECMAScript 2020__proto__artcloudformationeast-asian-widthJSONdateownelbeffect-tssubprocessrgbgradients css3ReactiveExtensionscoercibleoffsetcollection.es6toobjectObservablesopensslsafeutilitiessignalframerdescriptionsimpledbhasOwnPropertyenderignoreshebangnamesstreampostcss-pluginuninstallfunction.lengthflattenES2020colouridleSymbol.toStringTagmobilecharacterfastcopyagentinternal slotbannerapollowhatwgelasticachehooksPushECMAScript 2018nodeFloat64ArrayBigUint64Array3dgettermetadataECMAScript 2022figletcolumnmulti-packagerdstypedarraycontainslesscsscensorglacierPromisehashvaluetddimmerargumentcolorsSetstyleeslintconfigdirmockgetOwnPropertyDescriptorserializationio-tsasciitrimLeftarrayloggingawesomesaucepipeslotvaluesvariablesmkdirssameValueZeroclassnamecallbindrobustbinarystructuredClonefluxIteratoriteratecomparetestingjson-schema-validatornumberArray.prototype.findLastnope-0Array.prototype.flattrimrulessidelocationcompile lessdiffimportexporteverybabel-coreregular-expressionWeakSetpackage managerfunctionalRxJSschemeselfvisualhttpssigtermlistenerses7fixed-widthobject.envdeepcopytimebcryptperformancebufferprefixflatMapprivatetestervestmoduleexitless.jsgroupsetdataformattingcreateconcatMapReflect.getPrototypeOfFunction.prototype.nametoStringTagUint32ArrayES2019whichanimationdescriptorshandlerObject.values6to5chineseES5poseeventsescapestatussharedarraybufferObject.entriesawspackage.jsonbrowserslistansicssObject.getPrototypeOfexeckoreanhotString.prototype.trimreuseredirectenvironmentsECMAScript 3snsspringwritabledropidentifiersreducerArrayBufferfpspropertyletJSON-SchemaspeedArray.prototype.includescloudwatchtypanionregexptrimRightwarningdayjscommandES2016commandertypescriptES2018asterrorRxconstoptimistglobalThisrapidqueueclassesstartermanagerglobalsbyteloadbalancingES7react-hook-formmapcryptvalidatorhas-ownchilddirectorypoint-freenegative zero_.extendmapreducecjkparsehttpreplaymkdirassignregular expressionieprotoutilInt8ArrayprettyqueueMicrotaskfphasOwnsymbolstrimStartinspectdomform-validationtslibcurlworkflowstyleguidetoolsroute53arktypebyteLengthcolumnsfastcloneObject.iseslintpluginl10neventEmitterpropertiesespreeyupgetajvpicomatchtc39preprocessorwaapiStreamsarraybufferfile systemdatastructureisConcatSpreadablerecursivethreepruneargvformECMAScript 2023BigInt64Arrayreact animationcloudfrontsetImmediatenodejsstylesheet256encryptionpolyfillvalidrequirenamestatelessjsdiffnpmignorebinariesdataviewrequestjestoptimizerspinneressetterArray.prototype.findLastIndexasynctraverseinterruptsloggerstablearraysestreegetPrototypeOfvalidationwindowsorttextdynamodbremovetakemodulesmakelocalES2017helpersshrinkwrapmovequoteboundprocesses2018fetchES2021sqscopycurriedYAMLlintnpminwafECMAScript 2016deepclonecallrouteRegExp#flagsmrucodessiginttrimEndbrowserspechardlinksbufferscallboundless compilervalidateprotocol-bufferssymlinkfunctionelectronswfObject.keyssuperagentstringifierinternalreadablestreambootstrap lessjson-schema0toSortedapigroupByHyBitranspilerworkspace:*resolves3findLastconfigurableECMAScript 2019RegExp.prototype.flagsMapinferencedeepreadreact posefunctionsjsdombootstrap cssutilitysyntaxfantasy-landserializeramdaes5class-validatorspinnersinputpreserve-symlinkstypeofextendstringprototypefiltertypedarrayslinuxdefineterminaliterationomittypesgradients cssgetintrinsicfromUnderscoreexpresspassworddataViewinvariantenvairbnbvarcompilerTypeBoxES3$.extendArrayInt16Arrayjsdeterministicec2browserlistsequenceReactiveXserializer
4.13.80

10 months ago

4.13.79

10 months ago

4.13.78

10 months ago

4.12.78

10 months ago

4.12.77

10 months ago

4.12.76

10 months ago

4.12.75

11 months ago

4.12.74

11 months ago

4.12.73

11 months ago

4.11.73

11 months ago

4.11.72

11 months ago

4.11.71

11 months ago

4.11.70

11 months ago

4.11.69

11 months ago

4.10.69

11 months ago

4.9.69

11 months ago

3.9.69

11 months ago

3.9.68

11 months ago

3.9.67

11 months ago

3.9.66

11 months ago

3.9.65

11 months ago

3.9.64

11 months ago

3.8.64

11 months ago

3.8.63

11 months ago

3.7.63

11 months ago

3.6.63

11 months ago

3.6.62

11 months ago

3.6.61

11 months ago

3.6.60

11 months ago

3.6.59

11 months ago

3.6.58

11 months ago

3.5.58

11 months ago

3.5.57

11 months ago

3.5.56

11 months ago

3.5.55

11 months ago

3.5.54

11 months ago

3.5.53

12 months ago

3.5.52

12 months ago

3.5.51

12 months ago

3.5.50

12 months ago

3.5.49

12 months ago

3.5.48

12 months ago

3.4.48

12 months ago

3.4.47

12 months ago

3.4.46

12 months ago

3.4.45

12 months ago

3.4.44

12 months ago

3.4.43

12 months ago

3.4.42

12 months ago

3.4.41

12 months ago

3.3.41

12 months ago

3.3.40

12 months ago

3.3.39

12 months ago

2.3.39

12 months ago

2.3.38

12 months ago

2.3.37

12 months ago

2.3.36

1 year ago

2.3.35

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.2.24

1 year ago

2.2.23

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago