Skip to content

Commit bc7639c

Browse files
justingrantMs2ger
authored andcommitted
chore: Override ESLint quote config for Test262
1 parent fd7583b commit bc7639c

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ insert_final_newline = true
1111

1212
[*.js]
1313
max_line_length = 120
14+
15+
[polyfill/test262/]
16+
quote_type = double

.eslintrc.yml

+10
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,13 @@ overrides:
9292
- polyfill/test/validStrings.mjs
9393
rules:
9494
no-console: off
95+
- files:
96+
- polyfill/test262/**
97+
rules:
98+
quotes:
99+
- error
100+
- double
101+
- avoidEscape: true
102+
prettier/prettier:
103+
- error
104+
- singleQuote: false

package.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@
5050
"semi": true,
5151
"singleQuote": true,
5252
"bracketSpacing": true,
53-
"arrowParens": "always"
53+
"arrowParens": "always",
54+
"overrides": [
55+
{
56+
"files": "polyfill/test262/**",
57+
"options": {
58+
"singleQuote": false
59+
}
60+
}
61+
]
5462
}
5563
}

0 commit comments

Comments
 (0)