Skip to content

Commit

Permalink
Merge pull request #572 from hoogi91/dependabot/npm_and_yarn/eslint-9…
Browse files Browse the repository at this point in the history
….8.0

Bump eslint from 8.57.0 to 9.8.0
  • Loading branch information
github-actions[bot] authored Aug 1, 2024
2 parents 1f9d5e5 + 450d2a8 commit 563219c
Show file tree
Hide file tree
Showing 13 changed files with 327 additions and 1,048 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

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

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Composer install"
- name: "NPM install"
uses: ./.github/actions/npm
with:
node-version: '${{ matrix.node-version }}'
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Assets/JavaScript/dsn.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {colHeaderToIndex} from "./helper";
import {colHeaderToIndex} from "./helper.js";

export default class DSN {
constructor(value) {
Expand Down
8 changes: 4 additions & 4 deletions Resources/Private/Assets/JavaScript/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import DSN from './dsn';
import Renderer from './renderer';
import Spreadsheet from './spreadsheet';
import Selector from "./selector";
import DSN from './dsn.js';
import Renderer from './renderer.js';
import Spreadsheet from './spreadsheet.js';
import Selector from "./selector.js";
import DocumentService from 'DocumentService';

class SpreadsheetDataInput {
Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Assets/JavaScript/renderer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import DSN from "./dsn";
import {colHeaderByIndex} from "./helper";
import DSN from "./dsn.js";
import {colHeaderByIndex} from "./helper.js";

export default class Renderer {
constructor(sheetWrapper, tableWrapper) {
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Assets/JavaScript/selector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {calculateCellIndexes, cellRepresentation, throttle, unselectEverything} from "./helper";
import {calculateCellIndexes, cellRepresentation, throttle, unselectEverything} from "./helper.js";

export default class Selector {
constructor(tableWrapper) {
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Assets/JavaScript/spreadsheet.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DSN from './dsn';
import DSN from './dsn.js';

export default class Spreadsheet {
constructor(dsn, data) {
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/SpreadsheetDataInput.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import globals from "globals";
import babelParser from "@babel/eslint-parser";
import js from "@eslint/js";

export default [
js.configs.recommended,
{
files: ["**/*.js"],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
parser: babelParser,
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
"no-empty": [2, {"allowEmptyCatch": true}],
"no-unused-vars": [1, {"vars": "all", "args": "after-used", "ignoreRestSiblings": false}],
"indent": [2, 4],
"semi": [2, "always"],
}
}
];
Loading

0 comments on commit 563219c

Please sign in to comment.