Skip to content

Commit 8cc8a50

Browse files
committed
chore: Eslint max-lines limit was raised
1 parent 3ac34ca commit 8cc8a50

12 files changed

Lines changed: 3 additions & 14 deletions

File tree

m3-foundation/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default [
4747
SwitchCase: 1,
4848
}],
4949
'linebreak-style': [2, 'unix'],
50-
'max-lines-per-function': ['error', 30],
50+
'max-lines-per-function': ['error', 50],
5151
'max-nested-callbacks': ['error', 3],
5252
'no-console': 'off',
5353
'no-constant-condition': 'off',

m3-react/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default [
5353
SwitchCase: 1,
5454
}],
5555
'linebreak-style': [2, 'unix'],
56-
'max-lines-per-function': ['error', 30],
56+
'max-lines-per-function': ['error', 50],
5757
'max-nested-callbacks': ['error', 3],
5858
'no-console': 'off',
5959
'no-constant-condition': 'off',

m3-vue/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default [
5050
SwitchCase: 1,
5151
}],
5252
'linebreak-style': [2, 'unix'],
53-
'max-lines-per-function': ['error', 30],
53+
'max-lines-per-function': ['error', 50],
5454
'max-nested-callbacks': ['error', 3],
5555
'no-console': 'off',
5656
'no-constant-condition': 'off',

m3-vue/src/components/button/M3Button.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export default defineComponent({
4848
},
4949
},
5050

51-
// eslint-disable-next-line max-lines-per-function
5251
setup (props, { attrs, expose, slots }) {
5352
const root = ref<M3LinkInstance | null>(null)
5453
const rootElement = computed(() => root.value?.el() ?? null)

m3-vue/src/components/fab-button/M3FabButton.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export default defineComponent({
5454
},
5555
},
5656

57-
// eslint-disable-next-line max-lines-per-function
5857
setup (props, { attrs, expose, slots }) {
5958
const root = ref<M3LinkInstance | null>(null)
6059
const rootElement = computed(() => root.value?.el() ?? null)

m3-vue/storybook/components/M3Button.stories.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export const WithLeadingIcon: Story = {
7070
}
7171

7272
export const AppearanceMatrix: Story = {
73-
// eslint-disable-next-line max-lines-per-function
7473
render: () => ({
7574
components: {
7675
M3Button,

m3-vue/storybook/components/M3Card.stories.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export const LandscapeWithoutMedia: Story = {
9292
}
9393

9494
export const Portrait: Story = {
95-
// eslint-disable-next-line max-lines-per-function
9695
render: (args: unknown) => ({
9796
components: {
9897
M3Button,
@@ -134,7 +133,6 @@ export const Portrait: Story = {
134133
}
135134

136135
export const AppearanceMatrix: Story = {
137-
// eslint-disable-next-line max-lines-per-function
138136
render: () => ({
139137
components: {
140138
M3Card,

m3-vue/storybook/components/M3FabButton.stories.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export const Extended: Story = {
8383
}
8484

8585
export const VariantMatrix: Story = {
86-
// eslint-disable-next-line max-lines-per-function
8786
render: () => ({
8887
components: {
8988
M3FabButton,

m3-vue/storybook/components/M3IconButton.stories.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export const Toggleable: Story = {
9292
}
9393

9494
export const AppearanceMatrix: Story = {
95-
// eslint-disable-next-line max-lines-per-function
9695
render: () => ({
9796
components: {
9897
M3Icon,

m3-vue/storybook/components/M3Navigation.stories.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ export const NavigationRail: Story = {
137137
}
138138

139139
export const ModalNavigationDrawer: Story = {
140-
// eslint-disable-next-line max-lines-per-function
141140
render: (args: unknown) => ({
142141
name: 'M3ModalNavigationDrawerStory',
143142

0 commit comments

Comments
 (0)