David Sherret
1464b756a4
refactor: move out test files from root testdata directory into sub directories ( #15949 )
2022-09-19 10:32:21 -04:00
David Sherret
f564497630
fix(fmt): should fail --check
on parse error ( #14907 )
2022-06-18 12:44:43 -04:00
Ryan Dahl
39ea4abff4
feat: auto-discover config file ( #13313 )
2022-01-17 20:10:17 -05:00
Bartek Iwańczuk
d2c53e7f10
tests: remove 'fmt_check_tests_dir' test ( #12875 )
2021-11-23 18:36:13 +01:00
Bartek Iwańczuk
bedb2adfb0
refactor: remove "unitTest" wrapper from cli/tests/unit ( #12750 )
2021-11-23 17:45:18 +01:00
David Sherret
51e3db956a
fix(cli): config file should resolve paths relative to the config file ( #12867 )
...
* Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows.
2021-11-23 10:38:11 -05:00
Bartek Iwańczuk
4e3068be63
Revert "fix(cli): ensure empty lines don't count towards coverage ( #11957 )" ( #12348 )
...
This reverts commit d5b38a9929
.
2021-10-06 19:28:28 +02:00
Casper Beyer
d5b38a9929
fix(cli): ensure empty lines don't count towards coverage ( #11957 )
2021-10-06 07:05:18 +02:00
Satya Rohith
c5442abc23
feat(cli/fmt): support more markdown extensions ( #12195 )
2021-09-23 21:49:25 +05:30
Bartek Iwańczuk
0dbeb774ba
feat(fmt): add support for configuration file ( #11944 )
...
This commit adds support for configuration file for "deno fmt"
subcommand. It is also respected by LSP when formatting
files.
Example configuration:
{
"fmt": {
"files": {
"include": ["src/"],
"exclude": ["src/testdata/"]
},
"options": {
"useTabs": true,
"lineWidth": 80,
"indentWidth": 4,
"singleQuote": true,
"textWrap": "preserve"
}
}
}
2021-09-13 20:19:10 +02:00
David Sherret
15a763152f
chore: move test files to testdata directory ( #11601 )
2021-08-11 10:20:47 -04:00