-
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.
- Loading branch information
mayuxian
committed
Feb 7, 2021
1 parent
9701695
commit 50ce969
Showing
5 changed files
with
93 additions
and
48 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 |
---|---|---|
@@ -1,5 +1,2 @@ | ||
.cache/ | ||
node_modules/ | ||
/build | ||
/lib | ||
/public |
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,55 @@ | ||
module.exports = { | ||
env: { | ||
"browser": true, | ||
"es2021": true, | ||
"jest/globals": true | ||
}, | ||
globals: { | ||
"window": true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
// "plugin:vue/essential", | ||
// "plugin:@typescript-eslint/recommended" | ||
], | ||
parserOptions: { | ||
"ecmaVersion": 12, | ||
// "parser": "@typescript-eslint/parser", | ||
// "sourceType": "module" | ||
}, | ||
plugins: [ | ||
// "vue", | ||
// "@typescript-eslint" | ||
], | ||
rules: { | ||
"semi": [ | ||
2, | ||
"never" | ||
], | ||
"comma-dangle": [ | ||
"error", | ||
"never" | ||
], | ||
"no-param-reassign": [ | ||
0 | ||
], | ||
"func-names": [ | ||
0 | ||
], | ||
"import/no-extraneous-dependencies": [ | ||
0 | ||
], | ||
"import/no-unresolved": [ | ||
2, | ||
{ | ||
"ignore": [ | ||
"dayjs" | ||
] | ||
} | ||
], | ||
"import/extensions": [ | ||
2, | ||
"never" | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module.exports = { | ||
globals: { | ||
// work around: https://github.com/kulshekhar/ts-jest/issues/748#issuecomment-423528659 | ||
'ts-jest': { | ||
diagnostics: { | ||
ignoreCodes: [151001], | ||
}, | ||
}, | ||
}, | ||
testEnvironment: 'jsdom', | ||
transform: { | ||
'^.+\\.vue$': 'vue-jest', | ||
'^.+\\.(t|j)sx?$': [ | ||
'babel-jest', { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
node: true, | ||
}, | ||
}, | ||
], | ||
'@babel/preset-typescript', | ||
], | ||
plugins: [ | ||
'@vue/babel-plugin-jsx', | ||
'@babel/plugin-proposal-class-properties', | ||
], | ||
}, | ||
], | ||
}, | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'], | ||
// u can change this option to a more specific folder for test single component or util when dev | ||
// for example, ['<rootDir>/packages/input'] | ||
roots: ['<rootDir>'], | ||
} |
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