-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1048 from amvanbaren/cve-cross-spawn-webui
Fix cross-spawn vulnerability
- Loading branch information
Showing
7 changed files
with
697 additions
and
560 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
import react from "eslint-plugin-react"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import stylistic from '@stylistic/eslint-plugin' | ||
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 [...compat.extends( | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
), { | ||
files: ["**/*.ts", "**/*.tsx"], | ||
plugins: { | ||
"@typescript-eslint": typescriptEslint, | ||
"@stylistic": stylistic, | ||
react, | ||
}, | ||
|
||
languageOptions: { | ||
parser: tsParser, | ||
}, | ||
|
||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
|
||
rules: { | ||
"@typescript-eslint/ban-types": "off", | ||
"@/brace-style": ["warn", "1tbs"], | ||
|
||
"@/comma-spacing": ["warn", { | ||
before: false, | ||
after: true, | ||
}], | ||
|
||
"@/func-call-spacing": ["warn", "never"], | ||
|
||
"@/keyword-spacing": ["warn", { | ||
before: true, | ||
after: true, | ||
}], | ||
|
||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-inferrable-types": "off", | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@/semi": ["error", "always"], | ||
"@stylistic/type-annotation-spacing": "warn", | ||
"react/prop-types": "off", | ||
"array-bracket-spacing": ["warn", "never"], | ||
|
||
"arrow-spacing": ["warn", { | ||
before: true, | ||
after: true, | ||
}], | ||
|
||
"computed-property-spacing": ["warn", "never"], | ||
"jsx-quotes": ["error", "prefer-single"], | ||
|
||
"key-spacing": ["warn", { | ||
beforeColon: false, | ||
afterColon: true, | ||
}], | ||
|
||
"linebreak-style": ["warn", "unix"], | ||
"new-parens": "error", | ||
"no-trailing-spaces": "warn", | ||
"no-whitespace-before-property": "warn", | ||
"object-curly-spacing": ["warn", "always"], | ||
|
||
"semi-spacing": ["warn", { | ||
before: false, | ||
after: true, | ||
}], | ||
|
||
"space-before-blocks": ["warn", "always"], | ||
"space-in-parens": ["warn", "never"], | ||
"space-infix-ops": "warn", | ||
"space-unary-ops": "warn", | ||
|
||
"switch-colon-spacing": ["warn", { | ||
before: false, | ||
after: true, | ||
}], | ||
}, | ||
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.