Skip to content

Commit

Permalink
Merge pull request #365 from manuelosorio/chore/snyk-patches
Browse files Browse the repository at this point in the history
Manually add snyk security patches
  • Loading branch information
manuelosorio authored Sep 8, 2024
2 parents 88c790f + 5fb555e commit bbf20cf
Show file tree
Hide file tree
Showing 23 changed files with 97 additions and 165 deletions.
55 changes: 0 additions & 55 deletions .eslintrc

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions esbuild/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { Plugin } from 'esbuild';
import { definePlugin } from 'esbuild-plugin-define';
import { config } from 'dotenv';

const { PROD } = process.env;
if (PROD !== 'true') {
config({
Expand Down
56 changes: 56 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["projects/**/*", "dist/**/*", "node_modules/**/*", "**/*.js"],
}, ...compat.extends(
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
).map(config => ({
...config,
files: ["**/*.ts"],
})), {
files: ["**/*.ts"],

languageOptions: {
ecmaVersion: 5,
sourceType: "script",

parserOptions: {
project: ["tsconfig.json", "e2e/tsconfig.json"],
createDefaultProgram: true,
},
},

rules: {
"@angular-eslint/directive-selector": ["error", {
type: "attribute",
prefix: "app",
style: "camelCase",
}],

"@angular-eslint/component-selector": ["error", {
type: "element",
prefix: "app",
style: "kebab-case",
}],

"dot-notation": "off",
},
}, ...compat.extends("plugin:@angular-eslint/template/recommended").map(config => ({
...config,
files: ["**/*.html"],
})), {
files: ["**/*.html"],
rules: {},
}];
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"helmet": "^7.1.0",
"rxjs": "~7.5.0",
"socket.io-client": "^4.7.5",
"tslib": "^2.3.1",
"tslib": "^2.6.3",
"utf-8-validate": "^5.0.9",
"zone.js": "~0.14.10"
},
Expand All @@ -54,25 +54,23 @@
"@angular/cli": "^18.2.2",
"@angular/compiler-cli": "^18.2.2",
"@angular/language-service": "^18.2.2",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.10.0",
"@types/express": "^4.17.11",
"@types/jasminewd2": "~2.0.8",
"@types/jest": "^29.5.12",
"@types/node": "^16.18.23",
"@types/node": "^20.16.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"browser-sync": "^3.0.2",
"dotenv": "^16.4.5",
"esbuild-plugin-define": "^0.5.0",
"eslint": "^9.0.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"jest": "^29.7.0",
"jest-preset-angular": "^14.2.2",
"karma-coverage-istanbul-reporter": "~3.0.2",
"protractor": "~7.0.0",
"socket.io": "^4.7.5",
"ts-node": "~8.3.0",
"typescript": "~5.4.5"
"typescript": "~5.5.4"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit bbf20cf

Please sign in to comment.