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

Commit 12da121

Browse files
authored
fix: conflicting semicolon rules (#12)
1 parent 2b1b123 commit 12da121

File tree

4 files changed

+854
-983
lines changed

4 files changed

+854
-983
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install eslint-config-airbnb-typescript \
1515
eslint-plugin-import@^2.14.0 \
1616
eslint-plugin-jsx-a11y@^6.1.1 \
1717
eslint-plugin-react@^7.11.0 \
18-
@typescript-eslint/eslint-plugin@^1.0.0 \
18+
@typescript-eslint/eslint-plugin@^1.11.0 \
1919
--save-dev
2020
```
2121

@@ -40,7 +40,7 @@ Install dependencies. ESLint plugins [must also be installed](https://github.com
4040
```bash
4141
npm install eslint-config-airbnb-typescript \
4242
eslint-plugin-import@^2.14.0 \
43-
@typescript-eslint/eslint-plugin@^1.0.0 \
43+
@typescript-eslint/eslint-plugin@^1.11.0 \
4444
--save-dev
4545
```
4646

lib/shared.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,10 @@ module.exports = {
131131
tsx: "never",
132132
},
133133
],
134+
135+
// Replace Airbnb 'semi' rule with '@typescript-eslint' version
136+
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md
137+
semi: "off",
138+
"@typescript-eslint/semi": ["error", "always"],
134139
},
135140
}

0 commit comments

Comments
 (0)