Skip to content

Commit

Permalink
Enforce using the .json extension for JSON files in imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 21, 2019
1 parent a64ffc4 commit 7e56730
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ module.exports = {
'error',
{
js: 'never',
json: 'never',
jsx: 'never'
jsx: 'never',
json: 'always'
}
],
'import/first': 'error',
Expand Down
8 changes: 4 additions & 4 deletions test/options-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import path from 'path';
import test from 'ava';
import proxyquire from 'proxyquire';
import slash from 'slash';
import parentConfig from './fixtures/nested/package';
import childConfig from './fixtures/nested/child/package';
import prettierConfig from './fixtures/prettier/package';
import enginesConfig from './fixtures/engines/package';
import parentConfig from './fixtures/nested/package.json';
import childConfig from './fixtures/nested/child/package.json';
import prettierConfig from './fixtures/prettier/package.json';
import enginesConfig from './fixtures/engines/package.json';

process.chdir(__dirname);

Expand Down

0 comments on commit 7e56730

Please sign in to comment.