23 lines
503 B
JavaScript
23 lines
503 B
JavaScript
import typescript from "@typescript-eslint/eslint-plugin";
|
|
import typescriptParser from "@typescript-eslint/parser";
|
|
|
|
export default [
|
|
{
|
|
files: ["**/*.ts", "**/*.tsx"],
|
|
languageOptions: {
|
|
parser: typescriptParser,
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
project: "./tsconfig.json",
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": typescript,
|
|
},
|
|
rules: {
|
|
...typescript.configs.recommended.rules,
|
|
},
|
|
},
|
|
];
|