Skip to content

Commit

Permalink
new: add json linter (#11)
Browse files Browse the repository at this point in the history
new: add json linter
  • Loading branch information
jdkanani authored Dec 23, 2020
1 parent f2b83f8 commit efb08e4
Show file tree
Hide file tree
Showing 13 changed files with 3,798 additions and 3,723 deletions.
14 changes: 11 additions & 3 deletions child/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
plugins: [
'@typescript-eslint',
'unicorn',
'json',
],
extends: 'eslint:recommended',
parserOptions: {
Expand All @@ -21,6 +22,7 @@ module.exports = {
u8: true,
},
rules: {
'indent': ['error', 2],
'space-before-function-paren': ['error', 'never'],
semi: ['error', 'never'],
'no-underscore-dangle': 0,
Expand All @@ -37,7 +39,13 @@ module.exports = {
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-unused-vars': ['error', { args: 'none' }],
}
}
]
},
},
{
files: ['*.json'],
rules: {
'unicorn/filename-case': ['error', { 'case': 'pascalCase' }],
},
},
],
}
Loading

0 comments on commit efb08e4

Please sign in to comment.