-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
37 lines (37 loc) · 804 Bytes
/
.eslintrc.cjs
File metadata and controls
37 lines (37 loc) · 804 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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['airbnb-base'],
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
},
rules: {
'no-underscore-dangle': 'off',
'operator-linebreak': 'off',
'import/extensions': 'off',
'implicit-arrow-linebreak': 'off',
'no-restricted-syntax': 'off',
'max-len': 'off',
'import/prefer-default-export': 'off',
},
ignorePatterns: ['**/*.d.ts', '*.graphql', '**/studio/graphql.js'],
overrides: [
{
files: ['*.graphql'],
parser: '@graphql-eslint/eslint-plugin',
plugins: ['@graphql-eslint'],
rules: {
'@graphql-eslint/known-type-names': 'error',
},
},
{
files: ['**/*.test.js'],
env: {
jest: true,
},
},
],
};