We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d364085 commit 6625e9aCopy full SHA for 6625e9a
1 file changed
eslint.config.js
@@ -1,22 +1,16 @@
1
import js from '@eslint/js'
2
+import { defineConfig } from 'eslint/config'
3
import globals from 'globals'
-import prettier from 'eslint-config-prettier'
4
5
-/** @type {import('eslint').Linter.FlatConfig[]} */
6
-export default [
7
- { ignores: ['dist', 'temp'] },
8
- js.configs.recommended,
9
- prettier,
+export default defineConfig([
10
{
11
- languageOptions: {
12
- globals: {
13
- ...globals.browser,
14
- ...globals.node
15
- }
16
- },
17
- rules: {
18
- 'no-tabs': 'error',
19
- 'no-unexpected-multiline': 'error'
20
+ files: ['**/*.{js,mjs,cjs}'],
+ plugins: { js },
+ extends: ['js/recommended'],
+ languageOptions: { globals: { ...globals.node, ...globals.browser } },
+ rules: { 'no-unexpected-multiline': 'error' }
+ },
+ {
+ ignores: ['dist', 'temp']
21
}
22
-]
+])
0 commit comments