yarn add @adhamu/zero -D
npx zero
Alternatively, you can selectively install the configurations you need.
cat > .eslintrc.json << EOF
{
"extends": ["./node_modules/@adhamu/zero/eslint"]
}
EOF
cat > .prettierrc.yaml << EOF
"@adhamu/zero/prettier"
EOF
If you would like to override any Prettier settings, you can instead use a Javascript file:
cat > .prettierrc.js << EOF
module.exports = {
...require('@adhamu/zero/prettier'),
semi: true,
}
EOF
cat > .stylelintrc.json << EOF
{
"extends": ["./node_modules/@adhamu/zero/stylelint"]
}
EOF
cat > tsconfig.json << EOF
{
"extends": "@adhamu/zero/tsconfig/base.json",
"include": ["src/**/*.ts"],
"compilerOptions": {
"outDir": "./dist"
}
}
EOF
cat > jest.config.js << EOF
module.exports = {
...require('@adhamu/zero/jest'),
transform: { '^.+\\.ts(x)?$': 'ts-jest' },
}
EOF
Note: You will need to install your own transformer. Eg. ts-jest
, @swc/jest
etc.