Skip to content

Commit

Permalink
Updated dev dependencies
Browse files Browse the repository at this point in the history
Publish

 - @ulms/ui-action-button-group@2.3.1-alpha.0
 - @ulms/animations@1.0.5-alpha.0
 - @ulms/ui-button@1.0.3-alpha.0
 - @ulms/cache-buster@1.1.2-alpha.0
 - @ulms/ui-drawing@3.4.5-alpha.0
 - @ulms/ui-drawing-toolbar@2.4.2-alpha.0
 - @ulms/ui-frame@1.0.4-alpha.0
 - @ulms/ui-grid@1.1.2-alpha.0
 - @ulms/ui-icons@1.0.2-alpha.0
 - @ulms/ui-location-viewport@1.1.1-alpha.0
 - @ulms/notify@1.0.5-alpha.0
 - @ulms/ui-panel@1.0.2-alpha.0
 - @ulms/ui-presentation@1.8.2-alpha.0
 - @ulms/services@1.0.1-alpha.0
 - @ulms/ui-spinner@1.0.2-alpha.0
 - @ulms/tgs-player@1.0.3-alpha.0
 - @ulms/tooltip@1.0.3-alpha.0
  • Loading branch information
alexkonst committed May 8, 2024
1 parent 9b3bcda commit 6801c2d
Show file tree
Hide file tree
Showing 198 changed files with 18,156 additions and 32,201 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
/packages/*/es
# case for @ulms/ui-grid package (legacy)
/packages/*/src/dist
node_modules
66 changes: 52 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,60 @@
{
"extends": ["adequate-react"],
"env": {
"browser": true,
"jquery": true
"es6": true,
"node": true
},
"globals": {
"globalThis": true
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:import/recommended",
"plugin:promise/recommended",
"plugin:sonarjs/recommended",
"plugin:unicorn/recommended",
"prettier"
],
"ignorePatterns": [],
"plugins": ["import", "promise", "sonarjs", "unicorn"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
},
"sourceType": "module"
},
"rules": {
"node/no-unsupported-features/es-syntax": 0,
"no-underscore-dangle": 0,
"react/prop-types": 0,
"max-len": ["error", {
"code": 120,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreComments": true,
"ignoreTrailingComments": true
}]
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"consistent-return": "off",
"no-console": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"sonarjs/cognitive-complexity": "off",
"sonarjs/no-nested-template-literals": "off",
"unicorn/no-null": "off",
"react/prop-types": "off",
"react-hooks/exhaustive-deps": "off",
"no-plusplus": [
2,
{
"allowForLoopAfterthoughts": true
}
],
"unicorn/prevent-abbreviations": [
2,
{
"allowList": {
"prevProps": true,
"prevState": true
},
"replacements": {
"args": false,
"props": false,
"ref": false
}
}
]
}
}
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.sw*
.DS_Store
.eslintcache
.idea
.nyc_output
.nx
Expand All @@ -8,8 +9,4 @@
node_modules
lerna-debug.log

/packages/*/es/*
!/packages/*/es/.gitkeep

/packages/*/rollup
/packages/*/.babelrc.json
packages/*/es
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.nx

coverage
node_modules
packages/*/es
packages/*/src/dist

# Optional eslint cache
.eslintcache
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "semi": false, "singleQuote": true }
11 changes: 11 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
"rules": {
"alpha-value-notation": null,
"color-function-notation": null,
"custom-property-pattern": null,
"keyframes-name-pattern": null,
"selector-class-pattern": null,
"shorthand-property-no-redundant-values": null
}
}
31 changes: 24 additions & 7 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
// eslint-disable-next-line unicorn/prefer-module
module.exports = {
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
env: {
jest: {
presets: ['@babel/preset-react'],
plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-transform-private-methods'],
},
},
presets: [
'@babel/preset-react',
[
'@babel/preset-env',
{
targets: {
chrome: 87,
edge: 91,
firefox: 84,
ios: 11,
opera: 87,
safari: 11,
},
},
],
],
plugins: [
'@babel/plugin-transform-class-properties',
'@babel/plugin-transform-object-rest-spread',
'@babel/plugin-transform-runtime',
'babel-plugin-annotate-pure-calls',
'babel-plugin-styled-components',
],
}
12 changes: 6 additions & 6 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
comment:
layout: "reach, diff, flags, files"
layout: 'reach, diff, flags, files'
behavior: default
require_changes: true # if true: only post the comment if coverage changes
require_base: no # [yes :: must have a base report to post]
require_head: yes # [yes :: must have a head report to post]
branches: # branch names that can post comment
- "master"
require_changes: true # if true: only post the comment if coverage changes
require_base: no # [yes :: must have a base report to post]
require_head: yes # [yes :: must have a head report to post]
branches: # branch names that can post comment
- 'master'
38 changes: 21 additions & 17 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/* eslint-disable */
/*
/**
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/en/configuration.html
* https://jestjs.io/docs/configuration
*/

module.exports = {
/** @type {import('jest').Config} */
const config = {
// All imported modules in your tests should be mocked automatically
// automock: false,

// Stop running tests after `n` failures
// bail: 0,

// The directory where Jest should store its cached dependency information
// cacheDirectory: "/private/var/folders/mz/kxpr7hx56nd8d6kbjkdbg_sh0000gn/T/jest_dx",
// cacheDirectory: "/private/var/folders/qg/78gslkz92xz638hrdqthf6_r0000gn/T/jest_dx",

// Automatically clear mock calls and instances between every test
// Automatically clear mock calls, instances, contexts and results before every test
clearMocks: true,

// Indicates whether the coverage information should be collected while executing the test
Expand Down Expand Up @@ -51,6 +51,11 @@ module.exports = {
// Make calling deprecated APIs throw helpful error messages
// errorOnDeprecated: false,

// The default configuration for fake timers
// fakeTimers: {
// "enableGlobally": false
// },

// Force coverage collection from ignored files using an array of glob patterns
// forceCoverageMatch: [],

Expand All @@ -74,10 +79,12 @@ module.exports = {
// An array of file extensions your modules use
// moduleFileExtensions: [
// "js",
// "json",
// "mjs",
// "cjs",
// "jsx",
// "ts",
// "tsx",
// "json",
// "node"
// ],

Expand All @@ -102,7 +109,7 @@ module.exports = {
// Use this configuration option to add custom reporters to Jest
// reporters: undefined,

// Automatically reset mock state between every test
// Automatically reset mock state before every test
// resetMocks: false,

// Reset the module registry before running each individual test
Expand All @@ -111,7 +118,7 @@ module.exports = {
// A path to a custom resolver
// resolver: undefined,

// Automatically restore mock state between every test
// Automatically restore mock state and implementation before every test
// restoreMocks: false,

// The root directory that Jest should scan for tests and modules within
Expand All @@ -138,7 +145,7 @@ module.exports = {
// snapshotSerializers: [],

// The test environment that will be used for testing
// testEnvironment: "jest-environment-jsdom",
testEnvironment: 'jsdom',

// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
Expand All @@ -164,13 +171,7 @@ module.exports = {
// testResultsProcessor: undefined,

// This option allows use of a custom test runner
// testRunner: "jasmine2",

// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
// testURL: "http://localhost",

// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
// timers: "real",
// testRunner: "jest-circus/runner",

// A map from regular expressions to paths to transformers
// transform: undefined,
Expand All @@ -193,3 +194,6 @@ module.exports = {
// Whether to use watchman for file crawling
// watchman: true,
}

// eslint-disable-next-line unicorn/prefer-module
module.exports = config
4 changes: 1 addition & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "independent",
"packages": [
"packages/*"
]
"packages": ["packages/*"]
}
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"targetDefaults": {
"build": {
"cache": true,
"dependsOn": []
"dependsOn": ["^build"]
},
"lint": {
"cache": true,
Expand Down
Loading

0 comments on commit 6801c2d

Please sign in to comment.