UNPKG

994 BJavaScriptView Raw
1module.exports = {
2 root: true,
3 plugins: ['@typescript-eslint', 'import'],
4 extends: ['eslint:recommended', 'airbnb'],
5 rules: {
6 'import/prefer-default-export': 0,
7 '@typescript-eslint/no-unused-vars': 2,
8 'no-extra-semi': 0,
9 semi: 2,
10 indent: ['warn', 2],
11 quotes: [
12 2,
13 'single',
14 {
15 allowTemplateLiterals: false,
16 avoidEscape: true
17 }
18 ],
19 camelcase: 0,
20 'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
21 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
22 'no-plusplus': 0,
23 'no-useless-constructor': 0, // TS has some issues with this, so we use their check
24 '@typescript-eslint/no-useless-constructor': 2,
25 'import/extensions': 0
26 },
27 parser: '@typescript-eslint/parser',
28 settings: {
29 'import/parsers': {
30 '@typescript-eslint/parser': ['.ts', '.tsx']
31 },
32 'import/resolver': {
33 node: {},
34 typescript: {}
35 }
36 },
37 /* ignorePatterns: ["dist/"], */
38};