Skip to content

Commit

Permalink
Update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
cipi1965 committed Jul 24, 2024
1 parent ee04c2a commit 790ddd2
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 124 deletions.
29 changes: 0 additions & 29 deletions .eslintrc.js

This file was deleted.

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

export default tselint.config(
{
ignores: [".webpack/", ".vite/"],
},
{
extends: [
eslint.configs.recommended,
...tselint.configs.recommended,
],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
}
},
rules:
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx", ".vue"],
},
}
}
}
)

/*
export default [...fixupConfigRules(compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
)), {
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
parser: tsParser,
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx", ".vue"],
},
},
},
}];*/
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
"@electron-forge/plugin-auto-unpack-natives": "^7.4.0",
"@electron-forge/plugin-webpack": "^7.4.0",
"@electron-forge/publisher-github": "^7.4.0",
"@eslint/compat": "^1.1.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.7.0",
"@timfish/forge-externals-plugin": "^0.2.1",
"@types/eslint__js": "^8.42.3",
"@types/node": "^20",
"@types/node-osc": "^6.0.1",
"@typescript-eslint/eslint-plugin": "^7.13.0",
Expand All @@ -46,10 +50,11 @@
"css-minimizer-webpack-plugin": "^7.0.0",
"electron": "^31.0.1",
"electron-devtools-installer": "^3.2.0",
"eslint": "^8.57.0",
"eslint": "^9.7.0",
"eslint-plugin-import": "^2.27.5",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^9.0.0",
"globals": "^15.8.0",
"mini-css-extract-plugin": "^2.6.0",
"node-loader": "^2.0.0",
"postcss": "^8.4.12",
Expand All @@ -58,7 +63,8 @@
"tailwindcss": "^3.0.23",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"typescript": "^5.5.4",
"typescript-eslint": "^7.17.0",
"vue-loader": "^17.0.0",
"webpack": "^5.88.1"
},
Expand Down
Loading

0 comments on commit 790ddd2

Please sign in to comment.