-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
33 lines (33 loc) · 931 Bytes
/
.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
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'@open-wc/eslint-config',
'eslint-config-prettier',
'plugin:@typescript-eslint/recommended',
'plugin:chai-friendly/recommended',
],
rules: {
'import/extensions': 'off',
'no-param-reassign': ['error', { props: false }],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
},
overrides: [
{
files: ['scripts/**/*'],
rules: {
// scripts are dev-scripts, so dependencies can be in dev deps
'import/no-extraneous-dependencies': 'off',
// require from createRequire should be allowed for NodeJS scripts which use CJS deps
'@typescript-eslint/no-var-requires': 'off',
},
},
],
settings: {
'import/resolver': {
typescript: {},
},
},
};