diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..aa66eaa --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,22 @@ +/* eslint-env node */ +require('@rushstack/eslint-patch/modern-module-resolution') + +module.exports = { + root: true, + extends: [ + 'eslint:recommended', + 'plugin:@ecocode/recommended', + 'plugin:vue/vue3-essential', + '@vue/eslint-config-prettier/skip-formatting', + 'plugin:storybook/recommended' + ], + overrides: [ + { + files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'], + extends: ['plugin:playwright/recommended'] + } + ], + parserOptions: { + ecmaVersion: 'latest' + } +} diff --git a/.gitignore b/.gitignore index 2cd639a..e7abba5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,9 @@ !.gitignore !.gitattributes !.github/ +!.eslintrc.cjs +!.nvmrc +!.prettierrc.json # Ignore generated files target diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..2edeafb --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20 \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..66e2335 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://json.schemastore.org/prettierrc", + "semi": false, + "tabWidth": 2, + "singleQuote": true, + "printWidth": 100, + "trailingComma": "none" +} \ No newline at end of file