foundry-vtt-system-midgard5/.eslintrc.json

72 lines
1.9 KiB
JSON

{
"root": true,
"ignorePatterns": [],
"parserOptions": {
"ecmaVersion": "latest"
},
"overrides": [
{
"files": ["*.ts"],
"parser": "@angular-eslint/template-parser",
"parserOptions": {
"project": ["tsconfig.json"],
"createDefaultProgram": true,
"ecmaVersion": "latest",
"sourceType": "module"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"brace-style": ["error", "1tbs"],
"id-blacklist": "off",
"id-match": "off",
"no-bitwise": "off",
"no-underscore-dangle": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
},
{
"usePrettierrc": true
}
]
}
},
// NOTE: WE ARE NOT APPLYING PRETTIER IN THIS OVERRIDE, ONLY @ANGULAR-ESLINT/TEMPLATE
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
},
// NOTE: WE ARE NOT APPLYING @ANGULAR-ESLINT/TEMPLATE IN THIS OVERRIDE, ONLY PRETTIER
{
"files": ["*.html"],
"excludedFiles": ["*inline-template-*.component.html"],
"extends": ["plugin:prettier/recommended"],
"rules": {
// NOTE: WE ARE OVERRIDING THE DEFAULT CONFIG TO ALWAYS SET THE PARSER TO ANGULAR (SEE BELOW)
"prettier/prettier": [
"error",
{
"parser": "angular",
"endOfLine": "auto"
}
]
}
}
]
}