Skip to content

Commit

Permalink
chore(package): upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximiliano Forlenza committed Dec 12, 2024
1 parent fbee048 commit 52bfab5
Show file tree
Hide file tree
Showing 36 changed files with 5,524 additions and 8,774 deletions.
54 changes: 0 additions & 54 deletions .eslintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit "${1}"
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.15
20.18
85 changes: 85 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import react from 'eslint-plugin-react';
import jest from 'eslint-plugin-jest';
import globals from 'globals';
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
});

export default [
...compat.extends(
'airbnb',
'eslint:recommended',
'plugin:react/recommended',
'plugin:jest/recommended',
'plugin:storybook/recommended',
'prettier'
),
{
plugins: {
react,
jest
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
...jest.environments.globals.globals,
React: true,
render: true,
window: true,
localStorage: true
},

ecmaVersion: 'latest',
sourceType: 'module',

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

settings: {
'import/resolver': {
alias: {
extensions: ['.js'],
map: [['@', './src']]
}
}
},

rules: {
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'object-curly-spacing': ['error', 'never'],
'eol-last': ['error'],
'comma-dangle': ['error', 'never'],

'react/jsx-filename-extension': [
1,
{
extensions: ['.js', '.jsx']
}
],

'arrow-parens': 'off',
'no-underscore-dangle': 'off',
'object-curly-newline': 'off'
}
}
];
Loading

0 comments on commit 52bfab5

Please sign in to comment.