Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import stylisticJs from '@stylistic/eslint-plugin';

import globals from 'globals';

import js from "@eslint/js"
import { defineConfig } from 'eslint/config';

export default [
js.configs.recommended,
export default defineConfig([
{
languageOptions: {
ecmaVersion: 'latest',
Expand Down Expand Up @@ -139,5 +138,5 @@ export default [
'@stylistic/js/template-curly-spacing': 'error'
}
}
];
]);

1 change: 0 additions & 1 deletion modules/base/math.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

/* eslint-disable curly */
/* eslint-disable no-loss-of-precision */
/* eslint-disable no-useless-assignment */
/* eslint-disable no-use-before-define */
/* eslint-disable no-else-return */
Expand Down
1 change: 0 additions & 1 deletion modules/geom/TGeoPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2831,7 +2831,6 @@ class TGeoPainter extends ObjectPainter {
break;
case 'mix':
this.#camera.add(new THREE.AmbientLight(0xefefef, p));
// eslint-disable-next-line no-fallthrough
default: // 6 point lights
for (let n = 0; n < 6; ++n) {
const l = new THREE.DirectionalLight(0xefefef, p);
Expand Down
6 changes: 0 additions & 6 deletions modules/geom/geobase.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,6 @@ function createMatrix(matrix) {
break;
case 'TGeoGenTrans':
scale = matrix.fScale; // no break, translation and rotation follows
// eslint-disable-next-line no-fallthrough
case 'TGeoCombiTrans':
translation = matrix.fTranslation;
rotation = matrix.fRotation?.fRotationMatrix;
Expand Down Expand Up @@ -2071,7 +2070,6 @@ createGeometry = function(shape, limit = 0) {
case clTGeoHalfSpace:
if (limit < 0)
return 1; // half space if just plane used in composite
// eslint-disable-next-line no-fallthrough
default:
geoWarn(`unsupported shape type ${shape._typename}`);
}
Expand Down Expand Up @@ -2211,7 +2209,6 @@ function provideObjectInfo(obj) {
break;
case clTGeoTrd2:
info.push(`Dy1=${conv(shape.fDy1)} Dy2=${conv(shape.fDy1)}`); // no break
// eslint-disable-next-line no-fallthrough
case clTGeoTrd1:
info.push(`Dx1=${conv(shape.fDx1)} Dx2=${conv(shape.fDx1)}`);
break;
Expand All @@ -2222,15 +2219,13 @@ function provideObjectInfo(obj) {
break;
case clTGeoConeSeg:
info.push(`Phi1=${shape.fPhi1} Phi2=${shape.fPhi2}`);
// eslint-disable-next-line no-fallthrough
case clTGeoCone:
info.push(`Rmin1=${conv(shape.fRmin1)} Rmax1=${conv(shape.fRmax1)}`,
`Rmin2=${conv(shape.fRmin2)} Rmax2=${conv(shape.fRmax2)}`);
break;
case clTGeoCtub:
case clTGeoTubeSeg:
info.push(`Phi1=${shape.fPhi1} Phi2=${shape.fPhi2}`);
// eslint-disable-next-line no-fallthrough
case clTGeoEltu:
case clTGeoTube:
info.push(`Rmin=${conv(shape.fRmin)} Rmax=${conv(shape.fRmax)}`);
Expand Down Expand Up @@ -2271,7 +2266,6 @@ function provideObjectInfo(obj) {
break;
case clTGeoGtra:
info.push(`TwistAngle=${conv(shape.fTwistAngle)}`);
// eslint-disable-next-line no-fallthrough
case clTGeoTrap:
info.push(`Phi=${conv(shape.fPhi)} Theta=${conv(shape.fTheta)}`);
break;
Expand Down
1 change: 0 additions & 1 deletion modules/gui/HierarchyPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,6 @@ function parseAsArray(val) {
nbr--;
break;
}
// eslint-disable-next-line no-fallthrough
case ',':
if (nbr === 0) {
let sub = val.substring(last, indx).trim();
Expand Down
1 change: 0 additions & 1 deletion modules/io.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,6 @@ function createMemberStreamer(element, file, no_string) {
case kOffsetL + kDouble32:
case kOffsetP + kDouble32:
member.double32 = true;
// eslint-disable-next-line no-fallthrough
case kFloat16:
case kOffsetL + kFloat16:
case kOffsetP + kFloat16:
Expand Down
1 change: 0 additions & 1 deletion modules/rntuple.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,6 @@ class ReaderItem {
break;
case kReal32Trunc:
this.buf = new DataView(new ArrayBuffer(4), 0);
// eslint-disable-next-line no-fallthrough
case kReal32Quant:
this.nbits = this.column.bitsOnStorage;
if (!this.buf) {
Expand Down
Loading