-
Notifications
You must be signed in to change notification settings - Fork 280
/
.eslintrc.cjs
44 lines (43 loc) · 1.04 KB
/
.eslintrc.cjs
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
const ts = {
files: ["**/*.ts"],
extends: [
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
allowImportExportEverywhere: true,
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": "off",
"prefer-const": "off"
},
};
module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
jest: true,
},
parserOptions: {
sourceType: "module",
ecmaVersion: 2021,
allowImportExportEverywhere: true,
},
extends: ["plugin:prettier/recommended"],
rules: {
// https://github.com/plopjs/plop/issues/288
"linebreak-style": ["error", "unix"],
},
overrides: [ts],
};