BlueGit

timfa frameworkv3

update config

timfa Tim Falken · pushed by timfa

Authored 2024-08-22 · 2 years ago

Hash
3bfaf9ecfdde375f4dee64b35033985a1470ef78
Parent
7be66de5
2 files changed +3 −3
.gitlab-ci.yml +1 −1
@@ -11,7 +11,7 @@ eslint:
11 11 image: node:18 # Using an official Node.js Docker image
12 12 script:
13 13 - npm install -g eslint
14 - eslint ./**/*.js # Lint all JavaScript files
14 - eslint framework/**/*.js --ignore-pattern "framework/extensions/thirdparty.js"
15 15 only:
16 16 - merge_requests # Run on merge requests
17 17
@@ -11,7 +11,7 @@ eslint:
11 image: node:18 # Using an official Node.js Docker image
11 image: node:18 # Using an official Node.js Docker image
12 script:
12 script:
13 - npm install -g eslint
13 - npm install -g eslint
14 - eslint ./**/*.js # Lint all JavaScript files
14 - eslint framework/**/*.js --ignore-pattern "framework/extensions/thirdparty.js"
15 only:
15 only:
16 - merge_requests # Run on merge requests
16 - merge_requests # Run on merge requests
17
17
eslint.config.mjs +2 −2
@@ -2,8 +2,8 @@ export default [
2 2 {
3 3 files: ["**/*.js"],
4 4 languageOptions: {
5 ecmaVersion: 12, // equivalent to es2021: true
6 sourceType: "script", // for ECMAScript modules
5 ecmaVersion: 2023,
6 sourceType: "script",
7 7 globals: {
8 8 window: "readonly", // For browser environment globals (e.g., `window`, `document`)
9 9 document: "readonly"
@@ -2,8 +2,8 @@ export default [
2 {
2 {
3 files: ["**/*.js"],
3 files: ["**/*.js"],
4 languageOptions: {
4 languageOptions: {
5 ecmaVersion: 12, // equivalent to es2021: true
5 ecmaVersion: 2023,
6 sourceType: "script", // for ECMAScript modules
6 sourceType: "script",
7 globals: {
7 globals: {
8 window: "readonly", // For browser environment globals (e.g., `window`, `document`)
8 window: "readonly", // For browser environment globals (e.g., `window`, `document`)
9 document: "readonly"
9 document: "readonly"