Skip to content

Commit

Permalink
Merge pull request #37 from josh-stillman/js/update-lint-scripts
Browse files Browse the repository at this point in the history
Js/update lint scripts
  • Loading branch information
josh-stillman authored Oct 28, 2024
2 parents 7e05ac0 + a00b91b commit 5d35f48
Show file tree
Hide file tree
Showing 8 changed files with 3,203 additions and 7,724 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ jobs:
run: npm run build
- name: Lint
run: npm run lint
- name: Test
run: npm run test
8 changes: 5 additions & 3 deletions e2eFixtures/e2e-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ describe('test package.json', () => {

test('lint scripts were added', () => {
const { scripts } = require('../../package.json');
expect(scripts.lint).toEqual(
"eslint . ; stylelint --ignore-path .gitignore '**/*.{css,scss,sass}'"
expect(scripts.lint).toEqual('npm run lint-code ; npm run lint-styles');
expect(scripts['lint-code']).toEqual('eslint .');
expect(scripts['lint-styles']).toEqual(
`stylelint --ignore-path .gitignore '**/*.{css,scss,sass}'`
);
expect(scripts['lint:fix']).toEqual(
"npm run lint -- --fix ; stylelint --ignore-path .gitignore '**/*.{css,scss,sass}' --fix"
'npm run lint-code -- --fix ; npm run lint-styles -- --fix'
);
});

Expand Down
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+.tsx?$': ['ts-jest', {}],
},
};
Loading

0 comments on commit 5d35f48

Please sign in to comment.