-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.cjs
More file actions
33 lines (32 loc) · 896 Bytes
/
Copy patheslint.config.cjs
File metadata and controls
33 lines (32 loc) · 896 Bytes
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
const tsPlugin = require("@typescript-eslint/eslint-plugin");
const tsParser = require("@typescript-eslint/parser");
const eslintJs = require("@eslint/js");
const prettierConfig = require("eslint-config-prettier");
const prettierPlugin = require("eslint-plugin-prettier");
module.exports = [
{
ignores: ["dist/**", "eslint.config.cjs"],
},
eslintJs.configs.recommended,
...tsPlugin.configs["flat/recommended"],
prettierConfig,
{
files: ["**/*.ts", "**/*.js"],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
},
plugins: {
prettier: prettierPlugin,
},
rules: {
"no-empty": ["error", { "allowEmptyCatch": true }],
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/ban-ts-comment": "off",
"prettier/prettier": 2,
},
},
];