Skip to content

Commit

Permalink
fix - eslint json roles -> js (#85)
Browse files Browse the repository at this point in the history
* Update access to env

* configure rate limiter to ignore the SSE requests

* verify user authorities and restrictions

* update access to env variables

* fix - adapt testing to new functionalities

* fix - env variables security

* extra fix

* fix eslint json -> js
  • Loading branch information
bellaabdelouahab committed Jul 28, 2023
1 parent f0674fb commit 00c882e
Showing 1 changed file with 69 additions and 6 deletions.
75 changes: 69 additions & 6 deletions backend-app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,75 @@ module.exports = {
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'error',
'no-console': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',

//...rules
'accessor-pairs': 'error',
'array-callback-return': 'error',
'block-scoped-var': 'error',
'class-methods-use-this': 'error',
complexity: ['error', 10],
'consistent-return': 'error',
'default-case': 'error',
'dot-location': ['error', 'property'],
'dot-notation': 'error',
eqeqeq: 'error',
'guard-for-in': 'error',
'max-classes-per-file': ['error', 1],
'no-alert': 'error',
'no-caller': 'error',
'no-case-declarations': 'error',
'no-div-regex': 'error',
'no-else-return': 'error',
'no-empty-function': 'error',
'no-empty-pattern': 'error',
'no-eq-null': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-extra-label': 'error',
'no-fallthrough': 'error',
'no-floating-decimal': 'error',
'no-global-assign': 'error',
'no-native-reassign': 'error',
'no-implied-eval': 'error',
'no-invalid-this': 'error',
'no-iterator': 'error',
'no-labels': 'error',
'no-lone-blocks': 'error',
'no-loop-func': 'error',
'no-multi-spaces': 'error',
'no-multi-str': 'error',
'no-new': 'error',
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-octal-escape': 'error',
'no-proto': 'error',
'no-redeclare': 'error',
'no-return-assign': 'error',
'no-return-await': 'error',
'no-script-url': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
'no-sequences': 'error',
'no-throw-literal': 'error',
'no-unmodified-loop-condition': 'error',
'no-unused-expressions': 'error',
'no-unused-labels': 'error',
'no-useless-call': 'error',
'no-useless-concat': 'error',
'no-useless-escape': 'error',
'no-useless-return': 'error',
'no-void': 'error',
'no-warning-comments': 'warn',
'no-with': 'error',
'prefer-promise-reject-errors': 'error',
radix: 'error',
'require-await': 'error',
'vars-on-top': 'error',
'wrap-iife': ['error', 'inside'],
yoda: 'error',
'no-console': 'warn',
'no-var': 'error',
'no-unused-vars': 'warn',
'arrow-body-style': ['error', 'as-needed'],
},
parserOptions: {
ecmaVersion: 2021,
Expand Down

0 comments on commit 00c882e

Please sign in to comment.