Skip to content

Commit 23cd5b2

Browse files
committed
2 parents af01d5c + 562daa9 commit 23cd5b2

File tree

3 files changed

+6310
-6310
lines changed

3 files changed

+6310
-6310
lines changed

eslint.config.mjs

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,80 @@
1-
import typescriptEslintEslintPlugin from "@typescript-eslint/eslint-plugin";
2-
import tsdoc from "eslint-plugin-tsdoc";
3-
import globals from "globals";
4-
import tsParser from "@typescript-eslint/parser";
5-
import path from "node:path";
6-
import { fileURLToPath } from "node:url";
7-
import js from "@eslint/js";
8-
import { FlatCompat } from "@eslint/eslintrc";
9-
10-
const __filename = fileURLToPath(import.meta.url);
11-
const __dirname = path.dirname(__filename);
12-
13-
import { includeIgnoreFile } from "@eslint/compat";
14-
const gitignorePath = path.resolve(__dirname, ".gitignore");
15-
16-
const compat = new FlatCompat({
17-
baseDirectory: __dirname,
18-
recommendedConfig: js.configs.recommended,
19-
allConfig: js.configs.all
20-
});
21-
22-
export default [...compat.extends(
23-
"eslint:recommended",
24-
"plugin:@typescript-eslint/recommended",
25-
"plugin:prettier/recommended",
26-
), {
27-
plugins: {
28-
"@typescript-eslint": typescriptEslintEslintPlugin,
29-
tsdoc,
30-
},
31-
32-
languageOptions: {
33-
globals: {
34-
...globals.browser,
35-
...globals.node,
36-
...globals.jest,
37-
...globals.commonjs,
38-
},
39-
40-
parser: tsParser,
41-
ecmaVersion: "latest",
42-
sourceType: "module",
43-
44-
parserOptions: {
45-
sourceType: 'module',
46-
project: './tsconfig.json',
47-
},
48-
},
49-
50-
rules: {
51-
"tsdoc/syntax": "warn",
52-
53-
"max-len": ["error", {
54-
code: 150,
55-
ignoreUrls: true,
56-
ignoreStrings: true,
57-
ignoreTemplateLiterals: true,
58-
ignoreComments: true,
59-
ignoreRegExpLiterals: true,
60-
}],
61-
62-
"prettier/prettier": ["error", {
63-
singleQuote: true,
64-
trailingComma: "es5",
65-
}],
66-
},
67-
68-
ignores: [
69-
"jest.config.js",
70-
"package.json",
71-
"package-lock.json",
72-
"tsconfig.json",
73-
"typedoc.json",
74-
],
75-
},
76-
includeIgnoreFile(gitignorePath),
77-
{
78-
// your overrides
79-
},
80-
];
1+
import typescriptEslintEslintPlugin from "@typescript-eslint/eslint-plugin";
2+
import tsdoc from "eslint-plugin-tsdoc";
3+
import globals from "globals";
4+
import tsParser from "@typescript-eslint/parser";
5+
import path from "node:path";
6+
import { fileURLToPath } from "node:url";
7+
import js from "@eslint/js";
8+
import { FlatCompat } from "@eslint/eslintrc";
9+
10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
12+
13+
import { includeIgnoreFile } from "@eslint/compat";
14+
const gitignorePath = path.resolve(__dirname, ".gitignore");
15+
16+
const compat = new FlatCompat({
17+
baseDirectory: __dirname,
18+
recommendedConfig: js.configs.recommended,
19+
allConfig: js.configs.all
20+
});
21+
22+
export default [...compat.extends(
23+
"eslint:recommended",
24+
"plugin:@typescript-eslint/recommended",
25+
"plugin:prettier/recommended",
26+
), {
27+
plugins: {
28+
"@typescript-eslint": typescriptEslintEslintPlugin,
29+
tsdoc,
30+
},
31+
32+
languageOptions: {
33+
globals: {
34+
...globals.browser,
35+
...globals.node,
36+
...globals.jest,
37+
...globals.commonjs,
38+
},
39+
40+
parser: tsParser,
41+
ecmaVersion: "latest",
42+
sourceType: "module",
43+
44+
parserOptions: {
45+
sourceType: 'module',
46+
project: './tsconfig.json',
47+
},
48+
},
49+
50+
rules: {
51+
"tsdoc/syntax": "warn",
52+
53+
"max-len": ["error", {
54+
code: 150,
55+
ignoreUrls: true,
56+
ignoreStrings: true,
57+
ignoreTemplateLiterals: true,
58+
ignoreComments: true,
59+
ignoreRegExpLiterals: true,
60+
}],
61+
62+
"prettier/prettier": ["error", {
63+
singleQuote: true,
64+
trailingComma: "es5",
65+
}],
66+
},
67+
68+
ignores: [
69+
"jest.config.js",
70+
"package.json",
71+
"package-lock.json",
72+
"tsconfig.json",
73+
"typedoc.json",
74+
],
75+
},
76+
includeIgnoreFile(gitignorePath),
77+
{
78+
// your overrides
79+
},
80+
];

0 commit comments

Comments
 (0)