-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy patheslint.config.mjs
More file actions
54 lines (47 loc) · 1.34 KB
/
eslint.config.mjs
File metadata and controls
54 lines (47 loc) · 1.34 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { defineConfig } from "eslint/config";
import pluginLicenseHeader from "eslint-plugin-license-header";
import pluginTypescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
export default defineConfig([{
files: [
"**/*.ts"
],
ignores: [
"deno/*",
"dist/*",
"issue/*",
],
plugins: {
"@eslint-plugin-license-header": pluginLicenseHeader,
"@typescript-eslint": pluginTypescriptEslint,
},
extends: [
"@typescript-eslint/eslint-recommended",
"@typescript-eslint/recommended",
],
languageOptions: {
parser: tsParser,
ecmaVersion: 5,
sourceType: "script",
parserOptions: {
project: [
"./tsconfig.json",
"./demo/tsconfig.json",
"./tests/tsconfig.json",
"./tools/tsconfig.json",
],
},
},
rules: {
"@eslint-plugin-license-header/header": [
"error",
[
"/*",
" Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.",
" Licensed under the Apache License, Version 2.0.",
"*/",
]
],
"@typescript-eslint/no-duplicate-enum-values": "off",
},
}]);