Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
wakamsha committed Dec 7, 2024
1 parent 27fb554 commit 8446b2d
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 585 deletions.
7 changes: 3 additions & 4 deletions configs/flat/storybook.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
// @ts-ignore
import importPlugin from 'eslint-plugin-import';
import * as storybook from 'eslint-plugin-storybook';
import storybook from 'eslint-plugin-storybook';
import storybookRuleSetBase from '../../rules/storybook.js';

const storybookRuleSetStories = {
Expand All @@ -11,8 +11,7 @@ const storybookRuleSetStories = {
},

rules: {
...storybook.configs.recommended.overrides[0].rules,
...storybook.configs['csf-strict'].rules,
...storybook.configs['flat/csf-strict'].rules,
...storybookRuleSetBase.rules,
'import/no-default-export': ['off'],
},
Expand All @@ -24,7 +23,7 @@ const storybookRuleSetConfig = {
import: importPlugin,
},
rules: {
...storybook.configs.recommended.overrides[1].rules,
...storybook.configs['flat/recommended'].rules,
'import/no-default-export': ['off'],
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = `
"allowShortCircuit": true,
"allowTaggedTemplates": true,
"allowTernary": true,
"enforceForJSX": false,
},
],
"@typescript-eslint/no-unused-vars": [
Expand Down Expand Up @@ -405,6 +406,8 @@ exports[`should match ESLint configuration snapshot: next 1`] = `
2,
{
"allowImplicit": true,
"allowVoid": false,
"checkForEach": false,
},
],
"arrow-body-style": [
Expand All @@ -425,6 +428,8 @@ exports[`should match ESLint configuration snapshot: next 1`] = `
0,
{
"ignoreDestructuring": false,
"ignoreGlobals": false,
"ignoreImports": false,
"properties": "never",
},
],
Expand All @@ -447,6 +452,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = `
"class-methods-use-this": [
2,
{
"enforceForClassFields": true,
"exceptMethods": [],
},
],
Expand Down Expand Up @@ -1317,6 +1323,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = `
],
"newIsCap": true,
"newIsCapExceptions": [],
"properties": true,
},
],
"no-alert": [
Expand Down Expand Up @@ -1471,6 +1478,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = `
{
"allow": [],
"boolean": false,
"disallowTemplateShorthand": false,
"number": true,
"string": true,
},
Expand Down Expand Up @@ -2000,6 +2008,11 @@ exports[`should match ESLint configuration snapshot: next 1`] = `
"allow": [],
"allowAfterSuper": false,
"allowAfterThis": false,
"allowAfterThisConstructor": false,
"allowFunctionParams": true,
"allowInArrayDestructuring": true,
"allowInObjectDestructuring": true,
"enforceInClassFields": false,
"enforceInMethodNames": true,
},
],
Expand Down Expand Up @@ -2042,6 +2055,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = `
"allowShortCircuit": true,
"allowTaggedTemplates": true,
"allowTernary": true,
"enforceForJSX": false,
},
],
"no-unused-labels": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ exports[`should match ESLint configuration snapshot: node 1`] = `
2,
{
"allowImplicit": true,
"allowVoid": false,
"checkForEach": false,
},
],
"arrow-body-style": [
Expand All @@ -34,6 +36,8 @@ exports[`should match ESLint configuration snapshot: node 1`] = `
2,
{
"ignoreDestructuring": false,
"ignoreGlobals": false,
"ignoreImports": false,
"properties": "never",
},
],
Expand All @@ -56,6 +60,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = `
"class-methods-use-this": [
2,
{
"enforceForClassFields": true,
"exceptMethods": [],
},
],
Expand Down Expand Up @@ -89,6 +94,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = `
2,
{
"allowKeywords": true,
"allowPattern": "",
},
],
"eqeqeq": [
Expand Down Expand Up @@ -470,6 +476,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = `
],
"newIsCap": true,
"newIsCapExceptions": [],
"properties": true,
},
],
"no-alert": [
Expand Down Expand Up @@ -624,6 +631,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = `
{
"allow": [],
"boolean": false,
"disallowTemplateShorthand": false,
"number": true,
"string": true,
},
Expand Down Expand Up @@ -1147,6 +1155,11 @@ exports[`should match ESLint configuration snapshot: node 1`] = `
"allow": [],
"allowAfterSuper": false,
"allowAfterThis": false,
"allowAfterThisConstructor": false,
"allowFunctionParams": true,
"allowInArrayDestructuring": true,
"allowInObjectDestructuring": true,
"enforceInClassFields": false,
"enforceInMethodNames": true,
},
],
Expand Down Expand Up @@ -1189,6 +1202,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = `
"allowShortCircuit": true,
"allowTaggedTemplates": true,
"allowTernary": true,
"enforceForJSX": false,
},
],
"no-unused-labels": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = `
"allowShortCircuit": true,
"allowTaggedTemplates": true,
"allowTernary": true,
"enforceForJSX": false,
},
],
"@typescript-eslint/no-unused-vars": [
Expand Down Expand Up @@ -342,6 +343,8 @@ exports[`should match ESLint configuration snapshot: react 1`] = `
2,
{
"allowImplicit": true,
"allowVoid": false,
"checkForEach": false,
},
],
"arrow-body-style": [
Expand All @@ -362,6 +365,8 @@ exports[`should match ESLint configuration snapshot: react 1`] = `
0,
{
"ignoreDestructuring": false,
"ignoreGlobals": false,
"ignoreImports": false,
"properties": "never",
},
],
Expand All @@ -384,6 +389,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = `
"class-methods-use-this": [
2,
{
"enforceForClassFields": true,
"exceptMethods": [],
},
],
Expand Down Expand Up @@ -1254,6 +1260,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = `
],
"newIsCap": true,
"newIsCapExceptions": [],
"properties": true,
},
],
"no-alert": [
Expand Down Expand Up @@ -1408,6 +1415,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = `
{
"allow": [],
"boolean": false,
"disallowTemplateShorthand": false,
"number": true,
"string": true,
},
Expand Down Expand Up @@ -1937,6 +1945,11 @@ exports[`should match ESLint configuration snapshot: react 1`] = `
"allow": [],
"allowAfterSuper": false,
"allowAfterThis": false,
"allowAfterThisConstructor": false,
"allowFunctionParams": true,
"allowInArrayDestructuring": true,
"allowInObjectDestructuring": true,
"enforceInClassFields": false,
"enforceInMethodNames": true,
},
],
Expand Down Expand Up @@ -1979,6 +1992,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = `
"allowShortCircuit": true,
"allowTaggedTemplates": true,
"allowTernary": true,
"enforceForJSX": false,
},
],
"no-unused-labels": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = `
"allowShortCircuit": true,
"allowTaggedTemplates": true,
"allowTernary": true,
"enforceForJSX": false,
},
],
"@typescript-eslint/no-unused-vars": [
Expand Down Expand Up @@ -342,6 +343,8 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = `
2,
{
"allowImplicit": true,
"allowVoid": false,
"checkForEach": false,
},
],
"arrow-body-style": [
Expand All @@ -362,6 +365,8 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = `
0,
{
"ignoreDestructuring": false,
"ignoreGlobals": false,
"ignoreImports": false,
"properties": "never",
},
],
Expand All @@ -384,6 +389,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = `
"class-methods-use-this": [
2,
{
"enforceForClassFields": true,
"exceptMethods": [],
},
],
Expand Down Expand Up @@ -1011,6 +1017,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = `
],
"newIsCap": true,
"newIsCapExceptions": [],
"properties": true,
},
],
"no-alert": [
Expand Down Expand Up @@ -1165,6 +1172,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = `
{
"allow": [],
"boolean": false,
"disallowTemplateShorthand": false,
"number": true,
"string": true,
},
Expand Down Expand Up @@ -1694,6 +1702,11 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = `
"allow": [],
"allowAfterSuper": false,
"allowAfterThis": false,
"allowAfterThisConstructor": false,
"allowFunctionParams": true,
"allowInArrayDestructuring": true,
"allowInObjectDestructuring": true,
"enforceInClassFields": false,
"enforceInMethodNames": true,
},
],
Expand Down Expand Up @@ -1736,6 +1749,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = `
"allowShortCircuit": true,
"allowTaggedTemplates": true,
"allowTernary": true,
"enforceForJSX": false,
},
],
"no-unused-labels": [
Expand Down
Loading

0 comments on commit 8446b2d

Please sign in to comment.