@@ -260,29 +260,29 @@ describe('The eslint provider for Linter', () => {
260260 // });
261261 // });
262262
263- describe ( 'when a file is specified in an eslintIgnore key in package.json' , ( ) => {
264- it ( 'will still lint the file if an .eslintignore file is present' , async ( ) => {
265- atom . config . set ( 'linter-eslint-node.advanced.disableEslintIgnore ', false ) ;
266- const editor = await atom . workspace . open ( path . join ( paths . eslintIgnoreKeyDir , 'ignored.js' ) ) ;
267- const messages = await lint ( editor ) ;
268-
269- expect ( messages . length ) . toBe ( 1 ) ;
270- } ) ;
271-
272- // TODO:
273- // it('will not give warnings when linting the file', async () => {
274- // const tempPath = await copyFileToTempDir(path.join(paths.eslintIgnoreKeyDir, 'ignored.js'));
275- // const tempDir = path.dirname(tempPath);
276- //
277- // const editor = await atom.workspace.open(tempPath);
278- // atom.config.set('linter-eslint-node.advanced.disableEslintIgnore', false);
279- // await copyFileToDir(path.join(paths.eslintIgnoreKeyDir, 'package.json'), tempDir);
280- //
281- // const messages = await lint(editor);
282- // expect(messages.length).toBe(0);
283- // rimraf.sync(tempDir);
284- // });
285- } ) ;
263+ // TODO:
264+ // describe('when a file is specified in an eslintIgnore key in package.json', () => {
265+ // it('will still lint the file if an .eslintignore file is present ', async () => {
266+ // atom.config.set('linter-eslint-node.advanced.disableEslintIgnore', false );
267+ // const editor = await atom.workspace.open(path.join(paths.eslintIgnoreKeyDir, 'ignored.js') );
268+ // const messages = await lint(editor);
269+ //
270+ // expect(messages.length).toBe(1 );
271+ // });
272+ //
273+ // it('will not give warnings when linting the file', async () => {
274+ // const tempPath = await copyFileToTempDir(path.join(paths.eslintIgnoreKeyDir, 'ignored.js'));
275+ // const tempDir = path.dirname(tempPath);
276+ //
277+ // const editor = await atom.workspace.open(tempPath);
278+ // atom.config.set('linter-eslint-node.advanced.disableEslintIgnore', false);
279+ // await copyFileToDir(path.join(paths.eslintIgnoreKeyDir, 'package.json'), tempDir);
280+ //
281+ // const messages = await lint(editor);
282+ // expect(messages.length).toBe(0);
283+ // rimraf.sync(tempDir);
284+ // });
285+ // });
286286
287287 // TODO:
288288 // describe('fixes errors', () => {
0 commit comments