-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.cjs
51 lines (49 loc) · 1.17 KB
/
eslint.config.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* eslint-disable no-undef, @typescript-eslint/no-var-requires */
// TODO(#12): revert to module syntax when pnp supports eslint 9
const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');
const prettierConfig = require('eslint-config-prettier');
const unicornPlugin = require('eslint-plugin-unicorn');
module.exports = tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
prettierConfig,
unicornPlugin.configs['flat/recommended'],
{
languageOptions: {
globals: {
console: 'readonly',
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
},
},
plugins: {
//
},
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
},
],
'unicorn/no-null': 'off',
'unicorn/prevent-abbreviations': 'off',
},
},
{
ignores: [
'**/.nx/**',
'**/.yarn/**',
'**/build/**',
'**/dist/**',
'.pnp.cjs',
'.pnp.loader.mjs',
'**/*timestamp*.mjs',
'**/mockServiceWorker.js',
'**/projects/app-web/app/gql/**',
],
},
);