style: apply prettier/eslint quote consistency and add missing comments
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import tseslint from "@typescript-eslint/eslint-plugin";
|
||||
import tsParser from "@typescript-eslint/parser";
|
||||
import prettier from "eslint-plugin-prettier";
|
||||
import eslintConfigPrettier from "eslint-config-prettier";
|
||||
import tseslint from '@typescript-eslint/eslint-plugin';
|
||||
import tsParser from '@typescript-eslint/parser';
|
||||
import prettier from 'eslint-plugin-prettier';
|
||||
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||
|
||||
export default [
|
||||
{
|
||||
ignores: ["dist/**", "node_modules/**", "server", "*.js"],
|
||||
ignores: ['dist/**', 'node_modules/**', 'server', '*.js'],
|
||||
},
|
||||
{
|
||||
files: ["**/*.ts"],
|
||||
files: ['**/*.ts'],
|
||||
plugins: {
|
||||
"@typescript-eslint": tseslint,
|
||||
'@typescript-eslint': tseslint,
|
||||
prettier,
|
||||
},
|
||||
languageOptions: {
|
||||
@@ -18,9 +18,12 @@ export default [
|
||||
},
|
||||
rules: {
|
||||
...eslintConfigPrettier.rules,
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" }],
|
||||
"prettier/prettier": "error",
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'warn',
|
||||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' },
|
||||
],
|
||||
'prettier/prettier': 'error',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user