Skip to content

Commit

Permalink
Removed last vestige of tslint, replaced with eslint header plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Jun 21, 2024
1 parent 8b6fa3f commit cab9f72
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 122 deletions.
27 changes: 8 additions & 19 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
project: "tsconfig.json",
sourceType: "module",
},
plugins: ["eslint-plugin-jsdoc", "@typescript-eslint", "@typescript-eslint/tslint", "prettier"],
plugins: ["eslint-plugin-jsdoc", "@typescript-eslint", "prettier", "header"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
rules: {
// Recommended rules with errors
Expand Down Expand Up @@ -88,24 +88,14 @@ module.exports = {
"prefer-arrow-callback": ["error", { allowNamedFunctions: true }],
"prettier/prettier": "error",
"use-isnan": "error",
"@typescript-eslint/tslint/config": [
"error",
{
rules: {
"file-header": [
true,
"([Cc]opyright ([(][Cc][)]))|(bin/env)", // cspell: disable-line
],
"import-spacing": true,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
],
"header/header": [
2, // error
"block",
[
{
pattern: "([Cc]opyright ([(][Cc][)]))|(bin/env)", // cspell: disable-line
},
},
],
],
},
overrides: [
Expand All @@ -120,7 +110,6 @@ module.exports = {
// rules that depend on type information (and therefore
// parserOptions.project)
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/tslint/config": "off",
},
},
],
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,20 @@
"@types/node": "^18.15.5",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/eslint-plugin-tslint": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"bufferutil": "^4.0.7",
"canvas": "^2.10.2",
"cli-color": "^2.0.4",
"cspell": "^8.3.2",
"dts-bundle-generator": "^9.5.1",
"eslint": "^8.56.0",
"eslint": "^8.56.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsdoc": "^46.9.1",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-unicorn": "^49.0.0",
"fork-ts-checker-webpack-plugin": "^9.0.0",
"husky": "^8.0.1",
Expand All @@ -87,7 +87,6 @@
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tslint": "^6.1.3",
"typedoc": "^0.25.13",
"typedoc-plugin-missing-exports": "^2.3.0",
"typescript": "=5.5.2",
Expand Down
Loading

0 comments on commit cab9f72

Please sign in to comment.