Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'plugin:vue/recommended',
'standard',
'prettier',
'prettier/standard',
'prettier/vue',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
sourceType: 'script',
},
plugins: ['vue'],
rules: {
'no-debugger': 'error',
'no-console': ['error', { allow: ['warn', 'error'] }],
'vue/array-bracket-spacing': 'error',
'vue/arrow-spacing': 'error',
'vue/block-spacing': 'error',
'vue/brace-style': 'error',
'vue/camelcase': 'error',
'vue/comma-dangle': ['error', 'always-multiline'],
'vue/component-name-in-template-casing': 'error',
'vue/eqeqeq': 'error',
'vue/no-boolean-default': ['error', 'default-false'],
'vue/object-curly-spacing': ['error', 'always'],
'vue/space-infix-ops': 'error',
'vue/space-unary-ops': 'error',
'vue/v-on-function-call': 'error',
},
overrides: [
{
files: ['src/**/*'],
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
},
env: {
browser: true,
},
},
],
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
Expand Down
14 changes: 14 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: true,
trailingComma: 'es5',
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'always',
proseWrap: 'never',
htmlWhitespaceSensitivity: 'strict',
endOfLine: 'lf',
}
23 changes: 23 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"recommendations": [
// Realce de sintaxe e outras coisas para o Vue
// https://github.com/vuejs/vetur
"octref.vetur",

// vue-peek
// https://github.com/fuzinato/vscode-vue-peek
"dariofuzinato.vue-peek",

// Lint ao salvar para o ESLint
// https://github.com/Microsoft/vscode-eslint
"dbaeumer.vscode-eslint",

// Format ao salvar para o Prettier
// https://github.com/prettier/prettier-vscode
"esbenp.prettier-vscode",

// Para visualizar alterações Git
// https://github.com/eamodio/vscode-gitlens
"eamodio.gitlens"
]
}
88 changes: 88 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
// ===
// Espaços
// ===

"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.trimAutoWhitespace": true,
"files.trimTrailingWhitespace": true,
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,

// ===
// Arquivos
// ===

"files.exclude": {
"**/*.log": true,
"**/*.log*": true,
"**/dist": true,
"**/coverage": true
},
"files.associations": {
".markdownlintrc": "jsonc"
},

// ===
// Eventos
// ===

"editor.formatOnSave": true,
"eslint.autoFixOnSave": true,
"eslint.run": "onSave",
"eslint.validate": [
{ "language": "javascript", "autoFix": true },
{ "language": "javascriptreact", "autoFix": true },
{ "language": "vue", "autoFix": true },
{ "language": "vue-html", "autoFix": true },
{ "language": "html", "autoFix": true }
],
"vetur.completion.useScaffoldSnippets": false,
"prettier.disableLanguages": [],

// ===
// HTML
// ===

"html.format.enable": false,
"vetur.validation.template": false,
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"vue-html": "html"
},
"vetur.format.defaultFormatter.html": "none",

// ===
// JS(ON)
// ===

"jest.autoEnable": false,
"jest.enableCodeLens": false,
"javascript.format.enable": false,
"json.format.enable": false,
"vetur.validation.script": false,
"vetur.format.defaultFormatter.js": "none",

// ===
// CSS
// ===

"stylelint.enable": true,
"css.validate": false,
"scss.validate": false,
"vetur.validation.style": false,
"vetur.format.defaultFormatter.css": "none",
"vetur.format.defaultFormatter.postcss": "none",
"vetur.format.defaultFormatter.scss": "none",

// ===
// MARKDOWN
// ===

"[markdown]": {
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 80
}
}
44 changes: 20 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,28 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^2.6.5",
"vue": "^2.6.10",
"axios": "^0.19.0"
"vue": "2.6.10",
"axios": "0.19.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.9.0",
"@vue/cli-plugin-eslint": "^3.9.0",
"@vue/cli-service": "^3.9.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"vue-template-compiler": "^2.6.10"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
}
"@vue/cli-plugin-babel": "3.9.x",
"@vue/cli-plugin-eslint": "3.9.x",
"@vue/cli-service": "3.9.x",
"@vue/eslint-config-prettier": "5.0.x",
"@vue/eslint-config-standard": "4.0.x",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.x",
"babel-plugin-component": "1.1.1",
"babel-plugin-require-context-hook": "1.0.0",
"eslint": "^6.1.0",
"eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^5.2.3",
"prettier": "1.18.x",
"vue-template-compiler": "2.6.10"
},
"postcss": {
"plugins": {
Expand Down
21 changes: 14 additions & 7 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<title>List</title>
</head>
<body>
<noscript>
<strong>We're sorry but projeto1 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong
>We're sorry but this page doesn't work properly without JavaScript
enabled. Please enable it to continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
Expand Down
Loading