diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..216d142 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,9 @@ +module.exports = { + root: true, + + extends: ['eslint:recommended', 'plugin:unicorn/recommended', 'prettier'], + + rules: { + 'unicorn/no-reduce': ['off'], + }, +}; diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..d563552 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,9 @@ +const jestCommon = require('./test/config/jest.common'); +const lintProject = require('./test/config/jest.lint'); +const unitTestProject = require('./test/config/jest.unit'); + +module.exports = { + ...jestCommon, + + projects: [unitTestProject, lintProject], +}; diff --git a/lib/components/Form.svelte b/lib/components/Form.svelte index 2342660..de72ec4 100644 --- a/lib/components/Form.svelte +++ b/lib/components/Form.svelte @@ -1,6 +1,6 @@