Skip to content

Commit

Permalink
Merge pull request #21 from leoferreiralima/refactor/tests
Browse files Browse the repository at this point in the history
Refactor/tests
  • Loading branch information
leoferreiralima authored Sep 26, 2023
2 parents 1c6beb9 + eb41510 commit ebbd0e2
Show file tree
Hide file tree
Showing 25 changed files with 1,430 additions and 355 deletions.
42 changes: 40 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module.exports = {
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
],
overrides: [
{
Expand All @@ -24,6 +26,42 @@ module.exports = {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {},
plugins: ['@typescript-eslint', 'import'],
rules: {
'import/order': [
'error',
{
groups: [
'builtin',
'external',
'internal',
'sibling',
'parent',
'object',
'type',
],
pathGroups: [
{
pattern: '@/**',
group: 'internal',
},
{
pattern: '@test/**',
group: 'internal',
},
],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
'newlines-between': 'always',
},
],
},
settings: {
'import/resolver': {
typescript: true,
node: true,
},
},
};
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"singleQuote": true
}
}
13 changes: 11 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tabnews-sdk",
"version": "1.0.0",
"description": "Node.js library to interacte with TabNews API",
"description": "Node.js library to interact with TabNews API",
"main": "build/src/index.js",
"typings": "build/src/index.d.ts",
"files": [
Expand Down Expand Up @@ -44,6 +44,8 @@
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
Expand Down
Loading

0 comments on commit ebbd0e2

Please sign in to comment.