-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from epaew/miscs/toolchain
Use Biome instead of ESLint and Prettier
- Loading branch information
Showing
25 changed files
with
408 additions
and
2,925 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
|
||
- [#599](https://github.com/epaew/react-liff/pull/599) | ||
- Tests with `@line/[email protected]`. | ||
- [#600](https://github.com/epaew/react-liff/pull/600) | ||
- Use Biome instead of ESLint and Prettier. | ||
|
||
# v2.1.0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.3.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineWidth": 120 | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { LiffMockPlugin } from '@line/liff-mock'; | ||
import { StrictMode } from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import './index.css'; | ||
import App from './App'; | ||
import { LiffMockPlugin } from "@line/liff-mock"; | ||
import { StrictMode } from "react"; | ||
import { createRoot } from "react-dom/client"; | ||
import App from "./App"; | ||
import "./index.css"; | ||
|
||
import { LiffProvider } from 'react-liff'; | ||
import { LiffProvider } from "react-liff"; | ||
|
||
const liffId = process.env.REACT_APP_LINE_LIFF_ID ?? ''; | ||
const mockEnabled = process.env.NODE_ENV !== 'production'; | ||
const liffId = process.env.REACT_APP_LINE_LIFF_ID ?? ""; | ||
const mockEnabled = process.env.NODE_ENV !== "production"; | ||
const liffPlugins = [new LiffMockPlugin()]; | ||
|
||
const root = createRoot(document.getElementById('root')); | ||
const root = createRoot(document.getElementById("root")); | ||
root.render( | ||
<StrictMode> | ||
<LiffProvider liffId={liffId} mock={mockEnabled} plugins={liffPlugins}> | ||
<App /> | ||
</LiffProvider> | ||
</StrictMode> | ||
</StrictMode>, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// eslint-disable-next-line import/no-default-export | ||
export default { | ||
collectCoverageFrom: ['<rootDir>/src/**/*.ts{,x}', '!<rootDir>/src/**/*.test.ts{,x}'], | ||
collectCoverageFrom: ["<rootDir>/src/**/*.ts{,x}", "!<rootDir>/src/**/*.test.ts{,x}"], | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1', | ||
"^(\\.{1,2}/.*)\\.js$": "$1", | ||
}, | ||
preset: 'ts-jest/presets/default-esm', | ||
testEnvironment: 'jsdom', | ||
preset: "ts-jest/presets/default-esm", | ||
testEnvironment: "jsdom", | ||
transform: { | ||
'\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json', useESM: true }], | ||
"\\.tsx?$": ["ts-jest", { tsconfig: "tsconfig.test.json", useESM: true }], | ||
}, | ||
}; |
Oops, something went wrong.