Skip to content

Commit c6b4489

Browse files
committed
fix: disable indent and template-ident formatting rules
1 parent c8cda38 commit c6b4489

File tree

1 file changed

+37
-32
lines changed

1 file changed

+37
-32
lines changed

index.js

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
// eslint-disable-next-line unicorn/prefer-module
22
module.exports = {
3-
parser: '@typescript-eslint/parser',
3+
parser: "@typescript-eslint/parser",
44
extends: [
5-
'prettier',
6-
'standard',
7-
'plugin:unicorn/recommended',
8-
'plugin:@typescript-eslint/recommended',
9-
'plugin:@typescript-eslint/eslint-recommended',
10-
'plugin:import/errors',
11-
'plugin:import/warnings'
5+
"prettier",
6+
"standard",
7+
"plugin:unicorn/recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:import/errors",
11+
"plugin:import/warnings",
1212
],
13-
plugins: ['@typescript-eslint'],
13+
plugins: ["@typescript-eslint"],
1414
settings: {
15-
'import/parsers': {
16-
'@typescript-eslint/parser': ['.ts', '.tsx']
15+
"import/parsers": {
16+
"@typescript-eslint/parser": [".ts", ".tsx"],
17+
},
18+
"import/resolver": {
19+
node: { extensions: [".js", ".mjs", ".cjs"] },
20+
typescript: {},
1721
},
18-
'import/resolver': {
19-
node: { extensions: ['.js', '.mjs', '.cjs'] },
20-
typescript: {}
21-
}
2222
},
2323
rules: {
2424
// Disable formatting rules
2525
semi: 0,
2626
quotes: 0,
27+
indent: 0,
2728
"space-before-function-paren": 0,
2829
"arrow-parens": 0,
2930
"comma-dangle": 0,
3031
"keyword-spacing": 0,
3132
"no-multiple-empty-lines": 0,
3233
"no-trailing-spaces": 0,
34+
"unicorn/number-literal-case": 0,
35+
"unicorn/template-indent": 0,
36+
"generator-star-spacing": 0,
3337

3438
// Disable some unnecessary or conflicting rules
3539
"no-use-before-define": "off",
@@ -41,45 +45,46 @@ module.exports = {
4145
"@typescript-eslint/no-empty-function": 0,
4246
"@typescript-eslint/no-var-requires": 0,
4347
"@typescript-eslint/ban-ts-comment": 0,
48+
"@typescript-eslint/no-empty-interface": 0,
4449

4550
// Enforce import order
46-
'import/order': 'error',
51+
"import/order": "error",
4752

4853
// Imports should come first
49-
'import/first': 'error',
54+
"import/first": "error",
5055

5156
// Other import rules
52-
'import/no-mutable-exports': 'error',
57+
"import/no-mutable-exports": "error",
5358

5459
// Allow unresolved imports
55-
'import/no-unresolved': 'off',
60+
"import/no-unresolved": "off",
5661

5762
// Prefer const over let
58-
'prefer-const': [
59-
'error',
63+
"prefer-const": [
64+
"error",
6065
{
61-
destructuring: 'any',
62-
ignoreReadBeforeAssign: false
63-
}
66+
destructuring: "any",
67+
ignoreReadBeforeAssign: false,
68+
},
6469
],
6570

6671
// No single if in an "else" block
67-
'no-lonely-if': 'error',
72+
"no-lonely-if": "error",
6873

6974
// Force curly braces for control flow,
7075
// including if blocks with a single statement
71-
curly: ['error', 'all'],
76+
curly: ["error", "all"],
7277

7378
// No async function without await
74-
'require-await': 'error',
79+
"require-await": "error",
7580

7681
// Force dot notation when possible
77-
'dot-notation': 'error',
82+
"dot-notation": "error",
7883

7984
// Force object shorthand where possible
80-
'object-shorthand': 'error',
85+
"object-shorthand": "error",
8186

8287
// No useless destructuring/importing/exporting renames
83-
'no-useless-rename': 'error'
84-
}
85-
}
88+
"no-useless-rename": "error",
89+
},
90+
};

0 commit comments

Comments
 (0)