Skip to content

Commit

Permalink
Migrate to ESLint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed May 1, 2024
1 parent c20193d commit c8e3238
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 20 deletions.
17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

19 changes: 19 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import globals from "globals"
import js from "@eslint/js"

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
js.configs.recommended,
{
languageOptions: {
sourceType: "commonjs",
globals: globals.node,
},
},
{
files: ["**/*.mjs"],
languageOptions: {
sourceType: "module",
},
}
]
20 changes: 17 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
},
"homepage": "https://github.com/cylc/cylc-textmate-grammar#readme",
"devDependencies": {
"@eslint/js": "^9.1.1",
"eslint": "^9.1.1",
"globals": "^15.1.0",
"vscode-tmgrammar-test": "^0.1.1"
}
}

0 comments on commit c8e3238

Please sign in to comment.