Skip to content

Commit

Permalink
Added the correct prefix to the rules 😶
Browse files Browse the repository at this point in the history
  • Loading branch information
01taylop committed Aug 2, 2024
1 parent 3227742 commit 7e5a50a
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions config/eslint/rules/n.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
// https://github.com/eslint-community/eslint-plugin-n

export default {
'callback-return': 1,
'exports-style': 0,
'file-extension-in-import': 0,
'global-require': 0,
'handle-callback-err': 0,
'hashbang': 2,
'no-callback-literal': 0,
'no-deprecated-api': 2,
'no-exports-assign': 2,
'no-extraneous-import': 0,
'no-extraneous-require': 0,
'no-missing-import': 0,
'no-missing-require': 0,
'no-mixed-requires': [2, { allowCall: true, grouping: true }],
'no-new-require': 2,
'no-path-concat': 2,
'no-process-env': 0,
'no-process-exit': 0, // TODO: Revisit this rule
'no-restricted-import': 0,
'no-restricted-require': 0,
'no-sync': 0,
'no-unpublished-bin': 2,
'no-unpublished-import': 0,
'no-unpublished-require': 0,
'no-unsupported-features/es-builtins': 2,
'no-unsupported-features/es-syntax': 2,
'no-unsupported-features/node-builtins': 2,
'prefer-global/buffer': 2,
'prefer-global/console': 2,
'prefer-global/process': 2,
'prefer-global/text-decoder': 2,
'prefer-global/text-encoder': 2,
'prefer-global/url': 2,
'prefer-global/url-search-params': 2,
'prefer-node-protocol': 2,
'prefer-promises/dns': 2,
'prefer-promises/fs': 2,
'process-exit-as-throw': 0,
'n/callback-return': 1,
'n/exports-style': 0,
'n/file-extension-in-import': 0,
'n/global-require': 0,
'n/handle-callback-err': 0,
'n/hashbang': 2,
'n/no-callback-literal': 0,
'n/no-deprecated-api': 2,
'n/no-exports-assign': 2,
'n/no-extraneous-import': 0,
'n/no-extraneous-require': 0,
'n/no-missing-import': 0,
'n/no-missing-require': 0,
'n/no-mixed-requires': [2, { allowCall: true, grouping: true }],
'n/no-new-require': 2,
'n/no-path-concat': 2,
'n/no-process-env': 0,
'n/no-process-exit': 0, // TODO: Revisit this rule
'n/no-restricted-import': 0,
'n/no-restricted-require': 0,
'n/no-sync': 0,
'n/no-unpublished-bin': 2,
'n/no-unpublished-import': 0,
'n/no-unpublished-require': 0,
'n/no-unsupported-features/es-builtins': 2,
'n/no-unsupported-features/es-syntax': 2,
'n/no-unsupported-features/node-builtins': 2,
'n/prefer-global/buffer': 2,
'n/prefer-global/console': 2,
'n/prefer-global/process': 2,
'n/prefer-global/text-decoder': 2,
'n/prefer-global/text-encoder': 2,
'n/prefer-global/url': 2,
'n/prefer-global/url-search-params': 2,
'n/prefer-node-protocol': 2,
'n/prefer-promises/dns': 2,
'n/prefer-promises/fs': 2,
'n/process-exit-as-throw': 0,
}

0 comments on commit 7e5a50a

Please sign in to comment.