forked from deveth0/polly-slack-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
69 lines (67 loc) · 1.79 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
62
63
64
65
66
67
68
69
module.exports = {
// Basic configs for js files
extends: [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended",
"plugin:import/recommended",
"prettier",
],
plugins: ["@typescript-eslint"],
env: {
browser: true,
es6: true,
node: true,
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
},
},
rules: {
"linebreak-style": "off",
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
"import/prefer-default-export": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-explicit-any": "off",
"import/no-extraneous-dependencies": "off",
"no-underscore-dangle": "off",
},
overrides: [
// Typescript specific settings
{
files: ["**/*.{ts,tsx}"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended",
"plugin:import/recommended",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["tsconfig.json"],
// Allows for the parsing of modern ECMAScript features if you're using modern node.js or frontend bundling
// this will be inferred from tsconfig if left commented
// ecmaVersion: 2020,
sourceType: "module", // Allows for the use of imports
// Allows for the parsing of JSX if you are linting React
// ecmaFeatures: {
// jsx: true
// }
},
},
],
};