diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..0829442 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,12 @@ +module.exports = { + env: { + browser: true, + }, + root: true, + extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], + parser: '@typescript-eslint/parser', + plugins: ['@typescript-eslint'], + rules: { + '@typescript-eslint/no-explicit-any': 'warn', + }, +}; diff --git a/README.md b/README.md index 00e278d..f246998 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,6 @@ finite-state-automaton Use --- -### No build-tool - -While this project is written with the Node.Js tooling (Vite+MermaidJS), a simple transformation can be done to make it work in a browser. - -```sh -sed -i "s|from 'mermaid'|from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs'|" src/fsm.js -``` - ### Build-tool Run your favorite package manager (npm, yarn, pnpm, bun, etc.) to install the dependencies and build the Vite application: diff --git a/index.html b/index.html index 14c34ce..61d4201 100644 --- a/index.html +++ b/index.html @@ -21,8 +21,7 @@
- - +