forked from swsnr/gnome-shell-extension-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
40 lines (36 loc) · 1.11 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright Matteo Bigoi <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0.If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// @ts-check
import gsebuild from "@swsnr/gsebuild/eslint";
import eslintConfigPrettier from "eslint-config-prettier";
// Consider eslint-plugin-promise again once it supports flat config,
// see https://github.com/eslint-community/eslint-plugin-promise/issues/449
export default [
...gsebuild.configs.typescript,
{
languageOptions: {
parserOptions: {
projectService: true,
// @ts-ignore
tsconfigRootDir: import.meta.dirname,
},
},
},
eslintConfigPrettier,
// Global ignores, see https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores
// "ignores" must be the _only_ key in this object!
{
ignores: [
// eslint configs
"eslint.config.*",
// Build outputs
"build/**/*",
"dist/**/*",
// Packages
"node_modules/**",
],
},
];