Skip to content

Commit

Permalink
fix: fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
danethurber committed Oct 29, 2018
1 parent f3d2b48 commit 29f4881
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Expand Up @@ -8,7 +8,7 @@ module.exports = {
{
files: ['*.spec.js', '*.story.js'],
rules: {
'no-unused-vars': 'warning'
'no-unused-vars': [1]
}
}
]
Expand Down
3 changes: 2 additions & 1 deletion commitlint.config.js
@@ -1,7 +1,7 @@
const Repository = require('lerna/lib/Repository')
const PackageUtilities = require('lerna/lib/PackageUtilities')

function getPackageAbbreviations() {
function getPackageAbbreviations () {
const prefix = `ps-design-system-`
const cwd = process.cwd()
const repo = new Repository(cwd)
Expand All @@ -13,6 +13,7 @@ function getPackageAbbreviations() {
.map(pkg => pkg.name)
.map(name => (name.charAt(0) === '@' ? name.split('/')[1] : name))
.map(name => (name.includes(prefix) ? name.replace(prefix, '') : name))
.concat(['project'])
}

module.exports = {
Expand Down
2 changes: 0 additions & 2 deletions packages/button/.storybook/config.js
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import addons from '@storybook/addons'
import { addDecorator, configure } from '@storybook/react'

Expand Down
5 changes: 2 additions & 3 deletions packages/button/src/react/__specs__/storyshots.spec.js
@@ -1,6 +1,5 @@
jest.mock('@pluralsight/ps-design-system-storybook-addon-center')

import React from 'react'
import initStoryshots from '@storybook/addon-storyshots'

jest.mock('@pluralsight/ps-design-system-storybook-addon-center')

initStoryshots()

0 comments on commit 29f4881

Please sign in to comment.