@shelf/betterer-config
v0.1.0
Published
betterer-config
Downloads
30
Maintainers
Readme
betterer-config
betterer-config description
Install
$ yarn add @shelf/betterer-config
Usage
Inside .betterer.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
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
License
MIT © Shelf