Skip to content

Commit

Permalink
fix: temporarily disable linting of /test directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Jul 9, 2018
1 parent 74c5fcf commit bffe529
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"babel-plugin-transform-export-default-name": "^2.0.4",
"coveralls": "^3.0.2",
"eslint": "^5.1.0",
"eslint-config-canonical": "^10.3.2",
"eslint-config-canonical": "^11.0.0",
"flow-bin": "^0.76.0",
"flow-copy-source": "^2.0.1",
"husky": "^1.0.0-rc.13",
Expand Down Expand Up @@ -79,7 +79,7 @@
},
"scripts": {
"build": "rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist",
"lint": "eslint ./src ./test && flow",
"lint": "eslint ./src && flow",
"test": "ava --verbose --serial"
},
"version": "1.0.0"
Expand Down
18 changes: 9 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ import type {
UserConfigurationType
} from './types';

const builtInSubroutines = {
match: matchSubroutine,
nextUntil: nextUntilSubroutine,
read: readSubroutine,
remove: removeSubroutine,
select: selectSubroutine,
test: testSubroutine
};

export type {
SubroutineType
} from './types';
Expand All @@ -49,15 +58,6 @@ export {
testSubroutine
};

const builtInSubroutines = {
match: matchSubroutine,
nextUntil: nextUntilSubroutine,
read: readSubroutine,
remove: removeSubroutine,
select: selectSubroutine,
test: testSubroutine
};

export default (userConfiguration?: UserConfigurationType) => {
const configuration = createConfiguration(userConfiguration);

Expand Down
2 changes: 2 additions & 0 deletions src/types.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// @flow

/* eslint-disable import/exports-last */

// eslint-disable-next-line flowtype/no-weak-types
type ElementType = Object;

Expand Down

0 comments on commit bffe529

Please sign in to comment.