Skip to content

Commit

Permalink
Merge pull request #5 from Poltergeist/renovate/major-all-npm-depende…
Browse files Browse the repository at this point in the history
…ncies

chore(deps): update all npm dependencies (major)
  • Loading branch information
Poltergeist authored Sep 10, 2024
2 parents 91922b9 + 94a579c commit 07fd422
Show file tree
Hide file tree
Showing 6 changed files with 3,384 additions and 3,956 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ jobs:
- name: Run tests
run: npm run test

- name: Check commits messages
uses: wagoid/commitlint-github-action@v5
# - name: Check commits messages
# uses: wagoid/commitlint-github-action@v5
4 changes: 1 addition & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

pnpm commitlint --edit $1
#npm run commitlint --edit $1
4 changes: 1 addition & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

pnpm lint-staged
#npm run lint-staged
105 changes: 105 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
import {
fixupConfigRules,
fixupPluginRules,
includeIgnoreFile,
} from '@eslint/compat';
import react from 'eslint-plugin-react';
import jsxA11Y from 'eslint-plugin-jsx-a11y';
import prettier from 'eslint-plugin-prettier';
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

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,
});
const gitignorePath = path.resolve(__dirname, '.gitignore');

export default [
...fixupConfigRules(
compat.extends(
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'standard',
'plugin:prettier/recommended',
),
),
{
plugins: {
react: fixupPluginRules(react),
'jsx-a11y': jsxA11Y,
prettier: fixupPluginRules(prettier),
'@typescript-eslint': typescriptEslint,
},

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

parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',

parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},

settings: {
'import/resolver': {
typescript: {
project: '.',
},
},

react: {
version: 'detect',
},
},

rules: {
'prettier/prettier': 'error',
'react/prop-types': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-props-no-spreading': 'off',
'import/prefer-default-export': 'off',

'import/extensions': [
'error',
'ignorePackages',
{
ts: 'never',
tsx: 'never',
js: 'never',
jsx: 'never',
},
],

'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
quotes: 'off',

'@typescript-eslint/no-unused-vars': [
2,
{
argsIgnorePattern: '^_',
},
],
},
},
includeIgnoreFile(gitignorePath),
];
Loading

0 comments on commit 07fd422

Please sign in to comment.