Skip to content

Commit

Permalink
fix(json): ident 2
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Jan 2, 2023
1 parent 43072dd commit b96eb98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/eslint-plugin/src/configs/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ export default defineConfig({
'strict': 'off',
'no-unused-expressions': 'off',
'no-irregular-whitespace': 'off',
'jsonc/indent': ['error', 2],
},
},
{
files: ['package.json'],
parser: 'jsonc-eslint-parser',
rules: {
'indent': ['error', 2, { SwitchCase: 1 }],
'indent': ['error', 2, { SwitchCase: 1, VariableDeclarator: 1, outerIIFEBody: 1 }],
'jsonc/sort-keys': [
'error',
{
Expand Down

0 comments on commit b96eb98

Please sign in to comment.