Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
feat: Enable quotes rule (#18)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `@typescript-eslint/quotes` rule is now active. This may cause new linting errors.
  • Loading branch information
deskoh authored and iamturns committed Oct 24, 2019
1 parent 57ec5b4 commit ef2d5dd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
"func-call-spacing": "off",
"@typescript-eslint/func-call-spacing": ["error", "never"],

// Replace Airbnb 'indent' rule with '@typescript-indent' version
// Replace Airbnb 'indent' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/indent.md
indent: "off",
"@typescript-eslint/indent": [
Expand Down Expand Up @@ -85,7 +85,7 @@ module.exports = {
"no-array-constructor": "off",
"@typescript-eslint/no-array-constructor": "error",

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

// Replace Airbnb 'quotes' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md
"quotes": "off",
"@typescript-eslint/quotes": [
"error",
"single", { avoidEscape: true }
],

// Replace Airbnb 'semi' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md
semi: "off",
Expand Down

0 comments on commit ef2d5dd

Please sign in to comment.