32 lines
816 B
JavaScript
32 lines
816 B
JavaScript
// eslint.config.cjs
|
|
import js from "@eslint/js";
|
|
import ts from "@typescript-eslint/eslint-plugin";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
import globals from "globals";
|
|
|
|
module.exports = [
|
|
js.configs.recommended,
|
|
{
|
|
files: ["**/*.ts", "**/*.tsx"],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
globals: {
|
|
...globals.node,
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": ts,
|
|
},
|
|
rules: {
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
indent: "off",
|
|
"linebreak-style": "off",
|
|
quotes: "off",
|
|
semi: ["error", "always"],
|
|
},
|
|
},
|
|
];
|