-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (30 loc) · 1.09 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
module.exports = {
settings: {
react: {
version: '999.999.999',
},
},
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin
'plugin:prettier/recommended',
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
rules: {
semi: ['error', 'never'],
'no-console': ['warn'],
'arrow-parens': ['warn', 'as-needed'],
'no-lone-blocks': ['off'],
'max-len': ['warn', 140],
// 'array-element-newline': ['warn', { minItems: 4 }],
'import/no-extraneous-dependencies': ['error', { devDependencies: ['*/__tests__/**/*.ts'] }],
'import/prefer-default-export': ['off'],
'import/no-extraneous-dependencies': ['off'],
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/member-delimiter-style': ['off'],
},
}