35 lines
657 B
JavaScript
35 lines
657 B
JavaScript
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
import baseConfig from "./base.js";
|
|
|
|
/** @type {import("eslint").Linter.Config[]} */
|
|
export default [
|
|
...baseConfig,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
JSX: true,
|
|
React: true,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": tseslint.plugin,
|
|
},
|
|
rules: {
|
|
"react/prop-types": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
},
|
|
];
|