Skip to content

chore(deps-dev): bump typescript-eslint from 7.16.0 to 8.5.0 #60

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

Merged
merged 5 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -29,6 +29,7 @@ jobs:
- run: npm ci
- run: npm test
- run: npm run eslint
- run: npm run tseslint

# Checks code formatting, fails if there are changes after applying prettier.
# Based on this example here:
Expand Down
35 changes: 6 additions & 29 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
// @ts-check

import eslint from '@eslint/js';
import stylistic from '@stylistic/eslint-plugin';
import stylisticTs from '@stylistic/eslint-plugin-ts';
import tseslint from 'typescript-eslint';

export default tseslint.config(
export default [
// Basic eslint rules
eslint.configs.recommended,
// Codestyle rules for JS
stylistic.configs["recommended-flat"],
// Codestyle rules for TS
stylisticTs.configs["all-flat"],
// Eslint rules for TS
...tseslint.configs.recommended,
{
languageOptions: {
// Add node globals to ignore undefined
Expand All @@ -25,28 +17,17 @@ export default tseslint.config(
"process": false,
"require": false,
"setTimeout": false,
"exports": false,
}
},
rules: {
// Unused vars reported as error
"@typescript-eslint/no-unused-vars": [
"error",
{
// Do not report unused function arguments
"args": "none",
}
],
// Required to import JS modules
"@typescript-eslint/no-var-requires": "off",
// Allow unused vars
"no-unused-vars": ["off", 0],
// Allow "exports"
"no-undef": ["off", 0],
// Always require semicolons
"@stylistic/semi": ["error", "always"],
// Stick to double quotes
"@stylistic/quotes": ["error", "double"],
// Always indent with two spaces
'@stylistic/ts/indent': ['error', 2],
// Enforce curly braces spacing
"@stylistic/ts/object-curly-spacing": ["error", "always"],
// Enforce "one true brace style"
"@stylistic/brace-style": ["error", "1tbs"],
// Enforce parenthesis in functions: "(a) => a"
Expand All @@ -56,10 +37,6 @@ export default tseslint.config(
"@stylistic/no-mixed-operators": ["off", 0],
"@stylistic/operator-linebreak": ["off", 0],
"@stylistic/quote-props": ["off", 0],
"@stylistic/ts/comma-dangle": ["off", 0],
"@stylistic/ts/no-extra-parens": ["off", 0],
"@stylistic/ts/quote-props": ["off", 0],
"@stylistic/ts/space-before-function-paren": ["off", 0],
}
}
);
];
Loading