Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #19 from nodecfdi/dev
Browse files Browse the repository at this point in the history
Version bump 1.3.1
  • Loading branch information
luffynando authored Sep 27, 2022
2 parents a12b8df + 09a8077 commit 58ef172
Show file tree
Hide file tree
Showing 22 changed files with 1,472 additions and 1,442 deletions.
20 changes: 15 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
*.sh
node_modules
*.md
*.woff
*.ttf
.vscode
.idea
dist
docs
coverage
web_modules
.prettierrc.js
tsconfig.json
/public
/docs
/vendor
.husky
.local
/bin
/coverage
tests/tsconfig.json
/examples
50 changes: 33 additions & 17 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,41 +1,54 @@
module.exports = {
const { defineConfig } = require('eslint-define-config');

module.exports = defineConfig({
root: true,
env: {
// commonjs: true,
es6: true,
node: true,
jest: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:promise/recommended',
'plugin:jest/recommended',
'plugin:prettier/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
parserOptions: {
/* enabling "project" field is a performance hit
https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md#performance
*/
sourceType: 'module'
},
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc', 'prettier'],
globals: {
__DEV__: true,
__VERSION__: true,
__COMMIT_SHA__: true,
__BUILD_DATE__: true
},
plugins: ['@typescript-eslint/eslint-plugin', 'eslint-plugin-tsdoc', 'prettier'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:jest/recommended', 'prettier'],
parser: '@typescript-eslint/parser',
reportUnusedDisableDirectives: true,
parserOptions: {
/* enabling "project" field is a performance hit
https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md#performance
*/
sourceType: 'module'
},
rules: {
// eslint rules
'indent': 'off',
'tsdoc/syntax': 'warn',
'@typescript-eslint/no-unused-vars': [2, { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'semi': 'error',
'quote-props': ['error', 'consistent'],
'generator-star-spacing': ['error', { before: false, after: true }],
'space-before-function-paren': 'off',
'no-dupe-class-members': 'off',
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': 'off',
'prettier/prettier': ['error'],
'lines-between-class-members': ['error', 'always'],
'padding-line-between-statements': ['error', { blankLine: 'always', prev: '*', next: 'return' }],

// promise rules
'promise/catch-or-return': ['error', { terminationMethod: ['catch', 'asCallback', 'finally'] }],

// typescript rules
'@typescript-eslint/no-unused-vars': [2, { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'@typescript-eslint/no-useless-constructor': 'off',
'@typescript-eslint/explicit-function-return-type': [
'error',
{
Expand Down Expand Up @@ -75,15 +88,18 @@ module.exports = {
}
],
'@typescript-eslint/indent': ['error', 4],
'@typescript-eslint/no-empty-interface': 'off'
'@typescript-eslint/no-empty-interface': 'off',

// tsdoc rules
'tsdoc/syntax': 'warn'
},
overrides: [
{
files: ['*.js', '*.jsx'],
files: ['*.js', '*.jsx', '*.cjs'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-var-requires': 'off'
}
}
]
};
});
9 changes: 6 additions & 3 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
module.exports = {
printWidth: 120,
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: true,
trailingComma: 'none',
endOfLine: 'lf',
quoteProps: 'consistent',
printWidth: 120
trailingComma: 'none',
arrowParens: 'always',
endOfLine: 'lf'
};
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @nodecfdi/cfdiutils-elements ChangeLog

## 1.3.1

- fixed problem with traits on multiple inheritance lose children order
- Update dependencies
- Update test with double check on order of children nodes

## 1.3.0

### DOM Agnostic
Expand Down
45 changes: 22 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nodecfdi/cfdiutils-elements",
"version": "1.3.0",
"version": "1.3.1",
"description": "Librería para contener las estructuras de datos que componen un cfdi",
"keywords": [
"cfdi",
Expand Down Expand Up @@ -46,45 +46,44 @@
},
"homepage": "https://github.com/nodecfdi/cfdiutils-elements",
"devDependencies": {
"@babel/core": "^7.18.9",
"@babel/preset-env": "^7.18.9",
"@babel/core": "^7.19.1",
"@babel/preset-env": "^7.19.1",
"@babel/preset-typescript": "^7.18.6",
"@changesets/cli": "^2.24.1",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@types/jest": "^28.1.6",
"@types/node": "^18.6.1",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"@changesets/cli": "^2.24.4",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@types/jest": "^29.0.3",
"@types/node": "^18.7.23",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"@xmldom/xmldom": "^0.8.2",
"babel-plugin-dev-expression": "^0.2.3",
"babel-plugin-transform-define": "^2.0.1",
"babel-plugin-transform-define": "^2.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.20.0",
"eslint": "^8.24.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest": "^26.6.0",
"eslint-define-config": "^1.7.0",
"eslint-plugin-jest": "^27.0.4",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-tsdoc": "^0.2.16",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-tsdoc": "^0.2.17",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest": "^29.0.3",
"jest-mock-console": "^2.0.0",
"jest-watch-typeahead": "^2.0.0",
"jest-watch-typeahead": "^2.2.0",
"lint-staged": "^13.0.3",
"microbundle": "^0.15.0",
"microbundle": "^0.15.1",
"prettier": "^2.7.1",
"shx": "^0.3.4",
"typedoc": "^0.23.9",
"typedoc": "^0.23.15",
"typedoc-theme-hierarchy": "^3.0.0",
"typescript": "^4.7.4",
"zx": "^7.0.7"
"typescript": "^4.8.3"
},
"dependencies": {
"@nodecfdi/cfdiutils-common": "^1.2.1",
"ts-mixer": "^6.0.1"
},
"engines": {
"node": ">= 14.0.0"
"node": ">= 14.19"
},
"browserslist": [
"defaults",
Expand Down
Loading

0 comments on commit 58ef172

Please sign in to comment.