Skip to content

Commit

Permalink
Fix lint command
Browse files Browse the repository at this point in the history
  • Loading branch information
Gildas Garcia authored and djhi committed Jun 12, 2019
1 parent 85870db commit 1a72c85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ node_modules
build
lib
esm
*.json
*.svg
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-core/src/reducer/admin/resource/data.spec.ts
Original file line number Diff line number Diff line change
@@ -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' }];
Expand Down

0 comments on commit 1a72c85

Please sign in to comment.