Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 | 5x 5x 5x 5x 3x 2x | #!/usr/bin/env node
const { execSync } = require('child_process');
// NODE_ENV must be 'development' so the CRA ESLint config activates React-specific rules
process.env.NODE_ENV = 'development';
try {
execSync('npx eslint src --format stylish --max-warnings 0', { stdio: 'inherit' });
process.exit(0);
} catch (e) {
process.exit(e.status || 1);
}
|