277b732a43
Code Quality / Python Lint & Format (push) Has been cancelled
Code Quality / Python Tests (push) Has been cancelled
Code Quality / JavaScript/TypeScript Lint (advisory) (push) Has been cancelled
Security Scan / CodeQL Analysis (javascript-typescript) (push) Has been cancelled
Security Scan / CodeQL Analysis (python) (push) Has been cancelled
Security Scan / Dependency Review (push) Has been cancelled
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true,
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
|
|
"no-console": "off",
|
|
"eqeqeq": ["error", "always"],
|
|
"curly": ["error", "all"],
|
|
"no-eval": "error",
|
|
"no-implied-eval": "error",
|
|
"no-new-func": "error",
|
|
"no-script-url": "error",
|
|
"prefer-const": "warn",
|
|
"no-var": "error",
|
|
"no-throw-literal": "error",
|
|
"no-return-await": "warn",
|
|
"require-await": "warn"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.ts", "**/*.tsx"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"plugins": ["@typescript-eslint"],
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
|
|
"@typescript-eslint/explicit-function-return-type": "warn",
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-non-null-assertion": "warn"
|
|
}
|
|
}
|
|
],
|
|
"ignorePatterns": [
|
|
"node_modules/",
|
|
"dist/",
|
|
"build/",
|
|
"*.min.js"
|
|
]
|
|
}
|