Skip to content

Commit

Permalink
fix eslint formatting on TS files
Browse files Browse the repository at this point in the history
  • Loading branch information
equiman committed Sep 20, 2023
1 parent 7af4a43 commit c4cc819
Show file tree
Hide file tree
Showing 32 changed files with 563 additions and 191 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build
coverage
dist
bin
8 changes: 7 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
module.exports = {
plugins: ["@typescript-eslint"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
env: {
es2021: true,
node: true
},
parser: "@typescript-eslint/parser",
extends: ['standard'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
rules: {}
rules: {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
}
}
19 changes: 8 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,26 @@
},
"typescript.autoClosingTags": true,
"typescript.suggest.autoImports": true,
"editor.formatOnSave": true,
"javascript.format.enable": false,
"javascript.validate.enable": true,
"typescript.format.enable": false,
"typescript.validate.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.probe": [
"editor.formatOnSave": true,
"eslint.validate": [
"javascript",
"typescript",
],
"[javascript][typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": [
"source.formatDocument",
"source.fixAll.eslint"
],
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.formatDocument": true,
"source.fixAll.eslint": true
},
},
"explorer.fileNesting.patterns": {
"README*": "BRAND*, CHANGELOG*, CODE_OF_CONDUCT.md, CONTRIBUTING.md, LICENSE*, README*, CHEATSHEET*, TEMPLATES*",
"package*": "sonar-project*, .gitignore, bunfig.toml, .npmignore, .eslintignore, .eslintrc.cjs, bun.lockb, tsconfig.json, vitest.config.ts",
"package*": "sonar-project*, .gitignore, bunfig.toml, .npmignore, .eslintignore, .eslintrc.cjs, bun.lockb, tsconfig.json, vitest.config.ts, globals.d.ts",
"*.js": "$(capture).*.js, $(capture).d.js.map, $(capture)_*.js, $(capture)*.snap",
"*.ts": "$(capture).*.ts, $(capture).d.ts.map, $(capture)_*.ts, $(capture)*.snap",
},
Expand Down
Loading

0 comments on commit c4cc819

Please sign in to comment.