Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.17.0 to 8.2.0 in /website #2458

41 changes: 9 additions & 32 deletions website/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
project: 'tsconfig.eslint.json',
sourceType: 'module',
tsConfigRootDir: __dirname,
warnOnUnsupportedTypeScriptVersion: true,
},
plugins: [
'eslint-plugin-import',
Expand Down Expand Up @@ -60,33 +61,6 @@ module.exports = {
default: 'array',
},
],
'@typescript-eslint/ban-types': [
'error',
{
types: {
'Object': {
message: 'Avoid using the `Object` type. Did you mean `object`?',
},
'Function': {
message: 'Avoid using the `Function` type. Prefer a specific function type, like `() => void`.',
},
'Boolean': {
message: 'Avoid using the `Boolean` type. Did you mean `boolean`?',
},
'Number': {
message: 'Avoid using the `Number` type. Did you mean `number`?',
},
'String': {
message: 'Avoid using the `String` type. Did you mean `string`?',
},
'Symbol': {
message: 'Avoid using the `Symbol` type. Did you mean `symbol`?',
},
'{}': false,
'object': false,
},
},
],
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/dot-notation': 'error',
'@typescript-eslint/indent': 'off',
Expand Down Expand Up @@ -149,6 +123,7 @@ module.exports = {
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/only-throw-error': 'error',
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-namespace-keyword': 'error',
Expand All @@ -157,6 +132,13 @@ module.exports = {
'@typescript-eslint/quotes': 'off',
'@typescript-eslint/restrict-plus-operands': 'error',
'@typescript-eslint/no-unnecessary-condition': 'error',
'no-unused-vars': 'off', //Note: you must disable base rule if @typescript-eslint/no-unused-vars is enabled
'@typescript-eslint/no-unused-vars': [
'error',
{
caughtErrors: 'none',
},
],
'@typescript-eslint/semi': ['off', null],
'@typescript-eslint/strict-boolean-expressions': [
'error',
Expand Down Expand Up @@ -237,11 +219,6 @@ module.exports = {
'no-sequences': 'error',
'no-sparse-arrays': 'error',
'no-template-curly-in-string': 'error',
// It is recommended to turn of the JavaScript version if you use
// the TypeScript version:
// https://typescript-eslint.io/rules/no-throw-literal/#how-to-use
'no-throw-literal': 'off',
'@typescript-eslint/no-throw-literal': 'error',
'no-trailing-spaces': 'off',
'no-undef-init': 'error',
'no-unsafe-finally': 'error',
Expand Down
2 changes: 2 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ justfile
/tests/config/runtime_config.json

/tests/config/*.yaml

.eslintcache
Loading
Loading