-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Breaking: Error thrown/printed if no config found (fixes #5987) * Edit message per feedback I added @IanVS' suggestion of including the directory and ancestors-- let me know if it's too long as a result. * Fix block comment to avoid using JSDoc * Add tests to ensure no errors when configured * Do not throw error if rules are specified * Reorganizing unit tests for lib/config.js * Reorganize code in lib/config * Fixing JSDoc issues and unclear code
- Loading branch information
1 parent
18663d4
commit e0d4b19
Showing
4 changed files
with
165 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ESLint couldn't find a configuration file. To set up a configuration file for this project, please run: | ||
|
||
eslint --init | ||
|
||
ESLint looked for configuration files in <%= directory %> and its ancestors. | ||
|
||
If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
// This file is only to ensure no error is thrown due to lack of config. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters