-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
34 lines (34 loc) · 946 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
34
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'prettier'],
plugins: ['@typescript-eslint', 'import'],
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
},
env: { node: true, browser: true, jest: true },
ignorePatterns: ['data', 'dist'],
rules: {
'interface-name': 'off',
'no-console': 'off',
'no-constant-condition': 'off',
'no-implicit-dependencies': 'off',
'no-submodule-imports': 'off',
'no-trailing-spaces': 'error',
'no-unused-vars': 'off',
// When hunting dead code it's useful to use the following:
// ---
// 'no-unused-vars': 'error',
// 'import/no-unused-modules': [1, { unusedExports: true }],
},
overrides: [
{
files: ['src/clients/figma/core/*.ts', 'src/clients/penpot/core/*.ts'],
rules: {
'no-prototype-builtins': 'off',
'no-undef': 'off',
},
},
],
};