Skip to content

Commit

Permalink
Use prettier for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobesson committed May 1, 2020
1 parent 8358b14 commit 5f6b3d1
Show file tree
Hide file tree
Showing 347 changed files with 24,859 additions and 24,701 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
tools/
102 changes: 24 additions & 78 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,24 @@
{
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/recommended",
"eslint:recommended",
"@vue/standard"
],
"rules": {
"no-unused-vars": "warn",
"no-console": "warn",
"indent": [
"off",
2
],
"vue/html-indent": [
"warn",
2
],
"vue/script-indent": [
"warn",
2,
{
"baseIndent": 1
}
],
"vue/no-v-html": "error",
"vue/order-in-components": "warn",
"vue/no-multi-spaces": "warn",
"vue/require-prop-types": "warn",
"vue/require-default-prop": "warn",
"vue/attributes-order": "off",
"vue/max-attributes-per-line": ["warn", {
"singleline": 4,
"multiline": {
"max": 1,
"allowFirstLine": false
}
}],
"vue/no-use-v-if-with-v-for": "error",
"vue/html-closing-bracket-newline": "warn",
"vue/html-closing-bracket-spacing": "warn",
"vue/prop-name-casing": ["error", "camelCase"],
"eqeqeq": "warn",
"camelcase": "off",
"no-trailing-spaces": "warn",
"semi": [
"error",
"always"
],
"quotes": "warn",
"object-curly-spacing": "warn",
"brace-style": [
"warn",
"1tbs",
{
"allowSingleLine": false
}
],
"space-before-function-paren": [
"warn",
"never"
],
"object-shorthand": [
"error",
"always"
],
"no-var": "error",
"prefer-const": "error",
"no-multi-assign": "error",
"space-infix-ops": "warn"
},
"parserOptions": {
"parser": "babel-eslint"
}
}
{
"root": true,
"env": {
"node": true
},
"extends": ["plugin:vue/recommended", "@vue/prettier"],
"rules": {
"no-unused-vars": "warn",
"no-console": "warn",
"vue/no-v-html": "error",
"vue/order-in-components": "warn",
"vue/require-prop-types": "warn",
"vue/require-default-prop": "warn",
"vue/attributes-order": "off",
"vue/no-use-v-if-with-v-for": "error",
"vue/prop-name-casing": ["error", "camelCase"],
"eqeqeq": "warn",
"camelcase": "off",
"object-shorthand": ["error", "always"]
},
"parserOptions": {
"parser": "babel-eslint"
}
}
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"vueIndentScriptAndStyle": false,
"endOfLine": "auto",
"singleQuote": true,
"printWidth": 120
}
23 changes: 10 additions & 13 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
module.exports = {
presets: [
['@vue/app', {
polyfills: [
'es6.promise',
'es6.symbol',
'es6.array.from',
'es6.object.assign',
'es7.object.values'
]
}]
]
};
module.exports = {
presets: [
[
'@vue/app',
{
polyfills: ['es6.promise', 'es6.symbol', 'es6.array.from', 'es6.object.assign', 'es7.object.values'],
},
],
],
};

0 comments on commit 5f6b3d1

Please sign in to comment.