Skip to content

Split widgets #45

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
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
15 changes: 1 addition & 14 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,6 @@
],
"import/no-unresolved": "error",
"no-console": "error",
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": [
"../*",
"./*"
],
"message": "Usage of relative paths is not allowed"
}
]
}
]
"@next/next/no-head-element": "off"
}
}
3 changes: 1 addition & 2 deletions __tests__/test-utils/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { render } from '@testing-library/react'
import type { RenderOptions } from '@testing-library/react'
import { Provider } from 'react-redux'
import type { PreloadedState } from '@reduxjs/toolkit';
import type { RootStore, RootState } from 'ops-frontend/store/store';
import { setupStore } from 'ops-frontend/store/store';
import type { RootStore, RootState, setupStore } from 'ops-frontend/store/store.js';

// This type interface extends the default options for render from RTL, as well
// as allows the user to specify other things such as initialState, store.
Expand Down
6 changes: 3 additions & 3 deletions generate-plugins-index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const fs = require('fs');
const camelCase = require('lodash.camelcase');
import path from 'path';
import fs from 'fs';
import camelCase from 'lodash.camelcase';

const processArgs = [...process.argv];
const dependencies = processArgs.slice(2);
Expand Down
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// jest.config.js
const nextJest = require('next/jest')
import nextJest from 'next/jest';

const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
Expand Down Expand Up @@ -56,4 +56,4 @@ const customJestConfig = {
};

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
module.exports = createJestConfig(customJestConfig);
export default createJestConfig(customJestConfig);
6 changes: 5 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const nextConfig = {
tls: false
};
}
config.resolve.extensionAlias = {
...config.resolve.extensionAlias,
'.js': ['.js', '.ts', '.jsx', '.tsx']
}

return config;
},
Expand All @@ -28,4 +32,4 @@ const nextConfig = {
}
}

module.exports = nextConfig
export default nextConfig;
Loading