superlint/TEMPLATES/.eslintrc.yml
2024-08-15 10:21:26 +02:00

42 lines
715 B
YAML

---
env:
browser: true
es6: true
jest: true
ignorePatterns:
- "!.*"
- "**/node_modules/.*"
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint"
overrides:
# JSON files
- files:
- "*.json"
extends:
- plugin:jsonc/recommended-with-json
parser: jsonc-eslint-parser
parserOptions:
jsonSyntax: JSON
# JSONC files
- files:
- "*.jsonc"
extends:
- plugin:jsonc/recommended-with-jsonc
parser: jsonc-eslint-parser
parserOptions:
jsonSyntax: JSONC
# JSON5 files
- files:
- "*.json5"
extends:
- plugin:jsonc/recommended-with-json5
parser: jsonc-eslint-parser
parserOptions:
jsonSyntax: JSON5