Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #214

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

45 changes: 0 additions & 45 deletions .eslintrc.cjs

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Node.js dependencies
run: npm ci
- name: Run linters
uses: wearerequired/lint-action@v1
uses: wearerequired/lint-action@v2
with:
eslint: true
eslint_args: '-c .eslintrc.cjs'
eslint_extensions: js,ts,cjs
eslint_args: '-c eslint.config.js'
eslint_extensions: js,ts
6 changes: 3 additions & 3 deletions .prettierrc.cjs → .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
export default {
semi: false,
trailingComma: 'es5',
singleQuote: true,
printWidth: 120,
tabWidth: 2
};
tabWidth: 2,
}
54 changes: 0 additions & 54 deletions docs/RPG_wrap_from_Firynth.txt

This file was deleted.

40 changes: 40 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import globals from 'globals'
import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'
import prettierRecommended from 'eslint-plugin-prettier/recommended'

/** @type {import('eslint').Linter.Config[]} */
export default [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
prettierRecommended,
// {
// files: [
// "**/*.{js,mjs,cjs,ts}"
// ]
// },
{
languageOptions: {
globals: globals.browser,
},
},
{
rules: {
'no-unused-vars': ['off'],
'no-useless-escape': ['off'],
//"@typescript-eslint/no-unused-vars": ["off"],
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'all',
varsIgnorePattern: '^[_A-Z]', // Ignore underscores variables and classes which start with captial letter
argsIgnorePattern: '^_',
ignoreClassWithStaticInitBlock: true,
},
],
},
},
{
ignores: ['prisma/*', 'node_modules/*', 'build/*'],
},
]
Loading
Loading