Skip to content

Commit

Permalink
Switch from eslint to biome
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Aug 21, 2024
1 parent 555bbff commit 711d65e
Show file tree
Hide file tree
Showing 18 changed files with 357 additions and 2,394 deletions.
4 changes: 0 additions & 4 deletions geppetto.js/.eslintignore

This file was deleted.

114 changes: 0 additions & 114 deletions geppetto.js/.eslintrc.js

This file was deleted.

156 changes: 156 additions & 0 deletions geppetto.js/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"formatWithErrors": false,
"lineWidth": 120
},
"json": {
"formatter": {
"trailingCommas": "none"
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"complexity": {
"noExtraBooleanCast": "error",
"noMultipleSpacesInRegularExpressionLiterals": "error",
"noUselessCatch": "error",
"noUselessTernary": "error",
"noWith": "error"
},
"correctness": {
"noConstAssign": "error",
"noConstantCondition": "off",
"noEmptyCharacterClassInRegex": "error",
"noEmptyPattern": "error",
"noGlobalObjectCalls": "error",
"noInnerDeclarations": "off",
"noInvalidConstructorSuper": "error",
"noInvalidNewBuiltin": "error",
"noNonoctalDecimalEscape": "error",
"noPrecisionLoss": "error",
"noSelfAssign": "error",
"noSetterReturn": "error",
"noSwitchDeclarations": "error",
"noUndeclaredVariables": "error",
"noUnreachable": "error",
"noUnreachableSuper": "error",
"noUnsafeFinally": "error",
"noUnsafeOptionalChaining": "error",
"noUnusedLabels": "error",
"noUnusedPrivateClassMembers": "error",
"noUnusedVariables": "off",
"useIsNan": "error",
"useValidForDirection": "error",
"useYield": "error"
},
"style": {
"useBlockStatements": "error"
},
"suspicious": {
"noAssignInExpressions": "error",
"noAsyncPromiseExecutor": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCompareNegZero": "error",
"noConsoleLog": "off",
"noControlCharactersInRegex": "off",
"noDebugger": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyBlockStatements": "error",
"noFallthroughSwitchClause": "error",
"noFunctionAssign": "error",
"noGlobalAssign": "off",
"noImportAssign": "error",
"noMisleadingCharacterClass": "error",
"noPrototypeBuiltins": "error",
"noRedeclare": "off",
"noShadowRestrictedNames": "error",
"noUnsafeNegation": "error",
"useGetterReturn": "error",
"useValidTypeof": "error"
}
},
"ignore": [
"**/*min.js",
"geppetto-ui/node_modules/*",
"geppetto-core/node_modules/*",
"geppetto-client/node_modules/*"
]
},
"javascript": {
"formatter": {
"arrowParentheses": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"semicolons": "always",
"trailingCommas": "all"
},
"globals": [
"geometry",
"root",
"registeredEvents",
"THREE",
"TestCase",
"Backbone",
"MozWebSocket",
"google",
"CodeMirror",
"τ",
"halfπ",
"Connectivity",
"EMBEDDED",
"Project",
"Stats",
"Plot1",
"gepetto-client",
"IPython",
"jstestdriver",
"EMBEDDERURL",
"_gaq",
"clientY",
"Instances",
"message",
"GEPPETTO",
"panelComponent",
"aabbMin",
"π",
"endpoint",
"Model",
"Handlebars",
"Canvas1",
"clientX",
"casper",
"aabbMax",
"path",
"Detector",
"VARS",
"olark",
"dr",
"ActiveXObject",
"GEPPETTO_CONFIGURATION",
"bb",
"PIXI",
"labelsInTV",
"stackViewerRequest",
"_",
"handleRequest",
"G",
"ClipboardModal",
"Store"
]
}
}
3 changes: 0 additions & 3 deletions geppetto.js/geppetto-client/.eslintignore

This file was deleted.

114 changes: 0 additions & 114 deletions geppetto.js/geppetto-client/.eslintrc.js

This file was deleted.

Loading

0 comments on commit 711d65e

Please sign in to comment.