0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-16 10:22:42 +00:00

Custom eslint plugin

This commit is contained in:
Trevor Buckner
2025-09-10 19:16:57 -04:00
parent 02a7920b2c
commit d728126bcc
3 changed files with 117 additions and 2 deletions

View File

@@ -1,13 +1,14 @@
import react from "eslint-plugin-react";
import jest from "eslint-plugin-jest";
import globals from "globals";
import localPlugin from "./eslint_plugins/index.js";
export default [{
ignores: ["build/"]
},
{
files : ['**/*.js', '**/*.jsx'],
plugins : { react, jest },
plugins : { react, jest, local: localPlugin },
languageOptions : {
ecmaVersion : "latest",
sourceType : "module",
@@ -65,7 +66,10 @@ export default [{
"key-spacing" : ["warn", {
multiLine : { beforeColon: true, afterColon: true, align: "colon" },
singleLine : { beforeColon: false, afterColon: true }
}]
}],
"local/aligned-useState-pairs": "warn"
}
}
];