diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..b98ec308 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,29 @@ +module.exports = { + extends: [ + 'eslint:recommended', + 'plugin:jest-dom/recommended', + 'plugin:testing-library/recommended', + 'plugin:vue/vue3-recommended', + 'raine' + ], + parserOptions: { + parser: 'babel-eslint' + }, + plugins: [ + 'jest-dom', + 'testing-library' + ], + rules: { + 'vue/component-name-in-template-casing': [ + 2, + 'PascalCase' + ], + 'vue/max-attributes-per-line': 0, + 'vue/singleline-html-element-content-newline': 0, + 'vue/html-closing-bracket-newline': 0, + 'vue/attribute-hyphenation': 0, + 'vue/require-prop-types': 0, + 'vue/require-default-prop': 0, + 'vue/multiline-html-element-content-newline': 0 + } +} diff --git a/package.json b/package.json index 66489d2c..f2122584 100644 --- a/package.json +++ b/package.json @@ -71,35 +71,6 @@ "vue-jest": "^5.0.0-0", "vue-svg-loader": "^0.17.0-beta.2" }, - "eslintConfig": { - "extends": [ - "eslint:recommended", - "plugin:jest-dom/recommended", - "plugin:testing-library/recommended", - "plugin:vue/vue3-recommended", - "raine" - ], - "parserOptions": { - "parser": "babel-eslint" - }, - "plugins": [ - "jest-dom", - "testing-library" - ], - "rules": { - "vue/component-name-in-template-casing": [ - 2, - "PascalCase" - ], - "vue/max-attributes-per-line": 0, - "vue/singleline-html-element-content-newline": 0, - "vue/html-closing-bracket-newline": 0, - "vue/attribute-hyphenation": 0, - "vue/require-prop-types": 0, - "vue/require-default-prop": 0, - "vue/multiline-html-element-content-newline": 0 - } - }, "browserslist": [ "> 1%", "last 2 versions",