/
home
/
techb158
/
balavpn.abdallabala.com
/
node_modules
/
eslint-plugin-import
/
docs
/
rules
/
/home/techb158/balavpn.abdallabala.com/node_modules/eslint-plugin-import/docs/rules
mkdir
upload
Name
Size
Mode
Actions
consistent-type-specifier-style.md
2822
0666
edit
dl
rm
default.md
2016
0666
edit
dl
rm
dynamic-import-chunkname.md
3288
0666
edit
dl
rm
enforce-node-protocol-usage.md
2122
0666
edit
dl
rm
export.md
998
0666
edit
dl
rm
exports-last.md
935
0666
edit
dl
rm
extensions.md
7558
0666
edit
dl
rm
first.md
2230
0666
edit
dl
rm
group-exports.md
2419
0666
edit
dl
rm
imports-first.md
424
0666
edit
dl
rm
max-dependencies.md
1836
0666
edit
dl
rm
named.md
2610
0666
edit
dl
rm
namespace.md
2833
0666
edit
dl
rm
newline-after-import.md
2903
0666
edit
dl
rm
no-absolute-path.md
1486
0666
edit
dl
rm
no-amd.md
977
0666
edit
dl
rm
no-anonymous-default-export.md
2235
0666
edit
dl
rm
no-commonjs.md
2231
0666
edit
dl
rm
no-cycle.md
3752
0666
edit
dl
rm
no-default-export.md
1217
0666
edit
dl
rm
no-deprecated.md
1478
0666
edit
dl
rm
no-duplicates.md
3542
0666
edit
dl
rm
no-dynamic-require.md
780
0666
edit
dl
rm
no-empty-named-blocks.md
866
0666
edit
dl
rm
no-extraneous-dependencies.md
4879
0666
edit
dl
rm
no-import-module-exports.md
1780
0666
edit
dl
rm
no-internal-modules.md
2927
0666
edit
dl
rm
no-mutable-exports.md
1433
0666
edit
dl
rm
no-named-as-default-member.md
1413
0666
edit
dl
rm
no-named-as-default.md
1383
0666
edit
dl
rm
no-named-default.md
705
0666
edit
dl
rm
no-named-export.md
1472
0666
edit
dl
rm
no-namespace.md
993
0666
edit
dl
rm
no-nodejs-modules.md
829
0666
edit
dl
rm
no-relative-packages.md
1490
0666
edit
dl
rm
no-relative-parent-imports.md
2621
0666
edit
dl
rm
no-restricted-paths.md
4853
0666
edit
dl
rm
no-self-import.md
417
0666
edit
dl
rm
no-unassigned-import.md
2001
0666
edit
dl
rm
no-unresolved.md
4315
0666
edit
dl
rm
no-unused-modules.md
3422
0666
edit
dl
rm
no-useless-path-segments.md
2582
0666
edit
dl
rm
no-webpack-loader-syntax.md
1081
0666
edit
dl
rm
order.md
29632
0666
edit
dl
rm
prefer-default-export.md
3263
0666
edit
dl
rm
unambiguous.md
1913
0666
edit
dl
rm
Edit:
/home/techb158/balavpn.abdallabala.com/node_modules/eslint-plugin-import/docs/rules/exports-last.md
(935B)
# import/exports-last <!-- end auto-generated rule header --> This rule enforces that all exports are declared at the bottom of the file. This rule will report any export declarations that comes before any non-export statements. ## This will be reported ```JS const bool = true export default bool const str = 'foo' ``` ```JS export const bool = true const str = 'foo' ``` ## This will not be reported ```JS const arr = ['bar'] export const bool = true export default bool export function func() { console.log('Hello World 🌍') } export const str = 'foo' ``` ## When Not To Use It If you don't mind exports being sprinkled throughout a file, you may not want to enable this rule. ### ES6 exports only The exports-last rule is currently only working on ES6 exports. You may not want to enable this rule if you're using CommonJS exports. If you need CommonJS support feel free to open an issue or create a PR.
Save
cmd:
run