Skip to content

Commit 333bac8

Browse files
chore: Synced local '.eslintrc.json' with remote 'sync-files/js/.eslintrc.json'
1 parent 294abbe commit 333bac8

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

.eslintrc.json

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
{
2-
"extends": [
3-
"eslint:recommended",
4-
"plugin:prettier/recommended",
5-
"plugin:@typescript-eslint/recommended"
6-
],
7-
"parser": "@typescript-eslint/parser",
2+
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
83
"parserOptions": {
9-
"ecmaVersion": 11,
10-
"sourceType": "module"
4+
"ecmaVersion": "latest",
5+
"sourceType": "module",
6+
"ecmaFeatures": {
7+
"jsx": true
8+
}
119
},
12-
"plugins": ["@typescript-eslint", "jest"],
10+
"plugins": ["jest"],
1311
"rules": {
1412
"no-var": 2,
15-
"prefer-arrow-callback": 2,
16-
"@typescript-eslint/ban-ts-comment": 0,
17-
"@typescript-eslint/ban-types": 1,
18-
"@typescript-eslint/no-empty-function": 1,
19-
"@typescript-eslint/member-ordering": 1,
20-
// disable the rule for all files
21-
"@typescript-eslint/explicit-member-accessibility": "off"
13+
"prefer-arrow-callback": 2
2214
},
2315
"overrides": [
2416
{
25-
// enable the rule specifically for TypeScript files
2617
"files": ["*.ts", "*.tsx"],
18+
"parser": "@typescript-eslint/parser",
19+
"plugins": ["@typescript-eslint"],
20+
"extends": ["plugin:@typescript-eslint/recommended"],
2721
"rules": {
22+
"@typescript-eslint/ban-ts-comment": 0,
23+
"@typescript-eslint/ban-types": 1,
24+
"@typescript-eslint/no-empty-function": 1,
25+
"@typescript-eslint/member-ordering": 1,
2826
"@typescript-eslint/explicit-member-accessibility": [
2927
1,
3028
{

0 commit comments

Comments
 (0)