Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the client group in /newswires/client with 24 updates #119

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:
pushd client
npm ci
npm run lint:ci
npm run format:ci
npm test
popd

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
!jest.config.js
!jest.setup.js
!.eslintrc.js
!eslint.config.js
node_modules
dist
out
Expand Down
2 changes: 0 additions & 2 deletions newswires/client/.eslintignore

This file was deleted.

51 changes: 0 additions & 51 deletions newswires/client/.eslintrc.cjs

This file was deleted.

46 changes: 46 additions & 0 deletions newswires/client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import guardian from '@guardian/eslint-config';
import prettier from 'eslint-plugin-prettier';

export default [
{
ignores: ['dist'],
},
...guardian.configs.recommended,
...guardian.configs.jest,
...guardian.configs.react,
{
plugins: { prettier },
},
{
rules: {
'no-unused-vars': 'off',

'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],

'prettier/prettier': 'warn',

'react/no-unknown-property': [
'error',
{
ignore: ['css'],
},
],

'no-restricted-syntax': [
'error',
{
message:
"Don't use `fetch` directly, please use the `pandaFetch` abstraction, to get automatic session refreshes",
selector: "CallExpression[callee.name='fetch']",
},
],
},
},
];
Loading