-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade to Node 14+ with full ICU support (#7)
* feat: upgrade to Node 14+ with full ICU support BREAKING CHANGES: - This package now requires Node 14+ to work. - Built using ES modules instead of CJS modules
- Loading branch information
Showing
23 changed files
with
8,871 additions
and
7,881 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
# START_CONFIT_GENERATED_CONTENT | ||
# Common folders to ignore | ||
node_modules/* | ||
bower_components/* | ||
|
||
# Config folder (optional - you might want to lint this...) | ||
config/* | ||
|
||
# END_CONFIT_GENERATED_CONTENT |
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,47 @@ | ||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
}, | ||
|
||
env: { | ||
es6: true, | ||
'jest/globals': true, | ||
}, | ||
|
||
extends: [ | ||
'plugin:prettier/recommended', | ||
'plugin:unicorn/recommended', | ||
'plugin:node/recommended-script', | ||
'plugin:jest/recommended', | ||
], | ||
plugins: ['jest'], | ||
rules: { | ||
// Allow some flexibility here | ||
'unicorn/prevent-abbreviations': 'off', | ||
|
||
// Use camelCase for files (and directories - not enforced) | ||
'unicorn/filename-case': ['error', { case: 'camelCase' }], | ||
|
||
// Turn off explicit length checks | ||
'unicorn/explicit-length-check': 'off', | ||
|
||
// Turning off because it leads to many uses of the word 'error' in the same block, which is confusing | ||
// E.g. | ||
// } catch(error) { | ||
// logger.error(error); | ||
// return error(error); | ||
// } | ||
'unicorn/catch-error-name': 'off', | ||
|
||
// This rule is no good for test specs. Need to find a way to disable this for test specs | ||
'unicorn/consistent-function-scoping': 'off', | ||
|
||
// This rule is breaking at the moment due to ES module support lacking | ||
'node/no-unsupported-features/es-syntax': 'off', | ||
|
||
// Jest does not support the node:protocol, yet | ||
'unicorn/prefer-node-protocol': 'off' | ||
}, | ||
}; |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run pre-push |
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 @@ | ||
src/*.spec.js |
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 @@ | ||
v14 |
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 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"semi": true | ||
} |
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
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 @@ | ||
#!/usr/bin/env node | ||
import { DevLog } from '../src/devLog.js'; | ||
import { setLogLevel, LOG_LEVEL } from '../src/logger.js'; | ||
|
||
setLogLevel(LOG_LEVEL.INFO); | ||
const devLog = new DevLog({ args: process.argv, cwd: process.cwd() }); | ||
devLog.run(); |
Oops, something went wrong.