mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Persist apiVersion when editing resources in monaco - Use a new custom k8slens prefixed label - Means that users aren't surprised when they use lens to update a resource to a new apiVersionWithGroup - Doesn't touch the versions in the stores Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix lint Signed-off-by: Sebastian Malton <sebastian@malton.name> * fix: Fix lint issues Signed-off-by: Sebastian Malton <sebastian@malton.name> * chore: make lint not bail on failure Signed-off-by: Sebastian Malton <sebastian@malton.name> * chore: Run lint:fix on all files Signed-off-by: Sebastian Malton <sebastian@malton.name> --------- Signed-off-by: Sebastian Malton <sebastian@malton.name> |
||
|---|---|---|
| .. | ||
| bin | ||
| eslint-config.js | ||
| package.json | ||
| prettier-config.json | ||
| README.md | ||
Lens Code Style
Note: This package contains Eslint and Prettier configurations, name of package is @k8slens/eslint-config just because Eslint has arbitrary requirement (https://eslint.org/docs/latest/extend/shareable-configs).
Usage
- Install
@k8slens/eslint-config - Create
.prettierrcthat contains"@k8slens/eslint-config/prettier" - Add a
.eslintrc.jsthat extends@k8slens/eslint-config/eslint, for example:
module.exports = {
extends: "@k8slens/eslint-config/eslint",
parserOptions: {
project: "./tsconfig.json"
}
};
- Add linting and formatting scripts to
package.json
{
"scripts": {
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
}
}
- Run
npm run lintto lint - Run
npm run formatto fix all formatting