diff --git a/.eslintignore b/.eslintignore index be871474495..140eca961b1 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,5 +2,3 @@ node_modules build lib esm -*.json -*.svg \ No newline at end of file diff --git a/package.json b/package.json index c90bc9ca31a..ac1c3fc5a1d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test": "yarn -s test-unit && yarn -s test-e2e", "test-ci": "yarn -s test-unit-ci && yarn -s test-e2e", "doc": "cd docs && jekyll server . --watch", - "lint": "eslint \"./packages/**/src/**/*.*\" \"./examples/**/src/**/*.*\" \"./cypress/**/*.*\"", + "lint": "eslint \"./packages/**/src/**/*.{js,ts,tsx}\" \"./examples/**/src/**/*.{js,ts,tsx}\" \"./cypress/**/*.{js,ts,tsx}\"", "prettier": "prettier --config ./.prettierrc.js --write --list-different \"packages/*/src/**/*.{js,json,ts,tsx,css,md}\" \"examples/*/src/**/*.{js,ts,json,tsx,css,md}\" \"cypress/**/*.{js,ts,json,tsx,css,md}\"", "run-simple": "cd examples/simple && yarn -s start", "run-tutorial": "yarn run -s build && cd examples/tutorial && yarn -s start", diff --git a/packages/ra-core/src/reducer/admin/resource/data.spec.ts b/packages/ra-core/src/reducer/admin/resource/data.spec.ts index 0a936557067..a130493fe82 100644 --- a/packages/ra-core/src/reducer/admin/resource/data.spec.ts +++ b/packages/ra-core/src/reducer/admin/resource/data.spec.ts @@ -1,11 +1,11 @@ import assert from 'assert'; import { DELETE, DELETE_MANY } from '../../../dataFetchActions'; - -jest.mock('../../../util/getFetchedAt'); import getFetchedAt from '../../../util/getFetchedAt'; import dataReducer, { addRecords } from './data'; +jest.mock('../../../util/getFetchedAt'); + describe('data addRecordsFactory', () => { it('should call getFetchedAt with newRecords ids and oldRecordFetchedAt and return records returned by getFetchedAt', () => { const newRecords = [{ id: 'record1' }, { id: 'record2' }];