Skip to content

Commit

Permalink
[Geolonia internal rules] Add ESLint and use npm instead of yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
kamataryo committed Aug 25, 2023
1 parent 340efbf commit ee2e8de
Show file tree
Hide file tree
Showing 5 changed files with 3,170 additions and 425 deletions.
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
extends: ['@geolonia'],
env: {
browser: true,
node: true,
jest: true,
},

rules: {
'no-irregular-whitespace': ['error', { skipRegExps: true }],
},

parserOptions: {
project: ['tsconfig.json'], // add if you use TypeScript in the project
},
};
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn test
- run: yarn build
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build

publish:
name: 'Publish npm package'
Expand All @@ -40,8 +41,8 @@ jobs:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
scope: '@geolonia'
- run: yarn
- run: yarn build
- run: npm ci
- run: npm run build
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit ee2e8de

Please sign in to comment.