Skip to content

Commit

Permalink
feat: Support package.json as a configuration location. (#1178)
Browse files Browse the repository at this point in the history
* feat: Support `packageProp` in `cosmiconfig`
 This PR adds support for the storing `cspell` configuration in a `package.json` file. 
 This feature enables developers to remove yet another boilerplate file from their apps.
  • Loading branch information
James Whitney committed May 2, 2021
1 parent 192acfc commit 2ce2410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cspell-lib/src/Settings/CSpellSettingsServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const ENV_CSPELL_GLOB_ROOT = 'CSPELL_GLOB_ROOT';
* the `cspell.config.js`.
*/
const searchPlaces = [
'package.json',
// Original locations
'.cspell.json',
'cspell.json',
Expand Down

0 comments on commit 2ce2410

Please sign in to comment.