Skip to content

Commit

Permalink
rem jest-related stuff from eslint, updated 1 dep
Browse files Browse the repository at this point in the history
  • Loading branch information
azakharo committed Feb 9, 2025
1 parent 187f60e commit 55fc1e1
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 37 deletions.
24 changes: 0 additions & 24 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:eslint-comments/recommended',
'plugin:jest/recommended',
'plugin:promise/recommended',
'plugin:unicorn/recommended',
'prettier',
Expand All @@ -21,7 +20,6 @@ module.exports = {
'eslint-comments',
'simple-import-sort',
'import',
'jest',
'jsx-a11y',
'promise',
'react',
Expand All @@ -32,7 +30,6 @@ module.exports = {
env: {
node: true,
browser: true,
jest: true,
},
settings: {
react: {
Expand Down Expand Up @@ -127,19 +124,6 @@ module.exports = {
'no-return-await': 'error',
},
overrides: [
{
files: [
'**/*.test.js',
'**/*.test.jsx',
'**/*.test.tsx',
'**/*.spec.js',
'**/*.spec.jsx',
'**/*.spec.tsx',
],
env: {
jest: true,
},
},
{
files: ['*.js'],
rules: {
Expand All @@ -148,14 +132,6 @@ module.exports = {
},
},
/////////////////////////////////////////////
// Integration test may have no any expect()
{
files: ['*.spec.tsx', 'spec.tsx'],
rules: {
'jest/expect-expect': 'off',
},
},
/////////////////////////////////////////////
// override "simple-import-sort" config
{
files: ['*.js', '*.jsx', '*.ts', '*.tsx'],
Expand Down
78 changes: 66 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-prettier": "5.2.3",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-react": "7.37.3",
"eslint-plugin-react-hooks": "4.6.2",
Expand Down

0 comments on commit 55fc1e1

Please sign in to comment.