forked from SkalskiP/make-sense
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Vite, Vitest, Add Linter (SkalskiP#262)
* Migrate to Vite, Vitest, Add Linter * Update Testing * Fix Coverage * Update Actions Version * Fix Coverage Test Failed * fix npm lockfile error * Fix StyledTextField * Reconfigure Testing and Coverage * Fix Test and Coverage * Change TextField to Standard * Update Linter to allow object initializer * fix some UI bug * Fix Json Grayed Out * Fix Styled Component * Revert initializer Co-authored-by: telkomdev-rasyid <[email protected]>
- Loading branch information
Showing
58 changed files
with
14,040 additions
and
16,468 deletions.
There are no files selected for viewing
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,32 @@ | ||
extends: | ||
- eslint:recommended | ||
- plugin:@typescript-eslint/recommended | ||
- plugin:react/recommended | ||
parser: "@typescript-eslint/parser" | ||
plugins: | ||
- "@typescript-eslint" | ||
rules: | ||
"@typescript-eslint/no-inferrable-types": off | ||
no-shadow: off | ||
"@typescript-eslint/no-shadow": | ||
- error | ||
no-use-before-define: off | ||
"@typescript-eslint/no-use-before-define": | ||
- error | ||
react/jsx-filename-extension: | ||
- warn | ||
- extensions: | ||
- .tsx | ||
complexity: | ||
- error | ||
- 15 | ||
no-await-in-loop: warn | ||
no-eval: error | ||
no-implied-eval: error | ||
prefer-promise-reject-errors: warn | ||
env: | ||
browser: true | ||
settings: | ||
react: | ||
pragma: React | ||
version: detect |
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 |
---|---|---|
|
@@ -5,7 +5,8 @@ | |
# CREATE REACT APP | ||
|
||
# dependencies | ||
/node_modules | ||
/node_modules/ | ||
/dist/ | ||
/.pnp | ||
.pnp.js | ||
|
||
|
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,10 +1,9 @@ | ||
language: node_js | ||
node_js: | ||
- "11" | ||
- "14" | ||
cache: | ||
directories: | ||
- node_modules | ||
script: | ||
- npm test | ||
- npm run test:coverage | ||
- npm run build |
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,36 @@ | ||
import type { Config } from '@jest/types'; | ||
|
||
// Sync object | ||
const config: Config.InitialOptions = { | ||
rootDir: process.cwd(), | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], | ||
transformIgnorePatterns: [], | ||
testEnvironment: 'jsdom', | ||
roots: ["<rootDir>/src"], | ||
setupFilesAfterEnv: ["<rootDir>/src/configureTest.ts"], | ||
transform: { | ||
"^.+(t|j)sx?$": [ | ||
"@swc/jest", | ||
{ | ||
jsc: { | ||
transform: { | ||
react: { | ||
runtime: 'automatic', | ||
}, | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
"moduleNameMapper": { | ||
"\\.(css|scss|less)$": "identity-obj-proxy" | ||
}, | ||
extensionsToTreatAsEsm: [".ts", ".tsx"], | ||
collectCoverageFrom: [ | ||
"**/*.{ts,tsx}", | ||
"!**/node_modules/**", | ||
"!**/dist/**", | ||
"!**/coverage/**", | ||
], | ||
}; | ||
export default config; |
Oops, something went wrong.