|
1 | | -import globals from 'globals'; |
| 1 | +import globals from "globals"; |
2 | 2 |
|
3 | | -import js from '@eslint/js'; |
4 | | -import tseslint from 'typescript-eslint'; |
5 | | -import markdown from '@eslint/markdown'; |
6 | | -import css from '@eslint/css'; |
7 | | -import { defineConfig } from 'eslint/config'; |
8 | | -import prettier from 'eslint-plugin-prettier'; |
| 3 | +import js from "@eslint/js"; |
| 4 | +import tseslint from "typescript-eslint"; |
| 5 | +import markdown from "@eslint/markdown"; |
| 6 | +import css from "@eslint/css"; |
| 7 | +import { defineConfig } from "eslint/config"; |
| 8 | +import prettier from "eslint-plugin-prettier"; |
9 | 9 |
|
10 | 10 | export default defineConfig([ |
11 | 11 | { |
12 | | - files: ['**/*.{js,mjs,cjs,ts,mts,cts}'], |
| 12 | + files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], |
13 | 13 | plugins: { js, prettier }, |
14 | | - extends: ['js/recommended'], |
| 14 | + extends: ["js/recommended"], |
15 | 15 | languageOptions: { globals: { ...globals.browser, ...globals.node } }, |
16 | 16 | }, |
17 | 17 | tseslint.configs.recommended, |
18 | 18 | { |
19 | | - files: ['**/*.{ts,tsx,js,jsx}'], |
| 19 | + files: ["**/*.{ts,tsx,js,jsx}"], |
20 | 20 | plugins: { |
21 | 21 | prettier, |
22 | 22 | }, |
23 | 23 | rules: { |
24 | 24 | // Allow unused function parameters (disable rule) |
25 | | - '@typescript-eslint/no-unused-vars': 'off', |
26 | | - quotes: ['error', 'double'], |
| 25 | + "@typescript-eslint/no-unused-vars": "off", |
| 26 | + quotes: ["error", "double"], |
27 | 27 | }, |
28 | 28 | }, |
29 | 29 | { |
30 | | - files: ['**/*.md'], |
| 30 | + files: ["**/*.md"], |
31 | 31 | plugins: { markdown }, |
32 | | - language: 'markdown/gfm', |
33 | | - extends: ['markdown/recommended'], |
| 32 | + language: "markdown/gfm", |
| 33 | + extends: ["markdown/recommended"], |
34 | 34 | }, |
35 | 35 | { |
36 | | - files: ['**/*.css'], |
| 36 | + files: ["**/*.css"], |
37 | 37 | plugins: { css }, |
38 | | - language: 'css/css', |
39 | | - extends: ['css/recommended'], |
| 38 | + language: "css/css", |
| 39 | + extends: ["css/recommended"], |
40 | 40 | }, |
41 | 41 | ]); |
0 commit comments