Skip to content

Commit afeafb1

Browse files
authored
[dev-dep] - Update dev dependencies and fix lint issues. (#103)
* [dev-dep] - Update dev dependencies and fix lint issues. * downgrade version for eslint-plugin-import to satisfy npm v2 dependency resolution differences.
1 parent 7effd93 commit afeafb1

17 files changed

+25
-25
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
"test": "istanbul cover --dir reports/coverage node_modules/mocha/bin/_mocha tests/**/*.js -- --compilers js:babel-core/register --reporter dot"
2727
},
2828
"devDependencies": {
29-
"babel-cli": "^6.6.0",
30-
"babel-core": "^6.6.0",
31-
"babel-eslint": "^6.0.0",
32-
"babel-preset-es2015": "^6.6.0",
29+
"babel-cli": "^6.14.0",
30+
"babel-core": "^6.14.0",
31+
"babel-eslint": "^7.0.0",
32+
"babel-preset-es2015": "^6.14.0",
3333
"coveralls": "^2.11.8",
3434
"eslint": "^3.0.0",
35-
"eslint-config-airbnb-base": "^7.0.0",
36-
"eslint-plugin-import": "^1.8.1",
35+
"eslint-config-airbnb-base": "^8.0.0",
36+
"eslint-plugin-import": "^1.16.0",
3737
"istanbul": "^1.0.0-alpha.2",
3838
"mocha": "^3.0.0",
3939
"rimraf": "^2.5.2"

src/rules/aria-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// ----------------------------------------------------------------------------
99

1010
import { propName } from 'jsx-ast-utils';
11-
import ariaAttributes from '../util/attributes/ARIA';
11+
import ariaAttributes from '../util/attributes/ARIA.json';
1212
import getSuggestion from '../util/getSuggestion';
1313

1414
const errorMessage = (name) => {

src/rules/aria-proptypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// ----------------------------------------------------------------------------
99

1010
import { getLiteralPropValue, propName } from 'jsx-ast-utils';
11-
import ariaAttributes from '../util/attributes/ARIA';
11+
import ariaAttributes from '../util/attributes/ARIA.json';
1212

1313
const errorMessage = (name, type, permittedValues) => {
1414
switch (type) {

src/rules/aria-role.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// ----------------------------------------------------------------------------
99

1010
import { getLiteralPropValue, propName } from 'jsx-ast-utils';
11-
import roles from '../util/attributes/role';
11+
import roles from '../util/attributes/role.json';
1212

1313
const errorMessage = 'Elements with ARIA roles must use a valid, non-abstract ARIA role.';
1414

src/rules/aria-unsupported-elements.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// ----------------------------------------------------------------------------
1010

1111
import { elementType, propName } from 'jsx-ast-utils';
12-
import DOM from '../util/attributes/DOM';
13-
import ARIA from '../util/attributes/ARIA';
12+
import DOM from '../util/attributes/DOM.json';
13+
import ARIA from '../util/attributes/ARIA.json';
1414

1515
const errorMessage = invalidProp =>
1616
`This element does not support ARIA roles, states and properties. \

src/rules/lang.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// ----------------------------------------------------------------------------
99

1010
import { propName, elementType, getLiteralPropValue } from 'jsx-ast-utils';
11-
import ISO_CODES from '../util/attributes/ISO';
11+
import ISO_CODES from '../util/attributes/ISO.json';
1212

1313
const errorMessage =
1414
'lang attribute must have a valid value.';

src/rules/role-has-required-aria-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// ----------------------------------------------------------------------------
1010

1111
import { getProp, getLiteralPropValue, propName } from 'jsx-ast-utils';
12-
import validRoleTypes from '../util/attributes/role';
12+
import validRoleTypes from '../util/attributes/role.json';
1313

1414
const errorMessage = (role, requiredProps) =>
1515
`Elements with the ARIA role "${role}" must have the following ` +

src/rules/role-supports-aria-props.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// ----------------------------------------------------------------------------
1010

1111
import { getProp, getLiteralPropValue, elementType, propName } from 'jsx-ast-utils';
12-
import ROLES from '../util/attributes/role';
13-
import ARIA from '../util/attributes/ARIA';
12+
import ROLES from '../util/attributes/role.json';
13+
import ARIA from '../util/attributes/ARIA.json';
1414
import getImplicitRole from '../util/getImplicitRole';
1515

1616
const errorMessage = (attr, role, tag, isImplicit) => {

src/rules/scope.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// ----------------------------------------------------------------------------
99

1010
import { propName, elementType } from 'jsx-ast-utils';
11-
import DOMElements from '../util/attributes/DOM';
11+
import DOMElements from '../util/attributes/DOM.json';
1212

1313
const errorMessage = 'The scope prop can only be used on <th> elements.';
1414

src/util/isInteractiveElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getProp, getPropValue, getLiteralPropValue } from 'jsx-ast-utils';
22
import getTabIndex from './getTabIndex';
3-
import DOMElements from './attributes/DOM';
3+
import DOMElements from './attributes/DOM.json';
44

55
// Map of tagNames to functions that return whether that element is interactive or not.
66
const interactiveMap = {

0 commit comments

Comments
 (0)