<commit_before>// see http://eslint.org/docs/rules/#nodejs and https://github.com/mysticatea/eslint-plugin-node

module.exports = {
	// enforce return after a callback
	'callback-return': ['warn', ['callback', 'cb', 'next']],
	// disallow require() outside of the top-level module scope
	'global-require': 'off',
	// Enforces error handling in callbacks
	'handle-callback-err': ['warn', '^.*(e|E)rr(or)?$'],
	// Disallow mixing regular variable and require declarations
	'no-mixed-requires': 'off',
	// Disallow use of new operator with the require function
	'no-new-require': 'warn',
	// Disallow string concatenation with __dirname and __filename
	'no-path-concat': 'warn',
	// Disallow the use of process.env()
	'no-process-env': 'off',
	// Disallow process.exit()
	'no-process-exit': 'warn',
	// Restrict usage of specified node imports
	'no-restricted-imports': 'off',
	// Restrict usage of specified node modules
	'no-restricted-modules': 'off',
	// Disallow use of synchronous methods
	'no-sync': 'warn',

	// Disallow import and export declarations for files that don't exist.
	'node/no-missing-import': 'off',
	// Disallow require()s for files that don't exist.
	'node/no-missing-require': 'error',
	// Disallow import and export declarations for files that are not published.
	'node/no-unpublished-import': 'off',
	// Disallow require()s for files that are not published.
	'node/no-unpublished-require': 'error',
	// Disallow unsupported ECMAScript features on the specified version.
	'node/no-unsupported-features': 'off',
	// Suggest correct usage of shebang.
	'node/shebang': 'error'
};<commit_msg>feat: Add new `eslint-plugin-node` rule `no-deprecated-api`<commit_after>// see http://eslint.org/docs/rules/#nodejs and https://github.com/mysticatea/eslint-plugin-node

module.exports = {
	// enforce return after a callback
	'callback-return': ['warn', ['callback', 'cb', 'next']],
	// disallow require() outside of the top-level module scope
	'global-require': 'off',
	// Enforces error handling in callbacks
	'handle-callback-err': ['warn', '^.*(e|E)rr(or)?$'],
	// Disallow mixing regular variable and require declarations
	'no-mixed-requires': 'off',
	// Disallow use of new operator with the require function
	'no-new-require': 'warn',
	// Disallow string concatenation with __dirname and __filename
	'no-path-concat': 'warn',
	// Disallow the use of process.env()
	'no-process-env': 'off',
	// Disallow process.exit()
	'no-process-exit': 'warn',
	// Restrict usage of specified node imports
	'no-restricted-imports': 'off',
	// Restrict usage of specified node modules
	'no-restricted-modules': 'off',
	// Disallow use of synchronous methods
	'no-sync': 'warn',

	// Disallow deprecated API
	'node/no-deprecated-api': 'off',
	// Disallow import and export declarations for files that don't exist.
	'node/no-missing-import': 'off',
	// Disallow require()s for files that don't exist.
	'node/no-missing-require': 'error',
	// Disallow import and export declarations for files that are not published.
	'node/no-unpublished-import': 'off',
	// Disallow require()s for files that are not published.
	'node/no-unpublished-require': 'error',
	// Disallow unsupported ECMAScript features on the specified version.
	'node/no-unsupported-features': 'off',
	// Suggest correct usage of shebang.
	'node/shebang': 'error'
};
{'fraction_non_alphanumeric': 0.15315315315315314, 'fraction_numerical': 0.0, 'mean_word_length': 4.21283255086072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2851585', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1032, 'n_words': 326}