Skip to content

Commit

Permalink
feat: Standardized & cleaned up formatting & linting across repo spec…
Browse files Browse the repository at this point in the history
…klesystems#617 (specklesystems#618)

* feat: Standardized & cleaned up formatting & linting across repo

Co-authored-by: Kristaps Fabians Geikins <[email protected]>
Co-authored-by: Gergő Jedlicska <[email protected]>
  • Loading branch information
3 people authored Mar 16, 2022
1 parent e9cad78 commit 8010bf3
Show file tree
Hide file tree
Showing 65 changed files with 113,551 additions and 129,746 deletions.
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/** @type {import("eslint").Linter.Config} */
const config = {
root: true,
env: {
es2021: true,
node: true,
commonjs: true
},
extends: ['eslint:recommended', 'prettier'],
rules: {
camelcase: [
1,
{
properties: 'always'
}
],
'no-var': 'error',
'no-alert': 'error',
'no-param-reassign': 'warn',
eqeqeq: 'warn'
},
ignorePatterns: ['node_modules', 'dist', 'public']
}

module.exports = config
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ packages/viewer/dist
*.crt
.nyc_output
coverage/
.vscode
.idea
test-queries

Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "octref.vetur"],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
66 changes: 1 addition & 65 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"window.openFilesInNewWindow": "off",
"explorer.confirmDelete": false,
// "[vue]": {
// "editor.formatOnSave": true,
// },
"files.associations": {
"*.vue": "vue"
},
Expand All @@ -15,69 +12,8 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-expand-multiline"
},
"prettyhtml": {
"printWidth": 100,
"singleQuote": false,
"wrapAttributes": false,
"sortAttributes": false
}
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"cSpell.enableFiletypes": ["vue-html", "vue-postcss"],
"[vue]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"cSpell.userWords": ["Matomo", "SUPPRESSMSGBOXES", "matomo"],
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"cSpell.words": ["mixpanel"]

// "[javascript]": {
// "editor.defaultFormatter": "dbaeumer.vscode-eslint"
// },
// "[jsonc]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// }
// "eslint.codeAction.showDocumentation": {
// "enable": true
// },
// "eslint.validate": ["vue"],
// "[js]": {
// "editor.defaultFormatter": "dbaeumer.vscode-eslint"
// },
// "vetur.format.defaultFormatterOptions": {
// "prettier": {
// // Prettier option here
// "semi": false,
// "trailingComma": "es5",
// "tabWidth": 2,
// "bracketSpacing": true,
// "vueIndentScriptAndStyle": true,
// "eslintIntegration": true
// }
// },
// "[javascript]": {
// "editor.defaultFormatter": "dbaeumer.vscode-eslint"
// },
// "[vue]": {
// //"editor.defaultFormatter": "octref.vetur"
// "editor.defaultFormatter": "dbaeumer.vscode-eslint"
// },
// "cSpell.userWords": [
// "vetur",
// "vuetify"
// ],
// "[jsonc]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// }
}
7 changes: 7 additions & 0 deletions jsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"target": "es2021",
"module": "commonJS"
},
"exclude": ["node_modules"]
}
Loading

0 comments on commit 8010bf3

Please sign in to comment.