Skip to content

Commit

Permalink
bring eslint back
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Oct 17, 2023
1 parent 844b40c commit 16c6a1a
Show file tree
Hide file tree
Showing 6 changed files with 1,858 additions and 1,079 deletions.
53 changes: 53 additions & 0 deletions tooling/api/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"root": true,

"env": {
"node": true,
"jest": true
},

"parser": "@typescript-eslint/parser",

"extends": [
"standard-with-typescript",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
// TODO: make this work with typescript
// "plugin:node/recommended"
"prettier"
],

"plugins": ["@typescript-eslint", "node", "security"],

"parserOptions": {
"project": "./tsconfig.json"
},

"globals": {
"__statics": true,
"process": true
},

// add your custom rules here
"rules": {
"no-console": "error",
"no-debugger": "error",
"no-process-exit": "off",
"security/detect-non-literal-fs-filename": "warn",
"security/detect-unsafe-regex": "error",
"security/detect-buffer-noassert": "error",
"security/detect-child-process": "warn",
"security/detect-disable-mustache-escape": "error",
"security/detect-eval-with-expression": "error",
"security/detect-no-csrf-before-method-override": "error",
"security/detect-non-literal-regexp": "error",
"security/detect-non-literal-require": "warn",
"security/detect-object-injection": "warn",
"security/detect-possible-timing-attacks": "error",
"security/detect-pseudoRandomBytes": "error",
"space-before-function-paren": "off",
"@typescript-eslint/default-param-last": "off",
"@typescript-eslint/strict-boolean-expressions": 0,
"no-return-await": "warn",
"@typescript-eslint/return-await": "off"
}
}
56 changes: 0 additions & 56 deletions tooling/api/.eslintrc.cjs

This file was deleted.

27 changes: 17 additions & 10 deletions tooling/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,24 @@
"format:check": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore --ignore-path ../../.prettierignore"
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@types/node": "^20.8.6",
"eslint": "^8.51.0",
"fast-glob": "^3.3.1",
"@rollup/plugin-terser": "0.4.4",
"@rollup/plugin-typescript": "11.1.5",
"@types/node": "20.8.6",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"eslint": "8.46.0",
"eslint-config-prettier": "8.10.0",
"eslint-config-standard-with-typescript": "34.0.1",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-n": "15.7.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-security": "1.7.1",
"fast-glob": "3.3.1",
"prettier": "2.8.8",
"rollup": "^4.1.4",
"typescript": "5.2.2"
"rollup": "4.1.4",
"tslib": "2.6.2",
"typescript": "5.1.6"
},
"exports": {
"./package.json": "./package.json"
Expand All @@ -46,8 +56,5 @@
"node": ">= 14.6.0",
"npm": ">= 6.6.0",
"yarn": ">= 1.19.1"
},
"dependencies": {
"tslib": "^2.6.2"
}
}
Loading

0 comments on commit 16c6a1a

Please sign in to comment.