https://github.com/shelfio/betterer-config
https://phenomnomnominal.github.io/betterer/docs/introduction
https://github.com/shelfio/betterer-config
Last synced: 7 months ago
JSON representation
https://phenomnomnominal.github.io/betterer/docs/introduction
- Host: GitHub
- URL: https://github.com/shelfio/betterer-config
- Owner: shelfio
- License: mit
- Created: 2023-04-20T14:44:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-31T00:22:20.000Z (8 months ago)
- Last Synced: 2025-05-31T11:01:50.100Z (8 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# betterer-config [](https://circleci.com/gh/shelfio/betterer-config/tree/master)
> betterer-config description
## Install
```
$ yarn add @shelf/betterer-config
```
## Usage
Inside `.betterer.ts`:
```ts
import frontendConfig from '@shelf/betterer-config/frontend.js';
const sourceCodePatters = [
'imports/**/*.{js,jsx,ts,tsx}',
'client/**/*.{js,jsx,ts,tsx}',
'server/**/*.{js,jsx,ts,tsx}',
'packages/**/*.{js,jsx,ts,tsx}',
];
const tsFilesPattern = [
'imports/**/*.{ts,tsx}',
'client/**/*.{ts,tsx}',
'server/**/*.{ts,tsx}',
'packages/**/*.{ts,tsx}',
];
const config = frontendConfig({
jsFilesPattern: sourceCodePatters,
todoFilesPattern: sourceCodePatters,
tsFilesPattern,
tsConfigPath: 'tsconfig.json',
eslintRules: {'no-debugger': 'error'},
eslintFilesPatterns: sourceCodePatters,
});
export default config;
```
## Publish
```sh
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
```
## License
MIT © [Shelf](https://shelf.io)