11import guardian from '@guardian/eslint-config' ;
2+ import globals from 'globals' ;
23
34export default [
45 {
56 ignores : [
67 'node_modules' ,
78 'dist' ,
9+ 'server-dist' ,
810
9- 'customize.js' ,
1011 'rollup.config.js' ,
1112 'webpack.*js' ,
13+ 'cdk' ,
1214 ] ,
1315 } ,
1416 ...guardian . configs . recommended ,
1517 ...guardian . configs . jest ,
1618 {
19+ ignores : [ 'eslint.config.mjs' ] ,
20+ languageOptions : {
21+ globals : {
22+ ...globals . jest ,
23+ ...globals . browser ,
24+ ...globals . node ,
25+ } ,
26+ ecmaVersion : 5 ,
27+ sourceType : 'commonjs' ,
28+ parserOptions : {
29+ project : [ './tsconfig.json' ] ,
30+ tsconfigRootDir : './' ,
31+ } ,
32+ } ,
1733 rules : {
1834 // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
1935 // e.g. "@typescript-eslint/explicit-function-return-type": "off",
2036 curly : 2 ,
21- '@typescript-eslint/no-inferrable-types' : [
22- 'error' ,
23- {
24- ignoreParameters : true ,
25- } ,
26- ] ,
27- '@typescript-eslint/no-unused-vars' : [
28- 'error' ,
29- {
30- args : 'after-used' ,
31- ignoreRestSiblings : true ,
32- } ,
33- ] ,
37+ // '@typescript-eslint/no-unused-vars': [
38+ // 'error',
39+ // {
40+ // args: 'after-used',
41+ // ignoreRestSiblings: true,
42+ // },
43+ // ],
3444
35- // potentially to fix later see https://trello.com/c/lc8lG7Zj
45+ // potentially to fix later see https://trello.com/c/lc8lG7Zj
3646 '@typescript-eslint/naming-convention' : 'off' ,
3747 '@eslint-community/eslint-comments/require-description' : 'off' ,
3848 '@typescript-eslint/ban-types' : 'off' ,
@@ -44,7 +54,6 @@ export default [
4454 '@typescript-eslint/require-await' : 'off' ,
4555 '@typescript-eslint/no-unsafe-enum-comparison' : 'off' ,
4656 '@typescript-eslint/no-unsafe-argument' : 'off' ,
47- '@typescript-eslint/no-unnecessary-condition' : 'off' ,
4857 '@typescript-eslint/no-unsafe-return' : 'off' ,
4958 '@typescript-eslint/no-base-to-string' : 'off' ,
5059 '@typescript-eslint/prefer-promise-reject-errors' : 'off' ,
@@ -53,6 +62,8 @@ export default [
5362 '@typescript-eslint/no-unused-vars' : 'off' ,
5463 '@typescript-eslint/restrict-template-expressions' : 'off' ,
5564 '@typescript-eslint/no-floating-promises' : 'off' ,
65+ '@typescript-eslint/prefer-optional-chain' : 'off' ,
66+ '@typescript-eslint/await-thenable' : 'off' ,
5667 } ,
5768 } ,
58- ] ;
69+ ] ;
0 commit comments