Skip to content

Commit

Permalink
Upgrade to ESLint v9 (#381)
Browse files Browse the repository at this point in the history
### Changelog
None

### Docs

None

### Description

🫸🪨⛰️
  • Loading branch information
jtbandes authored Oct 30, 2024
1 parent 51be09a commit 78251f0
Show file tree
Hide file tree
Showing 5 changed files with 593 additions and 857 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"eslint.options": {
"reportUnusedDisableDirectives": "error"
},
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
Expand Down
32 changes: 32 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// @ts-check

const foxglove = require("@foxglove/eslint-plugin");
const globals = require("globals");
const tseslint = require("typescript-eslint");

module.exports = tseslint.config(
{
ignores: ["**/dist"],
},
...foxglove.configs.base,
...foxglove.configs.jest,
{
languageOptions: {
globals: {
...globals.node,
},
},
},
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parserOptions: {
project: "tsconfig.json",
},
},
},
...foxglove.configs.typescript.map((config) => ({
...config,
files: ["**/*.ts", "**/*.tsx"],
})),
);
19 changes: 6 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,24 @@
"clean": "rimraf dist *.tsbuildinfo",
"prepack": "tsc -b tsconfig.json tsconfig.cjs.json",
"build": "tsc -b tsconfig.json tsconfig.cjs.json",
"lint": "eslint --report-unused-disable-directives --fix .",
"lint:ci": "eslint --report-unused-disable-directives .",
"lint": "eslint --fix .",
"lint:ci": "eslint .",
"test": "jest"
},
"dependencies": {
"tslib": "^2.8.0"
},
"devDependencies": {
"@foxglove/eslint-plugin": "1.0.1",
"@foxglove/eslint-plugin": "2.0.0",
"@foxglove/tsconfig": "2.0.0",
"@types/jest": "29.5.14",
"@typescript-eslint/eslint-plugin": "8.12.2",
"@typescript-eslint/parser": "8.12.2",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-es": "4.1.0",
"eslint-plugin-filenames": "1.3.2",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jest": "28.8.3",
"eslint-plugin-prettier": "5.2.1",
"eslint": "9.13.0",
"jest": "29.7.0",
"prettier": "3.3.3",
"rimraf": "6.0.1",
"ts-jest": "29.2.5",
"typescript": "5.6.3"
"typescript": "5.6.3",
"typescript-eslint": "8.12.2"
},
"packageManager": "yarn@4.1.1"
}
Loading

0 comments on commit 78251f0

Please sign in to comment.