Browse Source

chore: Synced local '.eslintrc.json' with remote 'sync-files/js/.eslintrc.json' (#312)

main
Justin Poehnelt 3 years ago committed by GitHub
parent
commit
af81844251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 27
      .eslintrc.json

27
.eslintrc.json

@ -16,16 +16,18 @@
"@typescript-eslint/ban-ts-comment": 0, "@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/ban-types": 1, "@typescript-eslint/ban-types": 1,
"@typescript-eslint/no-empty-function": 1, "@typescript-eslint/no-empty-function": 1,
// disable the rule for all files "@typescript-eslint/member-ordering": 1,
"@typescript-eslint/explicit-member-accessibility": "off" // disable the rule for all files
}, "@typescript-eslint/explicit-member-accessibility": "off"
},
"overrides": [ "overrides": [
{ {
// enable the rule specifically for TypeScript files // enable the rule specifically for TypeScript files
"files": ["*.ts", "*.tsx"], "files": ["*.ts", "*.tsx"],
"rules": { "rules": {
"@typescript-eslint/explicit-member-accessibility": [ "@typescript-eslint/explicit-member-accessibility": [
1, { 1,
{
"accessibility": "explicit", "accessibility": "explicit",
"overrides": { "overrides": {
"accessors": "explicit", "accessors": "explicit",
@ -33,9 +35,12 @@
"methods": "explicit", "methods": "explicit",
"properties": "explicit", "properties": "explicit",
"parameterProperties": "explicit" "parameterProperties": "explicit"
}}] }
} }
}], ]
}
}
],
"env": { "env": {
"browser": true, "browser": true,
"node": true, "node": true,

Loading…
Cancel
Save