Skip to content

Commit e8b9cd5

Browse files
ESLint fix
1 parent 4d6f8d3 commit e8b9cd5

File tree

169 files changed

+253
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+253
-39
lines changed

.storybook/manager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import { startCase, upperFirst } from 'lodash';
12
import { addons } from 'storybook/manager-api';
3+
24
import nhsTheme from './theme.js';
3-
import { startCase, upperFirst } from 'lodash';
45

56
const sentenceCase = (name = '') => {
67
if (!name || typeof name !== 'string') {

.storybook/theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { create } from 'storybook/theming/create';
2+
23
import packageJson from '../package.json' with { type: 'json' };
34

45
export default create({

eslint.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { join } from 'node:path';
2+
3+
import { includeIgnoreFile } from '@eslint/compat';
4+
import eslint from '@eslint/js';
5+
import { defineConfig, globalIgnores } from 'eslint/config';
26
import configPrettier from 'eslint-config-prettier/flat';
7+
import pluginImport from 'eslint-plugin-import';
8+
import pluginJsxA11y from 'eslint-plugin-jsx-a11y';
39
import pluginReact from 'eslint-plugin-react';
410
import pluginReactHooks from 'eslint-plugin-react-hooks';
5-
import eslint from '@eslint/js';
6-
import pluginJsxA11y from 'eslint-plugin-jsx-a11y';
7-
import { includeIgnoreFile } from '@eslint/compat';
8-
import { defineConfig, globalIgnores } from 'eslint/config';
911
import globals from 'globals';
10-
import pluginImport from 'eslint-plugin-import';
1112
import pluginTypeScript from 'typescript-eslint';
1213

1314
const rootPath = import.meta.dirname;

rollup.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { dirname, join, relative, resolve } from 'node:path';
2+
23
import { DEFAULT_EXTENSIONS as extensions } from '@babel/core';
34
import { babel } from '@rollup/plugin-babel';
45
import commonjs from '@rollup/plugin-commonjs';
56
import { nodeResolve } from '@rollup/plugin-node-resolve';
67
import typescript from '@rollup/plugin-typescript';
7-
import preserveDirectives from 'rollup-preserve-directives';
88
import { defineConfig } from 'rollup';
9+
import preserveDirectives from 'rollup-preserve-directives';
10+
911
import packageJson from './package.json' with { type: 'json' };
1012
import tsBuildConfig from './tsconfig.build.json' with { type: 'json' };
1113

src/components/content-presentation/details/__tests__/Details.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { render } from '@testing-library/react';
22
import { createRef } from 'react';
3+
34
import { Details } from '..';
5+
46
import { renderClient, renderServer } from '#util/components';
57

68
describe('Details', () => {

src/components/content-presentation/do-and-dont-list/DoAndDontList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import classNames from 'classnames';
44
import { forwardRef, type ComponentPropsWithoutRef } from 'react';
5-
import { HeadingLevel, type HeadingLevelProps } from '#components/utils/HeadingLevel.js';
5+
66
import { DoAndDontListContext, type DoAndDontListType } from './DoAndDontListContext.js';
77
import { DoAndDontListItem } from './components/index.js';
88

9+
import { HeadingLevel, type HeadingLevelProps } from '#components/utils/HeadingLevel.js';
10+
911
export interface DoAndDontListProps
1012
extends ComponentPropsWithoutRef<'div'>,
1113
Pick<HeadingLevelProps, 'headingLevel'> {

src/components/content-presentation/do-and-dont-list/__tests__/DoAndDontList.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { render } from '@testing-library/react';
22
import { createRef } from 'react';
3+
34
import { DoAndDontList } from '..';
5+
46
import { renderClient, renderServer } from '#util/components';
57

68
describe('DoAndDontList', () => {

src/components/content-presentation/do-and-dont-list/components/DoAndDontListItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client';
22

33
import { useContext, type ComponentPropsWithoutRef, type FC, type ReactNode } from 'react';
4+
45
import { CrossIcon, TickIcon } from '../../icons/index.js';
56
import { DoAndDontListContext, type DoAndDontListType } from '../DoAndDontListContext.js';
67

src/components/content-presentation/hero/Hero.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import classNames from 'classnames';
22
import { forwardRef, type ComponentPropsWithoutRef, type FC } from 'react';
3+
34
import { Col, Container, Row } from '#components/layout/index.js';
45
import { HeadingLevel, type HeadingLevelProps } from '#components/utils/HeadingLevel.js';
56

src/components/content-presentation/hero/__tests__/Hero.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { render } from '@testing-library/react';
22
import { createRef } from 'react';
3+
34
import { Hero } from '..';
45

56
describe('Hero', () => {

0 commit comments

Comments
 (0)