UNPKG

eslint-config-seekingalpha-base

Version:

SeekingAlpha's sharable base ESLint config

85 lines (67 loc) 2.93 kB
// https://github.com/benmosher/eslint-plugin-import#style-guide export default { // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.md 'import/consistent-type-specifier-style': ['error', 'prefer-top-level'], // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md 'import/first': 'error', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/exports-last.md 'import/exports-last': 'off', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md 'import/no-duplicates': 'error', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-namespace.md 'import/no-namespace': 'error', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md 'import/extensions': [ 'error', 'ignorePackages', { js: 'never', jsx: 'never', ts: 'never', tsx: 'never', }, ], // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md 'import/order': [ 'error', { groups: [ 'builtin', 'external', 'internal', 'parent', 'sibling', 'unknown', 'index', 'type', ], 'newlines-between': 'always', }, ], // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md 'import/newline-after-import': 'error', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md 'import/prefer-default-export': 'off', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md 'import/max-dependencies': 'off', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md 'import/no-unassigned-import': 'error', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-default.md 'import/no-named-default': 'error', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-default-export.md 'import/no-default-export': 'error', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-anonymous-default-export.md 'import/no-anonymous-default-export': 'error', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/group-exports.md 'import/group-exports': 'off', // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/dynamic-import-chunkname.md 'import/dynamic-import-chunkname': [ 'error', { importFunctions: [], webpackChunknameFormat: String.raw`[a-zA-Z\d]+-[S|R|W|M](_(Pro|Pre|In|Out)+)?`, }, ], // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-export.md 'import/no-named-export': 'off', };