Skip to content
Open
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
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

63 changes: 0 additions & 63 deletions .eslintrc.js

This file was deleted.

62 changes: 62 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import { defineConfig, globalIgnores } from "eslint/config";

import eslint from "@eslint/js";
import tseslint from 'typescript-eslint';

export default defineConfig([
{
languageOptions: {
parserOptions: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be setting the parser?

Suggested change
parserOptions: {
parser: ...,
parserOptions: {

project: './tsconfig.eslint.json',
tsconfigRootDir: import.meta.dirname,
},
}
},
{ files: ['**/*.{ts,tsx}'], },
globalIgnores([
"**/node_modules",
"dist",
"coverage",
"tests",
"ui-tests",
"**/build/",
"examples/",
"packages/base/rasterlayer_gallery",
".nx",
"**/*.js",
"**/*.d.ts"
]),
eslint.configs.recommended,
tseslint.configs.recommended,
{
rules: {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/naming-convention": [
"error",
{
selector: "interface",
format: ["PascalCase"],
custom: {
regex: "^I[A-Z]",
match: true,
},
},
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
args: "none",
varsIgnorePattern: "^_$"
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-use-before-define": "off",
"curly": ["error", "all"],
"eqeqeq": "error",
"prefer-arrow-callback": "error",
"no-duplicate-imports": "error",
},
},
]);
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"bump:js:version": "lerna version --no-push --force-publish --no-git-tag-version --yes",
"clean": "lerna run clean",
"clean:all": "lerna run clean:all",
"eslint": "eslint . --ext .ts,.tsx --cache --fix",
"eslint": "eslint . --cache --fix",
"eslint:check": "eslint . --ext .ts,.tsx",
"prettier": "prettier --write \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md,.yml}\"",
"prettier:check": "prettier --check \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md,.yml}\"",
Expand All @@ -51,6 +51,7 @@
"watch": "lerna watch -- lerna run build --scope=\\$LERNA_PACKAGE_NAME --include-dependents",
"build:lab": "lerna run"
},
"type": "module",
"resolutions": {
"@jupyterlab/apputils": "^4.0.0",
"@lumino/coreutils": "^2.0.0",
Expand All @@ -59,18 +60,18 @@
},
"devDependencies": {
"@types/webpack-env": "^1.18.5",
"@typescript-eslint/eslint-plugin": "5.55.0",
"@typescript-eslint/parser": "5.55.0",
"copy-webpack-plugin": "^10.0.0",
"eslint": "^8.36.0",
"eslint": "^9.35.0",
"@eslint/js": "^9.35.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "4.4.4",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.0.1",
"lerna": "^8.1.9",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"rimraf": "^3.0.2",
"typescript": "^5",
"rimraf": "^6.0.1",
"typescript": "^5.9.2",
"typescript-eslint": "^8.44.0",
"webpack": "^5.76.3"
}
}
Loading
Loading