Skip to content

Commit 69873ad

Browse files
committed
Update eslint.config.mjs
1 parent d373925 commit 69873ad

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

eslint.config.mjs

+44-44
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import eslint from '@eslint/js';
2-
import tseslint from 'typescript-eslint';
3-
import eslintConfigPrettier from "eslint-config-prettier";
4-
import jest from "eslint-plugin-jest";
1+
import eslint from '@eslint/js'
2+
import tseslint from 'typescript-eslint'
3+
import eslintConfigPrettier from 'eslint-config-prettier'
4+
import jest from 'eslint-plugin-jest'
55

66
export default tseslint.config(
77
eslintConfigPrettier,
@@ -10,63 +10,63 @@ export default tseslint.config(
1010
...tseslint.configs.recommended,
1111
{
1212
languageOptions: {
13-
globals: {
14-
process: true,
15-
module: true,
16-
}
13+
globals: {
14+
process: true,
15+
module: true
16+
}
1717
},
1818
rules: {
19-
"jest/no-conditional-expect": "off",
20-
"@typescript-eslint/ban-types": [
21-
"error",
19+
'jest/no-conditional-expect': 'off',
20+
'@typescript-eslint/ban-types': [
21+
'error',
2222
{
2323
types: {
24-
"Number": {
25-
"message": "Use number instead",
26-
"fixWith": "number"
24+
Number: {
25+
message: 'Use number instead',
26+
fixWith: 'number'
2727
},
28-
"String": {
29-
"message": "Use string instead",
30-
"fixWith": "string"
28+
String: {
29+
message: 'Use string instead',
30+
fixWith: 'string'
3131
},
32-
"Boolean": {
33-
"message": "Use boolean instead",
34-
"fixWith": "boolean"
32+
Boolean: {
33+
message: 'Use boolean instead',
34+
fixWith: 'boolean'
3535
},
36-
"Object": {
37-
"message": "Use object instead",
38-
"fixWith": "object"
36+
Object: {
37+
message: 'Use object instead',
38+
fixWith: 'object'
3939
},
40-
"{}": {
41-
"message": "Use object instead",
42-
"fixWith": "object"
40+
'{}': {
41+
message: 'Use object instead',
42+
fixWith: 'object'
4343
},
44-
"Symbol": {
45-
"message": "Use symbol instead",
46-
"fixWith": "symbol"
44+
Symbol: {
45+
message: 'Use symbol instead',
46+
fixWith: 'symbol'
4747
}
4848
}
4949
}
5050
],
51-
"@typescript-eslint/array-type": ["error", {"default": "array"}],
52-
"@typescript-eslint/explicit-module-boundary-types": "error",
53-
"@typescript-eslint/no-explicit-any": "error",
54-
"@typescript-eslint/no-unused-vars": "error",
55-
"@typescript-eslint/explicit-function-return-type": "error",
56-
"object-shorthand": ["error", "always"],
57-
"prefer-destructuring": [
58-
"error",
51+
'@typescript-eslint/array-type': ['error', {default: 'array'}],
52+
'@typescript-eslint/explicit-module-boundary-types': 'error',
53+
'@typescript-eslint/no-explicit-any': 'error',
54+
'@typescript-eslint/no-unused-vars': 'error',
55+
'@typescript-eslint/explicit-function-return-type': 'error',
56+
'object-shorthand': ['error', 'always'],
57+
'prefer-destructuring': [
58+
'error',
5959
{
60-
"array": false,
61-
"object": true
60+
array: false,
61+
object: true
6262
},
6363
{
64-
"enforceForRenamedProperties": false
64+
enforceForRenamedProperties: false
6565
}
6666
],
67-
"no-console": ["error", {"allow": ["warn", "error"]}],
68-
"no-alert": "error",
69-
"no-debugger": "error"
67+
'no-console': ['error', {allow: ['warn', 'error']}],
68+
'no-alert': 'error',
69+
'no-debugger': 'error'
7070
}
7171
}
72-
);
72+
)

0 commit comments

Comments
 (0)