Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit ef2d5dd

Browse files
deskohiamturns
authored andcommitted
feat: Enable quotes rule (#18)
BREAKING CHANGE: `@typescript-eslint/quotes` rule is now active. This may cause new linting errors.
1 parent 57ec5b4 commit ef2d5dd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/shared.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434
"func-call-spacing": "off",
3535
"@typescript-eslint/func-call-spacing": ["error", "never"],
3636

37-
// Replace Airbnb 'indent' rule with '@typescript-indent' version
37+
// Replace Airbnb 'indent' rule with '@typescript-eslint' version
3838
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/indent.md
3939
indent: "off",
4040
"@typescript-eslint/indent": [
@@ -85,7 +85,7 @@ module.exports = {
8585
"no-array-constructor": "off",
8686
"@typescript-eslint/no-array-constructor": "error",
8787

88-
// Replace Airbnb 'no-empty-function' rule with '@typescript-indent' version
88+
// Replace Airbnb 'no-empty-function' rule with '@typescript-eslint' version
8989
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-function.md
9090
"no-empty-function": "off",
9191
"@typescript-eslint/no-empty-function": [
@@ -144,6 +144,14 @@ module.exports = {
144144
"no-useless-constructor": "off",
145145
"@typescript-eslint/no-useless-constructor": "error",
146146

147+
// Replace Airbnb 'quotes' rule with '@typescript-eslint' version
148+
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md
149+
"quotes": "off",
150+
"@typescript-eslint/quotes": [
151+
"error",
152+
"single", { avoidEscape: true }
153+
],
154+
147155
// Replace Airbnb 'semi' rule with '@typescript-eslint' version
148156
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md
149157
semi: "off",

0 commit comments

Comments
 (0)