-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.cjs
50 lines (43 loc) · 1.11 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
const path = require('path');
/** @type {import('eslint/lib/shared/types').ConfigData} */
const config = {
root: true,
ignorePatterns: [
'.github',
'.eslintrc.js',
'.eslintrc.cjs',
'.yalc',
'.yarn',
'.cache',
'.storybook/*',
'build',
'dist',
'node_modules',
'*.mjs',
'*.js',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'simple-import-sort', 'import'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
env: {
es6: true,
},
rules: {
'sort-imports': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'import/extensions': ['error', 'ignorePackages'],
'no-return-await': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
},
};
module.exports = config;