Demo application (tic-tac-toe game and more) built with Web Components, with progressive enhancement.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import eslint from "@eslint/js";
|
|
|
|
import tsEslint from "typescript-eslint";
|
|
|
|
import prettierEslintRecommended from "eslint-plugin-prettier/recommended";
|
|
|
|
|
|
|
|
export default tsEslint.config(
|
|
|
|
eslint.configs.recommended,
|
|
|
|
...tsEslint.configs.strictTypeChecked,
|
|
|
|
...tsEslint.configs.stylisticTypeChecked,
|
|
|
|
prettierEslintRecommended,
|
|
|
|
{
|
|
|
|
languageOptions: {
|
|
|
|
parserOptions: {
|
|
|
|
projectService: true,
|
|
|
|
tsconfigRootDir: import.meta.dirname,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rules: {
|
|
|
|
"@typescript-eslint/restrict-template-expressions": [
|
|
|
|
"error",
|
|
|
|
{ allowNumber: true, allowNever: true },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
files: ["**/*.spec.*"],
|
|
|
|
rules: {
|
|
|
|
"@typescript-eslint/require-await": "off",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
);
|