Skip to content

Commit

Permalink
THRIFT-5811: Update eslint & prettier
Browse files Browse the repository at this point in the history
Client: js
Patch: Cameron Martin

This closes #3087
  • Loading branch information
cameron-martin authored and Jens-G committed Feb 28, 2025
1 parent 951bb18 commit caef0ed
Show file tree
Hide file tree
Showing 74 changed files with 4,880 additions and 4,570 deletions.
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

24 changes: 0 additions & 24 deletions .eslintrc.json

This file was deleted.

44 changes: 44 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import globals from "globals";
import js from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";

export default [
{
ignores: [
// TODO: Use eslint on js lib and generated code

// Ignore lib/js for now, which uses jshint currently
"lib/js/*",
// Ignore all generated code for now
"**/gen-*/",

// Don't lint nested node_modules
"**/node_modules/",
],
},
js.configs.recommended,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
...globals.node,
},

ecmaVersion: 2017,
sourceType: "commonjs",
},

rules: {
"no-console": "off",
"no-var": "error",
"prefer-const": "error",

"no-constant-condition": [
"error",
{
checkLoops: false,
},
],
},
},
];
Loading

0 comments on commit caef0ed

Please sign in to comment.