Skip to content

Commit

Permalink
Merge pull request #2 from landbot-org/add-naming-convention
Browse files Browse the repository at this point in the history
feat: enable typescript eslint naming convention rule
  • Loading branch information
amalv authored Oct 27, 2022
2 parents 4cd34c0 + 5868132 commit 87cfdcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"printWidth": 120
}
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ module.exports = {
es2021: true,
jest: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
Expand All @@ -24,6 +20,7 @@ module.exports = {
},
},
rules: {
'@typescript-eslint/naming-convention': 'error',
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
Expand Down

0 comments on commit 87cfdcd

Please sign in to comment.