Skip to content

Commit

Permalink
Merge pull request #11 from spaceagetv/feat/electron-33
Browse files Browse the repository at this point in the history
feat: Electron 33
  • Loading branch information
jjeff authored Dec 5, 2024
2 parents b218d27 + c818ebf commit 19f5a15
Show file tree
Hide file tree
Showing 8 changed files with 7,085 additions and 9,657 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.js

This file was deleted.

20 changes: 20 additions & 0 deletions .npm-upgrade.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"ignore": {
"chai": {
"versions": "^5",
"reason": "Chai 5 is ESM"
},
"@types/chai": {
"versions": "^5",
"reason": "ESM"
},
"chai-as-promised": {
"versions": "^8",
"reason": "ESM"
},
"@types/chai-as-promised": {
"versions": "^8",
"reason": "ESM"
}
}
}
57 changes: 57 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import { FlatCompat } from '@eslint/eslintrc'
import js from '@eslint/js'
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
import prettier from 'eslint-plugin-prettier'
import globals from 'globals'
import path from 'node:path'
import { fileURLToPath } from 'node:url'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [
{
ignores: ['**/node_modules/', '**/dist/', '**/coverage/'],
},
...compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
),
{
plugins: {
'@typescript-eslint': typescriptEslint,
prettier,
},

languageOptions: {
globals: {
...globals.node,
},

parser: tsParser,
ecmaVersion: 5,
sourceType: 'module',
},

rules: {
'prettier/prettier': 'error',
},
},
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
},
languageOptions: {
parser: tsParser,
},
},
]
Loading

0 comments on commit 19f5a15

Please sign in to comment.