-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
44 lines (44 loc) · 1.06 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
module.exports = {
env: {
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended',
],
ignorePatterns: ['*.js', '*.json', '*.spec.ts', 'build', 'dist', 'node_modules'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/explicit-module-boundary-types': [0],
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: [
'./tsconfig.eslint.json',
'./apps/nodepen-client/tsconfig.json',
'./packages/core/tsconfig.json',
'./packages/nodes/tsconfig.json',
],
},
plugins: ['@typescript-eslint', 'prettier'],
root: true,
rules: {
"prettier/prettier": "error"
}
}