Skip to content

Commit

Permalink
[Rename] Rename upstream elastic dependency packages
Browse files Browse the repository at this point in the history
Rename elastic-datemath, elastic-eslint-config-kibana, and
elastic-safer-lodash-set

Signed-off-by: Bishoy Boktor <[email protected]>
  • Loading branch information
Bishoy Boktor committed Apr 6, 2021
1 parent 3ee5476 commit 17ab2b6
Show file tree
Hide file tree
Showing 76 changed files with 811 additions and 355 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ target
/src/plugins/vis_type_timeline/public/_generated_/**

# package overrides
/packages/elastic-eslint-config-kibana
/packages/opensearch-eslint-config-opensearch-dashboards
/packages/opensearch-safer-lodash-set
/packages/osd-interpreter/src/common/lib/grammar.js
/packages/osd-plugin-generator/template
/packages/osd-pm/dist
Expand Down
23 changes: 0 additions & 23 deletions packages/elastic-eslint-config-kibana/jest.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/fp/assoc.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/elastic-safer-lodash-set/fp/assoc.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/fp/assocPath.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/elastic-safer-lodash-set/fp/assocPath.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/fp/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/fp/set.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/elastic-safer-lodash-set/fp/set.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/fp/setWith.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/elastic-safer-lodash-set/fp/setWith.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/set.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/elastic-safer-lodash-set/set.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/setWith.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/elastic-safer-lodash-set/setWith.js

This file was deleted.

14 changes: 0 additions & 14 deletions packages/elastic-safer-lodash-set/test/set.ts

This file was deleted.

32 changes: 0 additions & 32 deletions packages/elastic-safer-lodash-set/test/setWith.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const isDate = (d) => Object.prototype.toString.call(d) === '[object Date]';
const isValidDate = (d) => isDate(d) && !isNaN(d.valueOf());

/*
* This is a simplified version of elasticsearch's date parser.
* This is a simplified version of opensearch's date parser.
* If you pass in a momentjs instance as the third parameter the calculation
* will be done using this (and its locale settings) instead of the one bundled
* with this library.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@elastic/datemath",
"version": "5.0.3",
"description": "elasticsearch datemath parser, used in kibana",
"description": "opensearch datemath parser, used in OpenSearch Dashboards",
"license": "Apache-2.0",
"main": "index.js",
"typings": "index.d.ts",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"tsBuildInfoFile": "../../build/tsbuildinfo/packages/elastic-datemath"
"tsBuildInfoFile": "../../build/tsbuildinfo/packages/opensearch-datemath"
},
"include": [
"index.d.ts"
]
}
}
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 RESTRICTED_GLOBALS = require('./restricted_globals');
const RESTRICTED_MODULES = { paths: ['gulp-util'] };

Expand All @@ -10,13 +29,7 @@ module.exports = {
files: ['**/*.js'],
parser: require.resolve('babel-eslint'),

plugins: [
'mocha',
'babel',
'import',
'no-unsanitized',
'prefer-object-spread',
],
plugins: ['mocha', 'babel', 'import', 'no-unsanitized', 'prefer-object-spread'],

settings: {
'import/resolver': {
Expand All @@ -41,12 +54,12 @@ module.exports = {

rules: {
'block-scoped-var': 'error',
camelcase: [ 'error', { properties: 'never', allow: ['^UNSAFE_'] } ],
camelcase: ['error', { properties: 'never', allow: ['^UNSAFE_'] }],
'consistent-return': 'off',
'dot-notation': [ 'error', { allowKeywords: true } ],
eqeqeq: [ 'error', 'allow-null' ],
'dot-notation': ['error', { allowKeywords: true }],
eqeqeq: ['error', 'allow-null'],
'guard-for-in': 'error',
'new-cap': [ 'error', { capIsNewExceptions: [ 'Private' ] } ],
'new-cap': ['error', { capIsNewExceptions: ['Private'] }],
'no-bitwise': 'off',
'no-caller': 'error',
'no-cond-assign': 'off',
Expand Down Expand Up @@ -77,20 +90,20 @@ module.exports = {
'no-unsanitized/method': 'error',
'no-unsanitized/property': 'error',
'no-unused-expressions': 'off',
'no-unused-vars': [ 'error' ],
'no-use-before-define': [ 'error', 'nofunc' ],
'no-unused-vars': ['error'],
'no-use-before-define': ['error', 'nofunc'],
'no-var': 'error',
'no-with': 'error',
'one-var': [ 'error', 'never' ],
'one-var': ['error', 'never'],
'prefer-const': 'error',
strict: [ 'error', 'never' ],
strict: ['error', 'never'],
'valid-typeof': 'error',
yoda: 'off',

'mocha/handle-done-callback': 'error',
'mocha/no-exclusive-tests': 'error',

'import/no-unresolved': [ 'error', { 'amd': true, 'commonjs': true } ],
'import/no-unresolved': ['error', { amd: true, commonjs: true }],
'import/named': 'error',
'import/namespace': 'error',
'import/default': 'error',
Expand All @@ -101,7 +114,7 @@ module.exports = {
'import/no-dynamic-require': 'error',

'prefer-object-spread/prefer-object-spread': 'error',
}
},
},
]
],
};
37 changes: 37 additions & 0 deletions packages/opensearch-eslint-config-opensearch-dashboards/jest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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.
*/

module.exports = {
overrides: [
{
files: ['**/*.{test,test.mocks,mock}.{js,mjs,ts,tsx}', '**/__mocks__/**/*.{js,mjs,ts,tsx}'],
plugins: ['jest'],

env: {
jest: true,
},

rules: {
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'import/order': 'off',
},
},
],
};
Loading

0 comments on commit 17ab2b6

Please sign in to comment.