specify files for all config #19
Annotations
7 errors
Test ESLint Config:
packages/eslint-config/test/snapshot.test.ts#L25
Error: Snapshot `Test ESLint config with snapshot > js preset > matches snapshot 1` mismatched
- Expected
+ Received
@@ -1,314 +1,84 @@
{
"language": "@/js",
"languageOptions": {
"ecmaVersion": "latest",
- "parser": "typescript-eslint/[email protected]",
+ "parser": "[email protected]",
- "parserOptions": {
- "projectService": {
- "allowDefaultProject": {
- "0": "*.js",
- "1": "*.mjs",
- "2": "*.cjs",
- },
- "defaultProject": "/home/runner/work/js-config/js-config/tsconfig.json",
- },
- "tsconfigRootDir": "/home/runner/work/js-config/js-config",
- },
+ "parserOptions": {},
"sourceType": "module",
},
"linterOptions": {
"reportUnusedDisableDirectives": 1,
},
"plugins": [
"@",
"perfectionist:perfectionist",
- "@typescript-eslint:@typescript-eslint/[email protected]",
- "@stylistic/ts",
],
"processor": undefined,
"rules": {
"@babel/object-curly-spacing": [
0,
],
"@babel/semi": [
0,
],
- "@stylistic/ts/no-extra-semi": [
- 2,
- ],
- "@typescript-eslint/adjacent-overload-signatures": [
- 2,
- ],
- "@typescript-eslint/array-type": [
- 2,
- {
- "default": "array-simple",
- },
- ],
- "@typescript-eslint/await-thenable": [
- 2,
- ],
- "@typescript-eslint/ban-ts-comment": [
- 2,
- ],
- "@typescript-eslint/ban-tslint-comment": [
- 0,
- ],
"@typescript-eslint/block-spacing": [
0,
],
"@typescript-eslint/brace-style": [
0,
],
- "@typescript-eslint/class-literal-property-style": [
- 0,
- ],
"@typescript-eslint/comma-dangle": [
0,
],
"@typescript-eslint/comma-spacing": [
0,
],
- "@typescript-eslint/consistent-generic-constructors": [
- 0,
- ],
- "@typescript-eslint/consistent-indexed-object-style": [
- 0,
- ],
- "@typescript-eslint/consistent-type-assertions": [
- 0,
- ],
- "@typescript-eslint/consistent-type-definitions": [
- 0,
- ],
- "@typescript-eslint/consistent-type-imports": [
- 2,
- ],
- "@typescript-eslint/dot-notation": [
- 2,
- ],
- "@typescript-eslint/func-call-spacing": [
- 0,
- ],
- "@typescript-eslint/indent": [
- 0,
- ],
- "@typescript-eslint/key-spacing": [
- 0,
- ],
- "@typescript-eslint/keyword-spacing": [
- 0,
- ],
- "@typescript-eslint/lines-around-comment": [
- 0,
- ],
- "@typescript-eslint/member-delimiter-style": [
- 0,
- ],
- "@typescript-eslint/no-array-constructor": [
- 2,
- ],
- "@typescript-eslint/no-array-delete": [
- 2,
- ],
- "@typescript-eslint/no-base-to-string": [
- 2,
- ],
- "@typescript-eslint/no-confusing-non-null-assertion": [
- 0,
- ],
- "@typescript-eslint/no-duplicate-enum-values": [
- 0,
- ],
- "@typescript-eslint/no-duplicate-type-constituents": [
- 2,
- ],
- "@typescript-eslint/no-empty-function": [
- 2,
- ],
- "@typescript-eslint/no-empty-object-type": [
- 2,
- ],
- "@typescript-eslint/no-explicit-any": [
- 2,
- ],
- "@typescript-eslint/no-extra-non-null-assertion": [
- 2,
- ],
- "@typescript-eslint/no-extra-parens": [
- 0,
- ],
- "@typescript-eslint/no-extra-semi": [
- 0,
- ],
- "@typescript-eslint/no-floating-promises": [
- 2,
- ],
- "@typescript-eslint/no-for-in-array": [
- 2,
- ],
- "@typescript-eslint/no-implied-eval": [
- 2,
- ],
- "@typescript-eslint/no-import-type-side-effects": [
- 2,
- ],
- "@typescript-eslint/no-inferrable-types": [
- 2,
- ],
- "@typescript-eslint/no-misused-new": [
- 2,
- ],
- "@typescript-eslint/no-misused-promises": [
- 2,
- {
- "ch
|
Test ESLint Config:
packages/eslint-config/test/snapshot.test.ts#L40
Error: Snapshot `Test ESLint config with snapshot > ts preset > matches snapshot 1` mismatched
- Expected
+ Received
@@ -396,13 +396,10 @@
0,
],
"flowtype/union-intersection-spacing": [
0,
],
- "for-direction": [
- 2,
- ],
"func-call-spacing": [
0,
],
"function-call-argument-newline": [
0,
@@ -462,121 +459,49 @@
0,
],
"no-arrow-condition": [
0,
],
- "no-async-promise-executor": [
- 2,
- ],
- "no-case-declarations": [
- 2,
- ],
- "no-class-assign": [
- 2,
- ],
- "no-comma-dangle": [
- 0,
- ],
- "no-compare-neg-zero": [
- 2,
- ],
- "no-cond-assign": [
- 2,
- ],
- "no-confusing-arrow": [
- 0,
- ],
- "no-const-assign": [
- 0,
- ],
- "no-constant-binary-expression": [
- 2,
- ],
- "no-constant-condition": [
- 2,
- ],
- "no-control-regex": [
- 2,
- ],
- "no-debugger": [
- 2,
- ],
- "no-delete-var": [
- 2,
+ "no-comma-dangle": [
+ 0,
+ ],
+ "no-confusing-arrow": [
+ 0,
+ ],
+ "no-const-assign": [
+ 0,
],
"no-dupe-args": [
0,
],
"no-dupe-class-members": [
0,
],
- "no-dupe-else-if": [
- 2,
- ],
"no-dupe-keys": [
0,
],
- "no-duplicate-case": [
- 2,
- ],
- "no-empty": [
- 2,
- ],
- "no-empty-character-class": [
- 2,
- ],
- "no-empty-function": [
- 0,
- ],
- "no-empty-pattern": [
- 2,
- ],
- "no-empty-static-block": [
- 2,
- ],
- "no-ex-assign": [
- 2,
- ],
- "no-extra-boolean-cast": [
- 2,
+ "no-empty-function": [
+ 0,
],
"no-extra-parens": [
0,
],
"no-extra-semi": [
0,
],
- "no-fallthrough": [
- 2,
- ],
"no-floating-decimal": [
0,
],
"no-func-assign": [
0,
],
- "no-global-assign": [
- 2,
- ],
"no-implied-eval": [
0,
],
"no-import-assign": [
0,
],
- "no-invalid-regexp": [
- 2,
- ],
- "no-irregular-whitespace": [
- 2,
- ],
- "no-loss-of-precision": [
- 2,
- ],
- "no-misleading-character-class": [
- 2,
- ],
"no-mixed-operators": [
0,
],
"no-mixed-spaces-and-tabs": [
0,
@@ -591,49 +516,28 @@
0,
],
"no-new-symbol": [
0,
],
- "no-nonoctal-decimal-escape": [
- 2,
- ],
- "no-obj-calls": [
- 0,
- ],
- "no-octal": [
- 2,
- ],
- "no-prototype-builtins": [
- 2,
- ],
- "no-redeclare": [
- 0,
- ],
- "no-regex-spaces": [
- 2,
- ],
- "no-reserved-keys": [
- 0,
- ],
- "no-self-assign": [
- 2,
- ],
- "no-setter-return": [
- 0,
- ],
- "no-shadow-restricted-names": [
- 2,
+ "no-obj-calls": [
+ 0,
+ ],
+ "no-redeclare": [
+ 0,
+ ],
+ "no-reserved-keys": [
+ 0,
+ ],
+ "no-setter-return": [
+ 0,
],
"no-space-before-semi": [
0,
],
"no-spaced-func": [
0,
],
- "no-sparse-arrays": [
- 2,
- ],
"no-tabs": [
0,
],
"no-this-before-super": [
0,
@@ -651,49 +555,25 @@
0,
],
"no-unreachable": [
0,
],
- "no-unsafe-finally": [
- 2,
- ],
"no-unsafe-negation": [
0,
],
- "no-unsafe-optional-chaining": [
- 2,
- ],
- "no-unused-expressions": [
- 0,
- ],
- "no-unused-labels": [
- 2,
- ],
- "no-unused-private-class-members": [
- 2,
- ],
- "no-unused-vars": [
- 0,
- ],
- "no-useless-backreference": [
- 2,
- ],
- "no-useless-catch": [
- 2,
- ]
|
Test ESLint Config:
packages/eslint-config/test/snapshot.test.ts#L55
Error: Snapshot `Test ESLint config with snapshot > react preset > matches snapshot 1` mismatched
- Expected
+ Received
@@ -1154,10 +1154,11 @@
"perfectionist:perfectionist",
"@typescript-eslint:@typescript-eslint/[email protected]",
"@stylistic/ts",
"react",
"react-hooks",
+ "jsx-a11y:[email protected]",
],
"processor": undefined,
"rules": {
"@babel/object-curly-spacing": [
0,
@@ -1528,13 +1529,10 @@
0,
],
"flowtype/union-intersection-spacing": [
0,
],
- "for-direction": [
- 2,
- ],
"func-call-spacing": [
0,
],
"function-call-argument-newline": [
0,
@@ -1556,11 +1554,251 @@
],
"indent": [
0,
],
"indent-legacy": [
+ 0,
+ ],
+ "jsx-a11y/alt-text": [
+ 2,
+ ],
+ "jsx-a11y/anchor-ambiguous-text": [
+ 0,
+ ],
+ "jsx-a11y/anchor-has-content": [
+ 2,
+ ],
+ "jsx-a11y/anchor-is-valid": [
+ 2,
+ ],
+ "jsx-a11y/aria-activedescendant-has-tabindex": [
+ 2,
+ ],
+ "jsx-a11y/aria-props": [
+ 2,
+ ],
+ "jsx-a11y/aria-proptypes": [
+ 2,
+ ],
+ "jsx-a11y/aria-role": [
+ 2,
+ ],
+ "jsx-a11y/aria-unsupported-elements": [
+ 2,
+ ],
+ "jsx-a11y/autocomplete-valid": [
+ 2,
+ ],
+ "jsx-a11y/click-events-have-key-events": [
+ 2,
+ ],
+ "jsx-a11y/control-has-associated-label": [
0,
+ {
+ "ignoreElements": [
+ "audio",
+ "canvas",
+ "embed",
+ "input",
+ "textarea",
+ "tr",
+ "video",
+ ],
+ "ignoreRoles": [
+ "grid",
+ "listbox",
+ "menu",
+ "menubar",
+ "radiogroup",
+ "row",
+ "tablist",
+ "toolbar",
+ "tree",
+ "treegrid",
+ ],
+ "includeRoles": [
+ "alert",
+ "dialog",
+ ],
+ },
+ ],
+ "jsx-a11y/heading-has-content": [
+ 2,
+ ],
+ "jsx-a11y/html-has-lang": [
+ 2,
+ ],
+ "jsx-a11y/iframe-has-title": [
+ 2,
+ ],
+ "jsx-a11y/img-redundant-alt": [
+ 2,
+ ],
+ "jsx-a11y/interactive-supports-focus": [
+ 2,
+ {
+ "tabbable": [
+ "button",
+ "checkbox",
+ "link",
+ "searchbox",
+ "spinbutton",
+ "switch",
+ "textbox",
+ ],
+ },
+ ],
+ "jsx-a11y/label-has-associated-control": [
+ 2,
+ ],
+ "jsx-a11y/label-has-for": [
+ 0,
+ ],
+ "jsx-a11y/media-has-caption": [
+ 2,
+ ],
+ "jsx-a11y/mouse-events-have-key-events": [
+ 2,
+ ],
+ "jsx-a11y/no-access-key": [
+ 2,
+ ],
+ "jsx-a11y/no-autofocus": [
+ 2,
+ ],
+ "jsx-a11y/no-distracting-elements": [
+ 2,
+ ],
+ "jsx-a11y/no-interactive-element-to-noninteractive-role": [
+ 2,
+ {
+ "canvas": [
+ "img",
+ ],
+ "tr": [
+ "none",
+ "presentation",
+ ],
+ },
+ ],
+ "jsx-a11y/no-noninteractive-element-interactions": [
+ 2,
+ {
+ "alert": [
+ "onKeyUp",
+ "onKeyDown",
+ "onKeyPress",
+ ],
+ "body": [
+ "onError",
+ "onLoad",
+ ],
+ "dialog": [
+ "onKeyUp",
+ "onKeyDown",
+ "onKeyPress",
+ ],
+ "handlers": [
+ "onClick",
+ "onError",
+ "onLoad",
+ "onMouseDown",
+ "onMouseUp",
+ "onKeyPress",
+ "onKeyDown",
+ "onKeyUp",
+ ],
+ "iframe": [
+ "onError",
+ "onLoad",
+ ],
+ "img": [
+ "onError",
+ "onLoad",
+ ],
+ },
+ ],
+ "jsx-a11y/no-noninte
|
Test ESLint Config:
packages/eslint-config/test/snapshot.test.ts#L70
Error: Snapshot `Test ESLint config with snapshot > astro preset > matches snapshot 1` mismatched
- Expected
+ Received
@@ -1,1480 +1,106 @@
{
"language": "@/js",
"languageOptions": {
"ecmaVersion": "latest",
"globals": {
- "AI": false,
- "AITextSession": false,
"AbortController": false,
"AbortSignal": false,
- "AbsoluteOrientationSensor": false,
- "AbstractRange": false,
- "Accelerometer": false,
- "AnalyserNode": false,
- "Animation": false,
- "AnimationEffect": false,
- "AnimationEvent": false,
- "AnimationPlaybackEvent": false,
- "AnimationTimeline": false,
"Astro": false,
- "Attr": false,
- "Audio": false,
- "AudioBuffer": false,
- "AudioBufferSourceNode": false,
- "AudioContext": false,
- "AudioData": false,
- "AudioDecoder": false,
- "AudioDestinationNode": false,
- "AudioEncoder": false,
- "AudioListener": false,
- "AudioNode": false,
- "AudioParam": false,
- "AudioParamMap": false,
- "AudioProcessingEvent": false,
- "AudioScheduledSourceNode": false,
- "AudioSinkInfo": false,
- "AudioWorklet": false,
- "AudioWorkletGlobalScope": false,
- "AudioWorkletNode": false,
- "AudioWorkletProcessor": false,
- "AuthenticatorAssertionResponse": false,
- "AuthenticatorAttestationResponse": false,
- "AuthenticatorResponse": false,
- "BackgroundFetchManager": false,
- "BackgroundFetchRecord": false,
- "BackgroundFetchRegistration": false,
- "BarProp": false,
- "BarcodeDetector": false,
- "BaseAudioContext": false,
- "BatteryManager": false,
- "BeforeUnloadEvent": false,
- "BiquadFilterNode": false,
"Blob": false,
- "BlobEvent": false,
- "Bluetooth": false,
- "BluetoothCharacteristicProperties": false,
- "BluetoothDevice": false,
- "BluetoothRemoteGATTCharacteristic": false,
- "BluetoothRemoteGATTDescriptor": false,
- "BluetoothRemoteGATTServer": false,
- "BluetoothRemoteGATTService": false,
- "BluetoothUUID": false,
"BroadcastChannel": false,
- "BrowserCaptureMediaStreamTrack": false,
"Buffer": false,
"ByteLengthQueuingStrategy": false,
- "CDATASection": false,
- "CSS": false,
- "CSSAnimation": false,
- "CSSConditionRule": false,
- "CSSContainerRule": false,
- "CSSCounterStyleRule": false,
- "CSSFontFaceRule": false,
- "CSSFontFeatureValuesRule": false,
- "CSSFontPaletteValuesRule": false,
- "CSSGroupingRule": false,
- "CSSImageValue": false,
- "CSSImportRule": false,
- "CSSKeyframeRule": false,
- "CSSKeyframesRule": false,
- "CSSKeywordValue": false,
- "CSSLayerBlockRule": false,
- "CSSLayerStatementRule": false,
- "CSSMathClamp": false,
- "CSSMathInvert": false,
- "CSSMathMax": false,
- "CSSMathMin": false,
- "CSSMathNegate": false,
- "CSSMathProduct": false,
- "CSSMathSum": false,
- "CSSMathValue": false,
- "CSSMatrixComponent": false,
- "CSSMediaRule": false,
- "CSSNamespaceRule": false,
- "CSSNumericArray": false,
- "CSSNumericValue": false,
- "CSSPageDescriptors": false,
- "CSSPageRule": false,
- "CSSPerspective": false,
- "CSSPositionTryDescriptors": false,
- "CSSPositionTryRule": false,
- "CSSPositionValue": false,
- "CSSPropertyRule": false,
- "CSSRotate": false,
- "CSSRule": false,
- "CSSRuleList": false,
- "CSSScale": false,
- "CSSScopeRule": false,
- "CSSSkew": false,
- "CSSSkewX": false,
- "CSSSkewY": false,
- "CSSStartingStyleRule": false,
- "CSSStyleDeclaration": false,
- "CSSStyleRule": false,
- "CSSStyleSheet": false,
- "CSSStyleValue": false,
- "CSSSupportsRule": false,
- "CSSTransformComponent": false,
- "
|
Test ESLint Config
Process completed with exit code 1.
|
Mark as failure if any Error
Snapshot test failed.
|
Mark as failure if any Error
Process completed with exit code 1.
|
Loading