/
.eslintrc.js
42 lines (42 loc) · 1.14 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
module.exports = {
env: {
es6: true,
},
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:unicorn/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/standard",
"prettier/unicorn"
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["tsconfig.eslint.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
// }
},
rules: {
"unicorn/filename-case": [
"warn",
{
cases: {
camelCase: true,
pascalCase: true,
},
},
],
},
plugins: ["@typescript-eslint", "import", "prefer-arrow", "unicorn"],
};