Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
style(prettier): fix "format" package-script and run on codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
robwise committed Jun 8, 2017
1 parent a9d592a commit 29c7351
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ scripts:

format:
description: Run prettier-eslint on the src code
script: prettier-eslint src/*.js *.js --write
script: prettier-eslint "src/**/*.js" --write

flow:
default:
Expand Down
6 changes: 1 addition & 5 deletions src/warnAboutLinterEslintFixOnSave/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// @flow
const {
shouldUseEslint,
isLinterEslintAutofixEnabled,
addWarningNotification,
} = require('../atomInterface');
const { shouldUseEslint, isLinterEslintAutofixEnabled, addWarningNotification } = require('../atomInterface');

const MESSAGE =
"prettier-atom: linter-eslint's `Fix on Save` feature is currently enabled. " +
Expand Down
6 changes: 1 addition & 5 deletions src/warnAboutLinterEslintFixOnSave/index.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
jest.mock('../atomInterface');

const {
isLinterEslintAutofixEnabled,
shouldUseEslint,
addWarningNotification,
} = require('../atomInterface');
const { isLinterEslintAutofixEnabled, shouldUseEslint, addWarningNotification } = require('../atomInterface');
const warnAboutLinterEslintFixOnSave = require('./index');

test('it warns about not having eslint autofix on', () => {
Expand Down

0 comments on commit 29c7351

Please sign in to comment.