diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..214388f --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,3 @@ +> 1% +last 2 versions +not dead diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..7ac7acf --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,23 @@ +module.exports = { + root: true, + env: { + node: true + }, + extends: [ + 'plugin:vue/recommended', + 'eslint:recommended' + ], + parserOptions: { + parser: 'babel-eslint' + }, + rules: { + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'vue/html-closing-bracket-newline': 'off', + 'vue/html-indent': 'off', + 'vue/html-self-closing': 'off', + 'vue/max-attributes-per-line': 'off', + 'vue/multiline-html-element-content-newline': 'off', + 'vue/singleline-html-element-content-newline': 'off' + } +}; diff --git a/package.json b/package.json index 2e53a25..cebeb10 100644 --- a/package.json +++ b/package.json @@ -30,31 +30,5 @@ "style-resources-loader": "^1.4.1", "vue-cli-plugin-style-resources-loader": "^0.1.4", "vue-template-compiler": "^2.6.11" - }, - "eslintConfig": { - "root": true, - "env": { - "node": true - }, - "extends": [ - "plugin:vue/recommended", - "eslint:recommended" - ], - "parserOptions": { - "parser": "babel-eslint" - }, - "rules": { - "vue/html-closing-bracket-newline": "off", - "vue/html-indent": "off", - "vue/html-self-closing": "off", - "vue/max-attributes-per-line": "off", - "vue/multiline-html-element-content-newline": "off", - "vue/singleline-html-element-content-newline": "off" - } - }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not dead" - ] + } }