Commit | Line | Data |
---|---|---|
777b7824 S |
1 | module.exports = { |
2 | env: { | |
3 | es2021: true, | |
4 | node: true, | |
5 | mocha: true | |
6 | }, | |
7 | parser: '@typescript-eslint/parser', | |
8 | parserOptions: { | |
fa699c42 | 9 | ecmaVersion: 2020, |
777b7824 S |
10 | sourceType: 'module' |
11 | }, | |
12 | plugins: ['@typescript-eslint', 'prettierx'], | |
13 | extends: [ | |
14 | 'standard', | |
15 | 'eslint:recommended', | |
16 | 'plugin:@typescript-eslint/recommended', | |
fa699c42 JB |
17 | 'plugin:import/errors', |
18 | 'plugin:import/warnings', | |
19 | 'plugin:import/typescript', | |
777b7824 | 20 | 'plugin:prettierx/standardx', |
fa699c42 JB |
21 | 'plugin:prettierx/@typescript-eslint', |
22 | 'prettier', | |
23 | 'prettier/standard', | |
24 | 'prettier/@typescript-eslint' | |
777b7824 S |
25 | ], |
26 | rules: { | |
27 | 'no-void': 'off', | |
28 | ||
777b7824 S |
29 | // We have some intentionally empty functions |
30 | '@typescript-eslint/no-empty-function': 'off', | |
31 | ||
32 | '@typescript-eslint/no-inferrable-types': [ | |
33 | 'error', | |
34 | { ignoreProperties: true } | |
fa699c42 JB |
35 | ], |
36 | ||
37 | 'sort-imports': [ | |
38 | 'warn', | |
39 | { | |
40 | ignoreMemberSort: true, | |
50aa7901 | 41 | ignoreDeclarationSort: true |
fa699c42 | 42 | } |
777b7824 | 43 | ] |
3c5eaeb9 JB |
44 | }, |
45 | overrides: [ | |
46 | { | |
47 | files: ['*.js'], | |
48 | rules: { | |
fa699c42 | 49 | '@typescript-eslint/no-unused-vars': 'off', |
3c5eaeb9 JB |
50 | '@typescript-eslint/no-var-requires': 'off' |
51 | } | |
fa699c42 JB |
52 | }, |
53 | { | |
54 | files: ['examples/typescript/*.ts'], | |
55 | rules: { | |
56 | 'import/no-unresolved': 'off' | |
57 | } | |
3c5eaeb9 JB |
58 | } |
59 | ] | |
777b7824 | 60 | } |