ImportDeclaration 和 ExportDeclaration

此规则使用 { "ImportDeclaration": "always", "ExportDeclaration": "never" } 选项的错误代码示例:

Examples of incorrect code for this rule with the { "ImportDeclaration": "always", "ExportDeclaration": "never" } options:

/*eslint object-curly-newline: ["error", { "ImportDeclaration": "always", "ExportDeclaration": "never" }]*/
/*eslint-env es6*/

import {foo, bar} from 'foo-bar';
import {foo as f, bar} from 'foo-bar';
import {foo,
    bar} from 'foo-bar';

export {
   foo,
   bar
};
export {
   foo as f,
   bar
} from 'foo-bar';

KyrcckvASAyWWvtEZkS0klYkPNkTC+oME1ubBMvfY6V2x1isJuW+27wQB6iB4sDwwwDyR5+l1aaB03MQxFSUag8jJMac1QJLfVPUFd7ZC23j++A5dBLKKDiuNyaiQe5XpEP6BLIbAP2/UFL0eo/1E2VUqMksIjr8xi6mR6ks6efJEGmJNUqmN6Ae8xH8er8rjDIqbmDrCSHv4sd+QdG1EBR2lXV+Dq5fv35zVt35KrUTv0GLrfDTK5Be5xJ83ho4McwxRYLV5qUCrWQxbMRBR1jm2aODMyorkB5YjV2PEDxnpw5eQq1eEPzKjgPHjfaC6oPFkeAFq0YtJA4pjyeJ/6m/j5FZE0TLF2/MKvwIQcMgN07F6e8UNGCkdyu30SB9lCXPrTzE0aTelFLtKig0Sg==

/*eslint object-curly-newline: ["error", { "ImportDeclaration": "always", "ExportDeclaration": "never" }]*/
/*eslint-env es6*/

import {
    foo,
    bar
} from 'foo-bar';
import {
    foo, bar
} from 'foo-bar';
import {
    foo as f,
    bar
} from 'foo-bar';

export { foo, bar } from 'foo-bar';
export { foo as f, bar } from 'foo-bar';