Skip to content

Commit

Permalink
Clean up some lint based on latest eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
RickDT committed Oct 4, 2023
1 parent 4eb1cfe commit 5e127a3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/react-webpack/src/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
Expand Down
2 changes: 1 addition & 1 deletion examples/webpack/src/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "pnpm --parallel --filter '@parallelmarkets/*' build",
"lint": "eslint examples/*/src packages/*/src && prettier -l packages/*/src examples/*/src",
"test": "NODE_ENV=test jest"
"test": "jest"
},
"keywords": [
"ParallelMarkets"
Expand Down
7 changes: 3 additions & 4 deletions packages/react/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
const config = {
verbose: true,
displayName: 'react',
rootDir: '../..',
roots: ['packages/react'],
testEnvironment: 'jsdom',
transform: {
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/packages/react/node_modules/babel-jest",
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/packages/react/jest/fileTransform.js"
}
'^.+\\.(js|jsx|ts|tsx)$': '<rootDir>/packages/react/node_modules/babel-jest',
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '<rootDir>/packages/react/jest/fileTransform.js',
},
}

module.exports = config
2 changes: 1 addition & 1 deletion packages/react/src/__tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const wrapRender = async (parallel, _children) => {
await render(
<ParallelProvider parallel={Promise.resolve(parallel)}>
<PassportButton />
</ParallelProvider>
</ParallelProvider>,
)
})
}
Expand Down
3 changes: 1 addition & 2 deletions packages/vanilla/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
const config = {
verbose: true,
displayName: 'vanilla',
rootDir: '../..',
roots: ['packages/vanilla'],
testEnvironment: 'jsdom'
testEnvironment: 'jsdom',
}

module.exports = config

0 comments on commit 5e127a3

Please sign in to comment.