Skip to content

Commit 8c7ddd9

Browse files
committed
format
1 parent 83a76f0 commit 8c7ddd9

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

eslint.config.js

+23-21
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
1-
import globals from "globals";
2-
import pluginJs from "@eslint/js";
3-
import tseslint from "typescript-eslint";
4-
import prettierConfig from "eslint-config-prettier";
1+
import pluginJs from '@eslint/js';
2+
import prettierConfig from 'eslint-config-prettier';
3+
import globals from 'globals';
4+
import tseslint from 'typescript-eslint';
55

66
/** @type {import('eslint').Linter.Config[]} */
77
export default [
8-
{ files: ["**/*.{js,mjs,cjs,ts}"] },
8+
{ files: ['**/*.{js,mjs,cjs,ts}'] },
99
{ languageOptions: { globals: globals.node } },
1010
pluginJs.configs.recommended,
1111
...tseslint.configs.recommended,
1212
{
1313
ignores: [
14-
"**/node_modules/**",
15-
"**/build/**",
16-
"scripts/**",
17-
".yarn/**",
18-
"**/*.json",
19-
"**/*.md"
20-
]
14+
'**/node_modules/**',
15+
'**/build/**',
16+
'scripts/**',
17+
'.yarn/**',
18+
'**/*.json',
19+
'**/*.md',
20+
],
2121
},
2222
{
2323
rules: {
2424
// Disallow console.log but allow console.error, console.warn, and console.info
25-
"no-console": ["error", { allow: ["error", "warn", "info"] }],
26-
27-
// TypeScript specific rules
28-
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
29-
"@typescript-eslint/no-explicit-any": "warn",
30-
"@typescript-eslint/explicit-module-boundary-types": "off",
25+
'no-console': ['error', { allow: ['error', 'warn', 'info'] }],
3126

32-
}
27+
// TypeScript specific rules
28+
'@typescript-eslint/no-unused-vars': [
29+
'error',
30+
{ argsIgnorePattern: '^_' },
31+
],
32+
'@typescript-eslint/no-explicit-any': 'warn',
33+
'@typescript-eslint/explicit-module-boundary-types': 'off',
34+
},
3335
},
3436
// Make sure Prettier config is last to override other formatting rules
35-
prettierConfig
36-
];
37+
prettierConfig,
38+
];

0 commit comments

Comments
 (0)