-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
61 lines (60 loc) · 2.01 KB
/
.eslintrc.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/** @type {import("eslint").Linter.Config} */
const config = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["isaacscript", "import"],
extends: [
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:prettier/recommended",
],
ignorePatterns: [
"**/coverage/**",
"**/examples/**",
"**/dist/**",
"**/node_modules/**",
"**/test-apps/**",
"**/integration-tests/**/*.cjs",
"**/integration-tests/**/*.mjs",
"**/integration-tests/test-api/**/*",
"**/scripts/publish-docs.mjs",
"**/typedoc/plugin-remove-references.mjs",
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
tsconfigRootDir: __dirname,
project: [
"./tsconfig.json",
"./integration-tests/tsconfig.json",
"./packages/bundler-plugin-core/tsconfig.json",
"./packages/astro-plugin/tsconfig.json",
"./packages/nextjs-webpack-plugin/tsconfig.json",
"./packages/nuxt-plugin/tsconfig.json",
"./packages/remix-vite-plugin/tsconfig.json",
"./packages/rollup-plugin/tsconfig.json",
"./packages/solidstart-plugin/tsconfig.json",
"./packages/bundle-analyzer/tsconfig.json",
"./packages/sveltekit-plugin/tsconfig.json",
"./packages/vite-plugin/tsconfig.json",
"./packages/webpack-plugin/tsconfig.json",
],
},
rules: {
"no-console": ["error"],
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", destructuredArrayIgnorePattern: "^_" },
],
"@typescript-eslint/consistent-type-imports": [
"error",
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
],
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
"isaacscript/complete-sentences-jsdoc": "warn",
"isaacscript/format-jsdoc-comments": "warn",
"@typescript-eslint/no-confusing-void-expressions": "off",
"@typescript-eslint/restrict-template-expressions": "off",
},
};
module.exports = config;