Skip to content

Commit

Permalink
Fix: eslint errors and add linter scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
georgipavlov-7DIGIT committed Sep 13, 2023
1 parent ac1d238 commit 46d4041
Show file tree
Hide file tree
Showing 26 changed files with 2,036 additions and 808 deletions.
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"extends": "eslint:recommended",
"env": {
"commonjs": true,
Expand All @@ -8,6 +8,7 @@
"browser": false
},
"parserOptions": {
"requireConfigFile": false,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": false
Expand All @@ -21,7 +22,7 @@
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-console": 0,
"quotes": ["error", "single"],
"quotes": ["error", "double"],
"semi": ["error", "always"]
}
}
4 changes: 2 additions & 2 deletions config/admin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = ({ env }) => ({
auth: {
secret: env('ADMIN_JWT_SECRET'),
secret: env("ADMIN_JWT_SECRET"),
},
apiToken: {
salt: env('API_TOKEN_SALT'),
salt: env("API_TOKEN_SALT"),
},
});
Loading

0 comments on commit 46d4041

Please sign in to comment.