[6.x] [eslint] lint packages, but not eslint-* ones (#16470) (#16471)

This commit is contained in:
Spencer 2018-02-01 17:04:59 -07:00 committed by GitHub
parent 9697a83947
commit d056e2d625
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View file

@ -8,4 +8,8 @@
/src/ui/public/utils/decode_geo_hash.js
/src/core_plugins/timelion/public/webpackShims/jquery.flot.*
/ui_framework/doc_site/build
/tasks/vendor
/tasks/vendor
/packages/*/node_modules
/packages/eslint-config-kibana
/packages/eslint-plugin-kibana-custom
/packages/kbn-build/dist

View file

@ -8,7 +8,7 @@ import { runCommand } from './run';
function help() {
const availableCommands = Object.keys(commands)
.map(commandName => commands[commandName])
.map(commandName => commands[commandName]) // eslint-disable-line import/namespace
.map(command => `${command.name} - ${command.description}`);
console.log(dedent`
@ -51,7 +51,7 @@ export async function run(argv) {
const commandOptions = { options, extraArgs, rootPath };
const command = commands[commandName];
const command = commands[commandName]; // eslint-disable-line import/namespace
if (command === undefined) {
console.log(
chalk.red(`[${commandName}] is not a valid command, see 'kbn --help'`)

View file

@ -6,6 +6,7 @@ export const DEFAULT_ESLINT_PATHS = [
'scripts',
'tasks',
'test',
'packages',
'ui_framework/src',
'ui_framework/doc_site/src',
'ui_framework/generator_kui',