2019-11-07 09:44:14 -05:00
|
|
|
---
|
|
|
|
#############################
|
|
|
|
#############################
|
|
|
|
## JavaScript Linter rules ##
|
|
|
|
#############################
|
|
|
|
#############################
|
|
|
|
|
|
|
|
############
|
|
|
|
# Env Vars #
|
|
|
|
############
|
|
|
|
env:
|
|
|
|
browser: true
|
|
|
|
es6: true
|
2019-12-13 08:42:16 -05:00
|
|
|
jest: true
|
2019-11-07 09:44:14 -05:00
|
|
|
|
|
|
|
###############
|
|
|
|
# Global Vars #
|
|
|
|
###############
|
|
|
|
globals:
|
|
|
|
Atomics: readonly
|
|
|
|
SharedArrayBuffer: readonly
|
|
|
|
|
|
|
|
###############
|
|
|
|
# Parser vars #
|
|
|
|
###############
|
|
|
|
parser: '@typescript-eslint/parser'
|
|
|
|
parserOptions:
|
|
|
|
ecmaVersion: 2018
|
2020-04-01 14:59:44 -04:00
|
|
|
sourceType: module
|
2019-11-07 09:44:14 -05:00
|
|
|
|
|
|
|
###########
|
|
|
|
# Plugins #
|
|
|
|
###########
|
|
|
|
plugins:
|
|
|
|
- '@typescript-eslint'
|
|
|
|
|
|
|
|
#########
|
|
|
|
# Rules #
|
|
|
|
#########
|
2022-01-06 10:28:26 -05:00
|
|
|
# rules:
|
2021-05-11 11:54:58 -04:00
|
|
|
|
|
|
|
##############################
|
|
|
|
# Overrides for JSON parsing #
|
|
|
|
##############################
|
|
|
|
overrides:
|
|
|
|
|
2022-01-06 10:28:26 -05:00
|
|
|
# JSON files
|
|
|
|
- files:
|
|
|
|
- "*.json"
|
|
|
|
extends:
|
|
|
|
- plugin:jsonc/recommended-with-json
|
|
|
|
parser: jsonc-eslint-parser
|
|
|
|
parserOptions:
|
|
|
|
jsonSyntax: JSON
|
2021-05-11 11:54:58 -04:00
|
|
|
|
2022-01-06 10:28:26 -05:00
|
|
|
# JSONC files
|
|
|
|
- files:
|
|
|
|
- "*.jsonc"
|
|
|
|
extends:
|
|
|
|
- plugin:jsonc/recommended-with-jsonc
|
|
|
|
parser: jsonc-eslint-parser
|
|
|
|
parserOptions:
|
|
|
|
jsonSyntax: JSONC
|
2021-05-11 11:54:58 -04:00
|
|
|
|
2022-01-06 10:28:26 -05:00
|
|
|
# JSON5 files
|
|
|
|
- files:
|
|
|
|
- "*.json5"
|
|
|
|
extends:
|
|
|
|
- plugin:jsonc/recommended-with-json5
|
|
|
|
parser: jsonc-eslint-parser
|
|
|
|
parserOptions:
|
|
|
|
jsonSyntax: JSON5
|