fix: add missing extension rules (#90)

This commit is contained in:
zz 2022-05-05 23:51:20 +08:00 committed by GitHub
parent a9b6d5f9ee
commit f618005402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,9 +44,15 @@ module.exports = {
files: ['*.json', '*.json5'], files: ['*.json', '*.json5'],
parser: 'jsonc-eslint-parser', parser: 'jsonc-eslint-parser',
rules: { rules: {
'jsonc/quotes': ['error', 'double'], 'jsonc/array-bracket-spacing': ['error', 'never'],
'jsonc/quote-props': ['error', 'always'],
'jsonc/comma-dangle': ['error', 'never'], 'jsonc/comma-dangle': ['error', 'never'],
'jsonc/comma-style': ['error', 'last'],
'jsonc/indent': ['error', 2],
'jsonc/key-spacing': ['error', { beforeColon: false, afterColon: true }],
'jsonc/no-octal-escape': 'error',
'jsonc/object-curly-newline': ['error', { multiline: true, consistent: true }],
'jsonc/object-curly-spacing': ['error', 'always'],
'jsonc/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],
}, },
}, },
{ {