-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update eslint related packages #48513
Changes from all commits
442d507
54fe71d
3e85116
09daa49
48d1367
b9d26ce
e164733
5b27afc
2773db7
63139d9
3efb7d2
a4b073d
45487aa
28ced93
c1a80f9
b5aea33
542b119
ae229bd
2f8dca5
ee749c6
6a4e0fd
94bfc76
a382d63
cf04a8c
24f72fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
const { readdirSync } = require('fs'); | ||
const { resolve } = require('path'); | ||
|
||
|
@@ -622,7 +641,6 @@ module.exports = { | |
// will introduced after the other warns are fixed | ||
// 'react/sort-comp': 'error', | ||
'react/void-dom-elements-no-children': 'error', | ||
'react/jsx-boolean-value': ['error', 'warn'], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This configuration is invalid, which caused this to be a noop, so I removed it. |
||
// will introduced after the other warns are fixed | ||
// 'react/jsx-no-bind': 'error', | ||
'react/jsx-no-comment-textnodes': 'error', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,16 +20,16 @@ | |
const os = require('os'); | ||
const path = require('path'); | ||
|
||
function useBat(bin) { | ||
function maybeUseBat(bin) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This triggers React hooks checks |
||
return os.platform().startsWith('win') ? `${bin}.bat` : bin; | ||
} | ||
|
||
const tempDir = os.tmpdir(); | ||
|
||
exports.BASE_PATH = path.resolve(tempDir, 'kbn-es'); | ||
|
||
exports.GRADLE_BIN = useBat('./gradlew'); | ||
exports.ES_BIN = useBat('bin/elasticsearch'); | ||
exports.GRADLE_BIN = maybeUseBat('./gradlew'); | ||
exports.ES_BIN = maybeUseBat('bin/elasticsearch'); | ||
exports.ES_CONFIG = 'config/elasticsearch.yml'; | ||
|
||
exports.ES_KEYSTORE_BIN = useBat('./bin/elasticsearch-keystore'); | ||
exports.ES_KEYSTORE_BIN = maybeUseBat('./bin/elasticsearch-keystore'); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ | |
*/ | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default function(selector: string): string; | ||
export default function kbnTestSubjSelector(selector: string): string; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Named this to avoid typescript-eslint/typescript-eslint#1078 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,7 @@ export class PluginWrapper< | |
private instance?: Plugin<TSetup, TStart, TPluginsSetup, TPluginsStart>; | ||
|
||
constructor( | ||
readonly discoveredPlugin: DiscoveredPlugin, | ||
public readonly discoveredPlugin: DiscoveredPlugin, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This and other instances of adding |
||
public readonly opaqueId: PluginOpaqueId, | ||
private readonly initializerContext: PluginInitializerContext | ||
) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The globbing has been improved a little so the code in this directory was being tested now.