Skip to content

Commit

Permalink
fix(NI): ESLint errors (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsousa12 authored Oct 19, 2022
1 parent 860982f commit aaacff7
Show file tree
Hide file tree
Showing 13 changed files with 2,748 additions and 2,661 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ node_modules
.env.staging

frontend/.vscode/


.idea/
5 changes: 2 additions & 3 deletions backend/.eslintrc.js → backend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const fs = require('fs');

const folders = fs
.readdirSync('src', { withFileTypes: true })
.readdirSync('./src', { withFileTypes: true })
.filter((dirent) => dirent.isDirectory())
.map((dirent) => dirent.name);

Expand All @@ -27,8 +26,8 @@ module.exports = {
jest: true,
es2021: true
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'no-console': 'error',
'no-underscore-dangle': 'off',
'class-methods-use-this': 'off',
'no-param-reassign': 'off',
Expand Down
2 changes: 1 addition & 1 deletion backend/jest-e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"<rootDir>/coverage/",
".module.ts",
"main.ts",
".eslintrc.js",
".eslintrc.cjs",
"jest.config.js"
]
}
2 changes: 1 addition & 1 deletion backend/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
'<rootDir>/coverage/',
'.module.ts',
'main.ts',
'.eslintrc.js',
'.eslintrc.cjs',
'jest.config.js',
'jest.config.ts',
'configuration.ts',
Expand Down
Loading

0 comments on commit aaacff7

Please sign in to comment.