Skip to content

Commit

Permalink
[TECH] Update dependency eslint to v9 (dossier racine)
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Jan 14, 2025
2 parents 6ff8b27 + c771339 commit 6c80817
Show file tree
Hide file tree
Showing 113 changed files with 954 additions and 622 deletions.
30 changes: 0 additions & 30 deletions .eslintignore

This file was deleted.

60 changes: 0 additions & 60 deletions .eslintrc.js

This file was deleted.

6 changes: 5 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
const config = {
addons: ['@storybook/addon-essentials', '@storybook/addon-a11y', '@storybook/addon-webpack5-compiler-babel'],
addons: [
'@storybook/addon-essentials',
'@storybook/addon-a11y',
'@storybook/addon-webpack5-compiler-babel',
],

stories: ['../docs/**/*.@(mdx|stories.@(mdx))', '../app/*/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
staticDirs: ['../dist'],
Expand Down
1 change: 1 addition & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { addons } from '@storybook/manager-api';

import storybookCustomTheme from './storybook-custom-theme';

addons.setConfig({
Expand Down
4 changes: 2 additions & 2 deletions addon/components/pix-accordions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

export default class PixAccordions extends Component {
text = 'pix-accordions';
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-app-layout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { warn } from '@ember/debug';
import Component from '@glimmer/component';

export default class PixAppLayout extends Component {
get variant() {
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-banner-alert.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { action } from '@ember/object';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
const TYPE_INFO = 'information';
const TYPE_ERROR = 'error';
const TYPE_WARNING = 'warning';
Expand Down
3 changes: 2 additions & 1 deletion addon/components/pix-button-upload.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import PixButtonBase from './pix-button-base';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';

import PixButtonBase from './pix-button-base';

export default class PixButtonUpload extends PixButtonBase {
@tracked
files = [];
Expand Down
7 changes: 4 additions & 3 deletions addon/components/pix-checkbox.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Component from '@glimmer/component';
import { guidFor } from '@ember/object/internals';
import { action } from '@ember/object';
import { warn } from '@ember/debug';
import { action } from '@ember/object';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';

import { formatMessage } from '../translations';

export default class PixCheckbox extends Component {
Expand Down
6 changes: 3 additions & 3 deletions addon/components/pix-filterable-and-searchable-select.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
import { guidFor } from '@ember/object/internals';
import { inject as service } from '@ember/service';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

export default class PixFilterableAndSearchableSelect extends Component {
@service elementHelper;
Expand Down
4 changes: 2 additions & 2 deletions addon/components/pix-icon-button.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { warn } from '@ember/debug';
import { action } from '@ember/object';
import Component from '@glimmer/component';

export default class PixIconButton extends Component {
text = 'pix-icon-button';
Expand Down
4 changes: 2 additions & 2 deletions addon/components/pix-icon.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from '@glimmer/component';
import { warn } from '@ember/debug';
import { ICONS } from '@1024pix/pix-ui/helpers/icons';
import { warn } from '@ember/debug';
import Component from '@glimmer/component';

export default class PixIcon extends Component {
get title() {
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-indicator-card.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';

export default class PixIndicatorCard extends Component {
id = guidFor(this);
Expand Down
3 changes: 1 addition & 2 deletions addon/components/pix-input-base.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Component from '@glimmer/component';

import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';

export default class PixInputBase extends Component {
prefix;
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-input-code.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import Component from '@glimmer/component';

const ERROR_MESSAGE =
'ERROR in PixInputCode component, you must provide an @ariaLabel and a @legend';
Expand Down
4 changes: 2 additions & 2 deletions addon/components/pix-input-password.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import PixInputBase from './pix-input-base';

import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';

import PixInputBase from './pix-input-base';

export default class PixInputPassword extends PixInputBase {
constructor() {
super(...arguments);
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-modal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';

export default class PixModal extends Component {
constructor(...args) {
Expand Down
5 changes: 2 additions & 3 deletions addon/components/pix-multi-select.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import Component from '@glimmer/component';

import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

function sortOptionsByCheckedFirst(a, b) {
if (a.checked && b.checked) return 0;
Expand Down
4 changes: 2 additions & 2 deletions addon/components/pix-navigation.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

export default class PixMNavigation extends Component {
constructor(...args) {
Expand Down
1 change: 1 addition & 0 deletions addon/components/pix-pagination.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import Component from '@glimmer/component';

import { formatMessage } from '../translations';

const DEFAULT_PAGE_OPTIONS = [
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-progress-bar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';

export default class PixProgressBar extends Component {
get id() {
Expand Down
7 changes: 4 additions & 3 deletions addon/components/pix-radio-button.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Component from '@glimmer/component';
import { guidFor } from '@ember/object/internals';
import { action } from '@ember/object';
import { warn } from '@ember/debug';
import { action } from '@ember/object';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';

import { formatMessage } from '../translations';

export default class PixRadioButton extends Component {
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-return-to.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { warn } from '@ember/debug';
import Component from '@glimmer/component';

export default class PixReturnTo extends Component {
text = 'pix-return-to';
Expand Down
4 changes: 2 additions & 2 deletions addon/components/pix-search-input.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import PixInputBase from './pix-input-base';

import { action } from '@ember/object';
import { debounceTask } from 'ember-lifeline';

import PixInputBase from './pix-input-base';

export default class PixSearchInput extends PixInputBase {
initialValue = this.args.value;

Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-select-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class PixSelectList extends Component {
return !this.args.isExpanded || this.args.hideDefaultOption;
}
get results() {
let results = [];
const results = [];
let options = this.args.options;

if (this.args.searchValue) {
Expand Down
6 changes: 3 additions & 3 deletions addon/components/pix-select.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { guidFor } from '@ember/object/internals';
import { inject as service } from '@ember/service';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

export default class PixSelect extends Component {
@service elementHelper;
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-selectable-tag.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import Component from '@glimmer/component';

export default class PixSelectableTag extends Component {
@action
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-sidebar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';

export default class PixSidebar extends Component {
constructor(...args) {
Expand Down
4 changes: 2 additions & 2 deletions addon/components/pix-structure-switcher.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
export default class PixStructureSwitcher extends Component {
constructor(...args) {
super(...args);
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-table-column.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { warn } from '@ember/debug';
import Component from '@glimmer/component';

export default class PixTableColumn extends Component {
get displayHeader() {
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-table.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { warn } from '@ember/debug';
import Component from '@glimmer/component';

export default class PixTable extends Component {
get variant() {
Expand Down
4 changes: 2 additions & 2 deletions addon/components/pix-textarea.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

export default class PixTextarea extends Component {
// eslint-disable-next-line ember/no-tracked-properties-from-args
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-toast-container.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { service } from '@ember/service';
import Component from '@glimmer/component';

export default class PixToastContainer extends Component {
@service pixToast;
Expand Down
6 changes: 3 additions & 3 deletions addon/components/pix-toast.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Component from '@glimmer/component';
import { service } from '@ember/service';
import { action } from '@ember/object';
import { warn } from '@ember/debug';
import { action } from '@ember/object';
import { service } from '@ember/service';
import Component from '@glimmer/component';
const TYPE_SUCCESS = 'success';
const TYPE_ERROR = 'error';
const TYPE_INFORMATION = 'information';
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-toggle-button.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { guidFor } from '@ember/object/internals';
import Component from '@glimmer/component';

export default class PixToggleButton extends Component {
get className() {
Expand Down
2 changes: 1 addition & 1 deletion addon/components/pix-tooltip.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { action } from '@ember/object';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

export default class PixTooltip extends Component {
Expand Down
Loading

0 comments on commit 6c80817

Please sign in to comment.