-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy path.eslintrc.cjs
45 lines (44 loc) · 1.05 KB
/
.eslintrc.cjs
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
/*
* Copyright (c)
* Weyoss <[email protected]>
* https://github.com/weyoss
*
* This source code is licensed under the MIT license found in the LICENSE file
* in the root directory of this source tree.
*/
module.exports = {
root: true,
env: {
node: true,
jest: true,
es6: true,
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
ignorePatterns: ['.eslintrc.cjs', 'node_modules/**', 'dist/**'],
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
},
],
};