Skip to content

Commit

Permalink
add vscode plugin suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcat committed Oct 22, 2024
1 parent f45d870 commit e6e0106
Show file tree
Hide file tree
Showing 38 changed files with 372 additions and 599 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/restyled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ jobs:
branch: ${{ steps.restyler.outputs.restyled-head }}
title: ${{ steps.restyler.outputs.restyled-title }}
body: ${{ steps.restyler.outputs.restyled-body }}
labels: "restyled"
labels: 'restyled'
reviewers: ${{ github.event.pull_request.user.login }}
delete-branch: true
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"singleQuote": true
}
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint"
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
54 changes: 27 additions & 27 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import tsParser from "@typescript-eslint/parser";
import eslintConfigPrettier from "eslint-config-prettier";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { FlatCompat } from '@eslint/eslintrc';
import js from '@eslint/js';
import tsParser from '@typescript-eslint/parser';
import eslintConfigPrettier from 'eslint-config-prettier';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
Expand All @@ -14,62 +14,62 @@ const compat = new FlatCompat({
});

export default [
...compat.extends("plugin:@typescript-eslint/recommended"),
...compat.extends('plugin:@typescript-eslint/recommended'),
{
plugins: {},

languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
ecmaVersion: 'latest',
sourceType: 'module',

parserOptions: {
project: "./tsconfig.json",
project: './tsconfig.json',
},
},

rules: {
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-explicit-any": "off",
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-explicit-any': 'off',

"@typescript-eslint/no-use-before-define": [
"error",
'@typescript-eslint/no-use-before-define': [
'error',
{
functions: false,
typedefs: false,
classes: false,
},
],

"@typescript-eslint/no-unused-vars": [
"error",
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
argsIgnorePattern: "^_",
argsIgnorePattern: '^_',
},
],

"@typescript-eslint/explicit-function-return-type": [
"warn",
'@typescript-eslint/explicit-function-return-type': [
'warn',
{
allowExpressions: true,
allowTypedFunctionExpressions: true,
},
],

"@typescript-eslint/no-object-literal-type-assertion": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-var": "error",
"prefer-const": "error",
"no-trailing-spaces": "error",
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'no-var': 'error',
'prefer-const': 'error',
'no-trailing-spaces': 'error',
},
},
{
files: ["**/*.test.ts"],
files: ['**/*.test.ts'],

rules: {
"@typescript-eslint/explicit-function-return-type": "off",
'@typescript-eslint/explicit-function-return-type': 'off',
},
},
eslintConfigPrettier,
Expand Down
Loading

0 comments on commit e6e0106

Please sign in to comment.