Skip to content

Commit

Permalink
Merge pull request #840 from infinum/release/13.0.2
Browse files Browse the repository at this point in the history
13.0.2
  • Loading branch information
goranalkovic-infinum authored Sep 16, 2024
2 parents 8dea696 + 2fd1b11 commit 3e29649
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 96 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).

## [13.0.2]

### Changed
- Updated dependencies.
- Updated default ESLint config.

## [13.0.1]

### Changed
Expand Down Expand Up @@ -1347,6 +1353,7 @@ Follow this migration script in order for you project to work correctly with the
- Initial tagged release.

[Unreleased]: https://github.com/infinum/eightshift-frontend-libs/compare/master...HEAD
[13.0.2]: https://github.com/infinum/eightshift-frontend-libs/compare/13.0.1...13.0.2
[13.0.1]: https://github.com/infinum/eightshift-frontend-libs/compare/13.0.0...13.0.1
[13.0.0]: https://github.com/infinum/eightshift-frontend-libs/compare/12.1.6...13.0.0
[12.1.6]: https://github.com/infinum/eightshift-frontend-libs/compare/12.1.5...12.1.6
Expand Down
144 changes: 72 additions & 72 deletions linters/base.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,76 +4,76 @@ import stylistic from '@stylistic/eslint-plugin-js';
import globals from 'globals';

export default [
{
ignores: ['**/dist/', 'public/'],
},
{
files: ['**/*.js', '**/*.jsx'],
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
wp: true,
...globals.serviceworker,
...globals.browser,
},
},
plugins: {
// react,
// 'react-hooks': reactHooks,
'@stylistic/js': stylistic,
},
rules: {
'newline-before-return': 'error',
'no-constant-binary-expression': 'error',
'no-implicit-coercion': 'error',
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'no-nested-ternary': 'error',
'no-underscore-dangle': ['error', { allowAfterThis: true }],
'no-void': 'error',
'@stylistic/js/semi': 'error',
'max-len': [
'error',
{
code: 180,
comments: 500,
ignorePattern: '^import .*',
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreTrailingComments: true,
},
],
'padding-line-between-statements': [
'error',
{
blankLine: 'always',
prev: '*',
next: ['return', 'if', 'switch', 'for', 'while', 'try', 'throw'],
},
{
blankLine: 'any',
prev: ['const', 'let', 'var', 'import'],
next: ['const', 'let', 'var', 'import'],
},
],
// React-specific.
// Note: React rules are temporarily disabled until the plugin gets full compatibility with ESLint 9.
// 'consistent-return': 'warn',
// 'no-param-reassign': 'warn',
// 'react-hooks/rules-of-hooks': 'error',
// // 'react-hooks/exhaustive-deps': ['error', { additionalHooks: '(useSafeLayoutEffect|useUpdateEffect)' }],
// 'react/prop-types': ['error', { skipUndeclared: true }],
// 'react/react-in-jsx-scope': 'off',
// 'react/self-closing-comp': ['warn', { component: true, html: true }],
// 'react/no-unknown-property': ['error', { ignore: ['css'] }],
},
// settings: {
// react: {
// version: '18',
// },
// },
}
{
ignores: ['**/dist/', 'public/', 'node_modules/', 'vendor/', 'vendor-prefixed/'],
},
{
files: ['**/*.js', '**/*.jsx'],
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
wp: true,
...globals.serviceworker,
...globals.browser,
},
},
plugins: {
// react,
// 'react-hooks': reactHooks,
'@stylistic/js': stylistic,
},
rules: {
'newline-before-return': 'error',
'no-constant-binary-expression': 'error',
'no-implicit-coercion': 'error',
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'no-nested-ternary': 'error',
'no-underscore-dangle': ['error', { allowAfterThis: true }],
'no-void': 'error',
'@stylistic/js/semi': 'error',
'max-len': [
'error',
{
code: 180,
comments: 500,
ignorePattern: '^import .*',
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreTrailingComments: true,
},
],
'padding-line-between-statements': [
'error',
{
blankLine: 'always',
prev: '*',
next: ['return', 'if', 'switch', 'for', 'while', 'try', 'throw'],
},
{
blankLine: 'any',
prev: ['const', 'let', 'var', 'import'],
next: ['const', 'let', 'var', 'import'],
},
],
// React-specific.
// Note: React rules are temporarily disabled until the plugin gets full compatibility with ESLint 9.
// 'consistent-return': 'warn',
// 'no-param-reassign': 'warn',
// 'react-hooks/rules-of-hooks': 'error',
// // 'react-hooks/exhaustive-deps': ['error', { additionalHooks: '(useSafeLayoutEffect|useUpdateEffect)' }],
// 'react/prop-types': ['error', { skipUndeclared: true }],
// 'react/react-in-jsx-scope': 'off',
// 'react/self-closing-comp': ['warn', { component: true, html: true }],
// 'react/no-unknown-property': ['error', { ignore: ['css'] }],
},
// settings: {
// react: {
// version: '18',
// },
// },
},
];
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eightshift/frontend-libs",
"version": "13.0.1",
"version": "13.0.2",
"description": "A collection of useful frontend utility modules. powered by Eightshift",
"author": {
"name": "Eightshift team",
Expand Down Expand Up @@ -36,53 +36,53 @@
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@eightshift/ui-components": "^1.4.6",
"@stylistic/eslint-plugin-js": "^2.3.0",
"@stylistic/stylelint-plugin": "^2.1.2",
"@swc/core": "^1.7.2",
"@eightshift/ui-components": "^1.5.0",
"@stylistic/eslint-plugin-js": "^2.8.0",
"@stylistic/stylelint-plugin": "^3.0.1",
"@swc/core": "^1.7.26",
"@uidotdev/usehooks": "^2.4.1",
"@wordpress/api-fetch": "^7.4.0",
"@wordpress/block-editor": "^13.4.0",
"@wordpress/api-fetch": "^7.7.0",
"@wordpress/block-editor": "^14.2.0",
"@wordpress/dependency-extraction-webpack-plugin": "^5.9.0",
"@wordpress/dom-ready": "^4.4.0",
"@wordpress/server-side-render": "^5.4.0",
"autoprefixer": "^10.4.19",
"@wordpress/dom-ready": "^4.7.0",
"@wordpress/server-side-render": "^5.7.0",
"autoprefixer": "^10.4.20",
"clean-webpack-plugin": "^4.0.0",
"core-js": "^3.37.1",
"core-js": "^3.38.1",
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "^7.0.0",
"eslint": "^9.7.0",
"eslint": "^9.10.0",
"file-loader": "^6.2.0",
"globals": "^15.8.0",
"husky": "^9.1.2",
"globals": "^15.9.0",
"husky": "^9.1.6",
"import-glob": "^1.5.0",
"media-blender": "^2.1.0",
"mini-css-extract-plugin": "^2.9.0",
"postcss": "^8.4.40",
"mini-css-extract-plugin": "^2.9.1",
"postcss": "^8.4.47",
"postcss-loader": "^8.1.1",
"postcss-scss": "^4.0.9",
"promisify-child-process": "^4.1.2",
"raw-loader": "^4.0.2",
"regenerator-runtime": "^0.14.1",
"sass": "^1.77.8",
"sass-loader": "^15.0.0",
"sass": "^1.78.0",
"sass-loader": "^16.0.1",
"style-loader": "^4.0.0",
"stylelint": "^16.7.0",
"stylelint": "^16.9.0",
"stylelint-config-standard": "^36.0.1",
"stylelint-config-standard-scss": "^13.1.0",
"swc-loader": "^0.2.6",
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.93.0",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4",
"webpack-manifest-plugin": "^5.0.0",
"webpack-merge": "^6.0.1"
},
"devDependencies": {
"lint-staged": "^15.2.7",
"lint-staged": "^15.2.10",
"micromodal": "^0.4.10",
"ol": "^9.2.4",
"ol-mapbox-style": "^12.3.4",
"swiper": "^11.1.8"
"ol": "^10.1.0",
"ol-mapbox-style": "^12.3.5",
"swiper": "^11.1.14"
},
"sideEffects": false,
"lint-staged": {
Expand Down

0 comments on commit 3e29649

Please sign in to comment.