Skip to content

Commit

Permalink
Add eslintrc file to ui_framework, for Jest-specific rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Mar 28, 2017
1 parent 2187260 commit 94daf03
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
"enzyme-to-json": "1.4.5",
"eslint": "3.11.1",
"eslint-plugin-babel": "4.0.0",
"eslint-plugin-jest": "19.0.1",
"eslint-plugin-mocha": "4.7.0",
"eslint-plugin-react": "6.10.3",
"event-stream": "3.3.2",
Expand Down
13 changes: 13 additions & 0 deletions ui_framework/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"plugins": [
"jest"
],
"rules": {
"jest/no-disabled-tests": "error",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error"
},
"env": {
"jest/globals": true
}
}
2 changes: 0 additions & 2 deletions ui_framework/components/button/button.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable no-undef */

import React from 'react';
import { render, shallow } from 'enzyme';
import sinon from 'sinon';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable no-undef */

import React from 'react';
import { render } from 'enzyme';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable no-undef */

import React from 'react';
import {
render,
Expand Down
2 changes: 0 additions & 2 deletions ui_framework/components/button/link_button.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable no-undef */

import React from 'react';
import { render } from 'enzyme';

Expand Down
2 changes: 0 additions & 2 deletions ui_framework/components/button/submit_button.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable no-undef */

import React from 'react';
import { render, shallow } from 'enzyme';
import sinon from 'sinon';
Expand Down

0 comments on commit 94daf03

Please sign in to comment.