@@ -8,7 +8,7 @@ module.exports = {
88 overrides : [
99 {
1010 files : [ "**/*.js" , "**/*.mjs" , "**/*.ts" ] ,
11- plugins : [ "node " ] ,
11+ plugins : [ "n " ] ,
1212 globals : {
1313 ...globals . node ,
1414 ...globals . commonjs ,
@@ -34,81 +34,81 @@ module.exports = {
3434 "@typescript-eslint/no-var-requires" : "off" ,
3535
3636 // ====================================================================================================
37- // eslint-plugin-node
37+ // eslint-plugin-n
3838 // ====================================================================================================
3939 /**
4040 * Prevent assignment to `exports` variable, it would not work as expected.
41- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-exports-assign.md
41+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-exports-assign.md
4242 */
43- "node /no-exports-assign" : "error" ,
43+ "n /no-exports-assign" : "error" ,
4444
4545 /**
4646 * If an import declaration's source is extraneous (it's not written in package.json), the program works in local, but will not work after dependencies are re-installed.
47- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-extraneous-import.md
47+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-extraneous-import.md
4848 */
49- "node /no-extraneous-import" : "error" ,
49+ "n /no-extraneous-import" : "error" ,
5050
5151 /**
5252 * If a require()'s target is extraneous (it's not written in package.json), the program works in local, but will not work after dependencies are re-installed.
53- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-extraneous-require.md
53+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-extraneous-require.md
5454 */
55- "node /no-extraneous-require" : "error" ,
55+ "n /no-extraneous-require" : "error" ,
5656
5757 /**
5858 * Disallow import declarations which import non-existence modules.
5959 * DISABLED - reports false-positives
60- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-missing-import.md
60+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-missing-import.md
6161 */
62- "node /no-missing-import" : "off" ,
62+ "n /no-missing-import" : "off" ,
6363
6464 /**
6565 * Disallow require() expressions which import non-existence modules
6666 * DISABLED - reports false-positives
67- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-missing-require.md
67+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-missing-require.md
6868 */
69- "node /no-missing-require" : "off" ,
69+ "n /no-missing-require" : "off" ,
7070
7171 /**
7272 * Disallow new operators with calls to require, they might be confusing.
73- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-new-require.md
73+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-new-require.md
7474 */
75- "node /no-new-require" : "error" ,
75+ "n /no-new-require" : "error" ,
7676
7777 /**
7878 * Both path.join() and path.resolve() are suitable replacements for string concatenation wherever file or directory paths are being created.
79- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-path-concat.md
79+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-path-concat.md
8080 */
81- "node /no-path-concat" : "error" ,
81+ "n /no-path-concat" : "error" ,
8282
8383 /**
8484 * Prevents install failure of a published package.
85- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unpublished-bin.md
85+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unpublished-bin.md
8686 */
87- "node /no-unpublished-bin" : "error" ,
87+ "n /no-unpublished-bin" : "error" ,
8888
8989 /**
9090 * Prevents install failure of a published package.
91- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unpublished-import.md
91+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unpublished-import.md
9292 */
93- "node /no-unpublished-import" : "error " ,
93+ "n /no-unpublished-import" : "off " ,
9494
9595 /**
9696 * Prevents install failure of a published package.
97- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unpublished-require.md
97+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unpublished-require.md
9898 */
99- "node /no-unpublished-require" : "error" ,
99+ "n /no-unpublished-require" : "error" ,
100100
101101 /**
102102 * Prevents using unsupported features.
103- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unsupported-features/es-builtins.md
103+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unsupported-features/es-builtins.md
104104 */
105- "node /no-unsupported-features/es-builtins" : "error" ,
105+ "n /no-unsupported-features/es-builtins" : "error" ,
106106
107107 /**
108108 * Prevents using unsupported features.
109- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unsupported-features/es-syntax.md
109+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unsupported-features/es-syntax.md
110110 */
111- "node /no-unsupported-features/es-syntax" : [
111+ "n /no-unsupported-features/es-syntax" : [
112112 "error" ,
113113 {
114114 ignores : [ "modules" ] ,
@@ -117,99 +117,99 @@ module.exports = {
117117
118118 /**
119119 * Prevents using unsupported features.
120- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unsupported-features/node-builtins.md
120+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unsupported-features/node-builtins.md
121121 */
122- "node /no-unsupported-features/node-builtins" : "error" ,
122+ "n /no-unsupported-features/node-builtins" : "error" ,
123123
124124 /**
125125 * Make process.exit() expressions the same code path as throw for eslint.
126- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/process-exit-as-throw.md
126+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/process-exit-as-throw.md
127127 */
128- "node /process-exit-as-throw" : "error" ,
128+ "n /process-exit-as-throw" : "error" ,
129129
130130 /**
131131 * When we make a CLI tool with Node.js, we add bin field to package.json, then we add a shebang the entry file. This rule suggests correct usage of shebang.
132- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/shebang.md
132+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/shebang.md
133133 */
134- "node /shebang" : "error" ,
134+ "n /shebang" : "error" ,
135135
136136 /**
137137 * Prevent using deprecated APIs that might get removed in future versions of Node.
138- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-deprecated-api.md
138+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-deprecated-api.md
139139 */
140- "node /no-deprecated-api" : "error" ,
140+ "n /no-deprecated-api" : "error" ,
141141
142142 /**
143143 * To prevent calling the callback multiple times it is important to return anytime the callback is triggered outside of the main function body.
144- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/callback-return.md
144+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/callback-return.md
145145 */
146- "node /callback-return" : "error" ,
146+ "n /callback-return" : "error" ,
147147
148148 /**
149149 * Enforce export style to achieve consistency within codebase.
150- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/exports-style.md
150+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/exports-style.md
151151 */
152- "node /exports-style" : [ "error" , "module.exports" ] ,
152+ "n /exports-style" : [ "error" , "module.exports" ] ,
153153
154154 /**
155155 * While require() may be called anywhere in code, some style guides prescribe that it should be called only in the top level of a module to make it easier to identify dependencies.
156- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/global-require.md
156+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/global-require.md
157157 */
158- "node /global-require" : "error" ,
158+ "n /global-require" : "error" ,
159159
160160 /**
161161 * In the Node.js community it is often customary to separate initializations with calls to require modules from other variable declarations, sometimes also grouping them by the type of module.
162- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-mixed-requires.md
162+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-mixed-requires.md
163163 */
164- "node /no-mixed-requires" : "error" ,
164+ "n /no-mixed-requires" : "error" ,
165165
166166 /**
167167 * Force usage of global variable for consistency.
168- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/buffer.md
168+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/buffer.md
169169 */
170- "node /prefer-global/buffer" : [ "error" , "always" ] ,
170+ "n /prefer-global/buffer" : [ "error" , "always" ] ,
171171
172172 /**
173173 * Force usage of global variable for consistency.
174- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/console.md
174+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/console.md
175175 */
176- "node /prefer-global/console" : [ "error" , "always" ] ,
176+ "n /prefer-global/console" : [ "error" , "always" ] ,
177177
178178 /**
179179 * Force usage of global variable for consistency.
180- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/console.md
180+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/console.md
181181 */
182- "node /prefer-global/console" : [ "error" , "always" ] ,
182+ "n /prefer-global/console" : [ "error" , "always" ] ,
183183
184184 /**
185185 * Force usage of global variable for consistency.
186- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/process.md
186+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/process.md
187187 */
188- "node /prefer-global/process" : [ "error" , "always" ] ,
188+ "n /prefer-global/process" : [ "error" , "always" ] ,
189189
190190 /**
191191 * Force usage of global variable for consistency.
192- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/url-search-params.md
192+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/url-search-params.md
193193 */
194- "node /prefer-global/url-search-params" : [ "error" , "always" ] ,
194+ "n /prefer-global/url-search-params" : [ "error" , "always" ] ,
195195
196196 /**
197197 * Force usage of global variable for consistency.
198- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/url.md
198+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-global/url.md
199199 */
200- "node /prefer-global/url" : [ "error" , "always" ] ,
200+ "n /prefer-global/url" : [ "error" , "always" ] ,
201201
202202 /**
203203 * Promise API and async/await syntax will make code more readable than callback API.
204- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-promises/dns.md
204+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-promises/dns.md
205205 */
206- "node /prefer-promises/dns" : "error" ,
206+ "n /prefer-promises/dns" : "error" ,
207207
208208 /**
209209 * Promise API and async/await syntax will make code more readable than callback API.
210- * @see https://github.com/mysticatea/eslint-plugin-node /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-promises/fs.md
210+ * @see https://github.com/mysticatea/eslint-plugin-n /blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/prefer-promises/fs.md
211211 */
212- "node /prefer-promises/fs" : "error" ,
212+ "n /prefer-promises/fs" : "error" ,
213213 } ,
214214 } ,
215215 ] ,
0 commit comments