Skip to content

Commit a0d43d4

Browse files
author
Charlike Mike Reagent
authored
feat: rewrite @hela/eslint from scratch (#222)
plus upgrade deps and add publishConfig.registry to other packages
1 parent 96c1f7c commit a0d43d4

File tree

29 files changed

+770
-147
lines changed

29 files changed

+770
-147
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ dist
55

66
!*.*js
77
!*.*ts
8+
9+
memoize-fs.js
10+
# globbing.js

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
'use strict';
22

33
module.exports = {
4+
parser: 'babel-eslint',
5+
parserOptions: {
6+
ecmaVersion: 2020,
7+
},
48
extends: [
59
'@tunnckocore/eslint-config',
610
'@tunnckocore/eslint-config/mdx',
@@ -9,4 +13,7 @@ module.exports = {
913
'@tunnckocore/eslint-config/promise',
1014
'@tunnckocore/eslint-config/unicorn',
1115
],
16+
rules: {
17+
'import/no-unresolved': 'off',
18+
},
1219
};

.github/workflows/nodejs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ jobs:
4646
- name: Installing dependencies
4747
if: steps.nodejs-cache.outputs.cache-hit != 'true'
4848
run: yarn run setup:ci
49-
- name: Linting & Format codebase with ESLint and Prettier
50-
run: yarn run lint && yarn run format
49+
- name: Linting & Format with Hela ESLint
50+
run: yarn run lint
51+
- name: Format full codebase with Prettier
52+
run: yarn run format
5153
test:
5254
if: "!contains(toJson(github.event.commits), '[skip ci]')"
5355
env:

.hela.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
3+
const helaDev = require('@hela/dev');
4+
5+
Object.assign(exports, helaDev);
6+
exports.eslint = require('@hela/eslint').helaCommand();

.lint.config.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ coverage
1616
*.jpeg
1717
*.jpg
1818
.now
19+
.lint.config.js
1920

2021
# !*.*js*
2122
# !*.*ts*

commands/build/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"node": ">= 10.13"
2525
},
2626
"publishConfig": {
27+
"registry": "https://registry.npmjs.com",
2728
"access": "public",
2829
"tag": "latest"
2930
},

commands/check/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"node": ">= 10.13"
2525
},
2626
"publishConfig": {
27+
"registry": "https://registry.npmjs.com",
2728
"access": "public",
2829
"tag": "latest"
2930
},

commands/commit/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"node": ">= 10.13"
2525
},
2626
"publishConfig": {
27+
"registry": "https://registry.npmjs.com",
2728
"access": "public",
2829
"tag": "latest"
2930
},

commands/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"node": ">= 10.13"
2525
},
2626
"publishConfig": {
27+
"registry": "https://registry.npmjs.com",
2728
"access": "public",
2829
"tag": "latest"
2930
},

0 commit comments

Comments
 (0)