Skip to content

Commit 79bf72a

Browse files
committed
🐛 fix eslint node conf
1 parent bff488b commit 79bf72a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

eslint-config-node/base.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,35 @@ rules:
1515
radix: 'off'
1616
# we should be reading any env config into a specific config module
1717
n/no-process-env: 'error'
18-
# Enforce return upon a callback
18+
# enforce return upon a callback
1919
n/callback-return: ['error', ['callback', 'cb', 'next']]
20-
# Disallow require() outside of the top-level module scope
20+
# disallow require() outside of the top-level module scope
2121
n/global-require: 'error'
22-
# Enforces error handling in callbacks
22+
# enforces error handling in callbacks
2323
n/handle-callback-err: ['error', '^.*[eE]rr(or)?$']
24-
# Disallow mixing regular variable and require declarations
24+
# disallow mixing regular variable and require declarations
2525
n/no-mixed-requires: 'error'
26-
# Disallow use of new operator with the require function
26+
# disallow use of new operator with the require function
2727
n/no-new-require: 'error'
28-
# Disallow string concatenation with __dirname and __filename
28+
# disallow string concatenation with __dirname and __filename
2929
n/no-path-concat: 'error'
30-
# Restrict usage of specified node modules
30+
# restrict usage of specified node modules
3131
n/no-restricted-import: 'off'
3232
n/no-restricted-require: 'off'
33-
# Disallow use of synchronous methods
33+
# disallow use of synchronous methods
3434
n/no-sync: 'error'
3535
# defer to import/no-extraneous-dependencies
3636
n/no-extraneous-import: 'off'
3737
n/no-extraneous-require: 'off'
3838
# use `module.exports` for commonjs
3939
n/exports-style: ['error', 'module.exports']
4040
# use imports instead of globals
41-
n/prefer-global/text-decoder: 'never'
42-
n/prefer-global/text-encoder: 'never'
43-
n/prefer-global/url-search-params: 'never'
44-
n/prefer-global/url: 'never'
41+
n/prefer-global/text-decoder: ['error', 'never']
42+
n/prefer-global/text-encoder: ['error', 'never']
43+
n/prefer-global/url-search-params: ['error', 'never']
44+
n/prefer-global/url: ['error', 'never']
4545
# use promise APIs
4646
n/prefer-promises/dns: 'error'
4747
n/prefer-promises/fs: 'error'
4848
# make sure callbacks pass error as 1st param
49-
node/no-callback-literal: 'error'
49+
n/no-callback-literal: 'error'

0 commit comments

Comments
 (0)