Skip to content

Commit

Permalink
feat: set prefer node protocol as new default (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
idaho committed Mar 1, 2022
1 parent ca00741 commit c95dd56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/plugins/typescript/parserOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path';
import path from 'node:path';

const parserOptions = {
sourceType: 'module',
Expand Down
8 changes: 7 additions & 1 deletion src/lib/plugins/unicorn/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ const rules = {
'unicorn/prefer-type-error': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/string-content': 'off',
'unicorn/throw-new-error': 'error'
'unicorn/throw-new-error': 'error',
'unicorn/prefer-node-protocol': [
'error',
{
checkRequire: true
}
]
};

export {
Expand Down

0 comments on commit c95dd56

Please sign in to comment.