-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc.js
67 lines (65 loc) · 2.04 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
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
yarn eslint . --ext .js,.jsx,.ts,.tsx
Happy linting! 💖
*/
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
"eslint-config-prettier",
"eslint-config-prettier/@typescript-eslint",
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:react/recommended',
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
sourceType: "module",
},
plugins: ["@typescript-eslint", "prettier"],
rules: {
"prettier/prettier": "error",
"@typescript-eslint/class-name-casing": "warn",
"@typescript-eslint/member-delimiter-style": [
"warn",
{
multiline: {
delimiter: "semi",
requireLast: true,
},
singleline: {
delimiter: "semi",
requireLast: false,
},
},
],
"@typescript-eslint/semi": ["warn", "always"],
curly: "warn",
eqeqeq: ["warn", "always"],
"no-redeclare": "warn",
"no-throw-literal": "warn",
"no-unused-expressions": "warn",
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/prefer-namespace-keyword': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/class-name-casing': 'off'
},
settings: {
react: {
version: 'detect',
},
},
};