rokucommunity / bslint

A linter for BrightScript and BrighterScript.
MIT License
27 stars 14 forks source link

[bslint] support bslint.json inheritance via `extends` #103

Open bartvandenende-wm opened 2 months ago

bartvandenende-wm commented 2 months ago

Summary

Support bslint.json inheritance via extends

Details

it would be great if bslint.json would be able to support inheritance similar to eslint and bsconfig.json to support default lint configurations

for example

  1. ./node_modules/shared-config/bslint.json
    
    {
    "rules": {
    ....{default-lint-rules}
    },
    "globals": [],
    "ignores": [ ]
    }

2. **./bslint.json**
```json
{
  "extends": "./node_modules/shared-config/bslint.json",
  "rules": {
    ....{project-lint-rules}
  },
}
TwitchBronBron commented 2 months ago

Yeah this would be a nice addition!