-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.eslintrc.js
More file actions
38 lines (38 loc) · 886 Bytes
/
Copy path.eslintrc.js
File metadata and controls
38 lines (38 loc) · 886 Bytes
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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'airbnb-base',
'poi-plugin',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier',
'prettier/@typescript-eslint',
'plugin:import/typescript',
],
plugins: ['prettier', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
rules: {
'no-underscore-dangle': 'off',
'consistent-return': 'off',
camelcase: 'off',
'prettier/prettier': 'error',
'no-shadow': 'off',
'no-console': 'off',
'import/extensions': 'off',
},
overrides: [
{
files: ['scripts/**/*.ts', 'update.ts'],
rules: {
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
},
},
],
}