forked from s-h-a-d-o-w/alfc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (32 loc) · 972 Bytes
/
.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
const basicRulesets = ['eslint:recommended'];
const finalRulesets = [
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array
];
module.exports = {
parserOptions: {
ecmaVersion: 2019, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
env: {
es6: true,
browser: true,
node: true,
},
extends: [...basicRulesets, ...finalRulesets],
overrides: [
{
parser: '@typescript-eslint/parser',
files: ['*.ts', '*.tsx'],
extends: [
...basicRulesets,
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
...finalRulesets,
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
],
};