Skip to content

Commit

Permalink
feat: rewrite calculator... again
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Oct 10, 2021
1 parent f7080f7 commit 2173a13
Show file tree
Hide file tree
Showing 58 changed files with 10,442 additions and 7,128 deletions.
22 changes: 10 additions & 12 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ module.exports = {
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint',
],
rules: {
'no-console': import.meta.env.PROD ? ['error', { allow: ['warn', 'error'] }] : 'off',
'no-debugger': import.meta.env.PROD ? 'error' : 'off',
// 'no-console': import.meta.env.PROD ? ['error', { allow: ['warn', 'error'] }] : 'off',
// 'no-debugger': import.meta.env.PROD ? 'error' : 'off',
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
'vue/block-tag-newline': 'error',
'vue/custom-event-name-casing': ['error', 'camelCase'],
'vue/html-comment-content-spacing': [import.meta.env.PROD ? 'error' : 'warn', 'always'],
// 'vue/html-comment-content-spacing': [import.meta.env.PROD ? 'error' : 'warn', 'always'],
'vue/match-component-file-name': [
'error',
{
Expand All @@ -37,13 +35,13 @@ module.exports = {
disallowVue3BuiltInComponents: true,
},
],
'vue/no-unused-properties': [
import.meta.env.PROD ? 'error' : 'warn',
{
groups: ['props', 'setup'],
},
],
'vue/padding-line-between-blocks': [import.meta.env.PROD ? 'error' : 'warn', 'always'],
// 'vue/no-unused-properties': [
// import.meta.env.PROD ? 'error' : 'warn',
// {
// groups: ['props', 'setup'],
// },
// ],
// 'vue/padding-line-between-blocks': [import.meta.env.PROD ? 'error' : 'warn', 'always'],
'vue/require-name-property': ['error'],
'vue/v-on-function-call': [
'error',
Expand Down
15 changes: 14 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
module.exports = {
preset: '@vue/cli-plugin-unit-jest/presets/typescript',
preset: 'ts-jest',
globals: {},
testEnvironment: 'jsdom',
transform: {
"^.+\\.ts?$": "ts-jest"
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
setupFiles: [
"fake-indexeddb/auto",
"./src/assets/database/heroes.ts"
],
moduleFileExtensions: ['ts', 'js', 'node']
}
Loading

0 comments on commit 2173a13

Please sign in to comment.