Skip to content

Commit 6d1310a

Browse files
committed
feat: initial package publish
1 parent 959e703 commit 6d1310a

22 files changed

+4714
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "frontendfixer/eslint-config-frontendfixer" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": []
14+
}

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
concurrency: ${{ github.workflow }}-${{ github.ref }}
10+
11+
jobs:
12+
release:
13+
name: Release
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Repo
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
cache: yarn
25+
node-version: lts/*
26+
27+
- name: Install Dependencies
28+
run: yarn
29+
30+
- name: Create Release Pull Request or Publish to npm
31+
id: changesets
32+
uses: changesets/action@v1
33+
with:
34+
publish: yarn release
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
test-code/
3+
.env
4+
ref
5+
.vscode/

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/.git
2+
**/node_modules

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"trailingComma": "es5",
3+
"printWidth": 80,
4+
"quoteProps": "as-needed",
5+
"semi": true,
6+
"singleQuote": true,
7+
"tabWidth": 2,
8+
"bracketSameLine": true,
9+
"jsxBracketSameLine": true,
10+
"jsxSingleQuote": false
11+
}

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# @frontendfixer/eslint-config-react
2+
3+
## v.1.0.0
4+
5+
### Initial Release
6+
7+
Features of this build
8+
9+
1. Lints JavaScript and TypeScript based on the latest standards
10+
2. Fixes issues and formatting errors with Prettier
11+
3. Lints + Fixes inside of html script tags
12+
4. Lints + Fixes React via eslint-config-airbnb
13+
5. Lints + Fixes Typescript via airbnb/Typescript
14+
6. Lints + Fixes imports according to standard rules

index.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
require('@rushstack/eslint-patch/modern-module-resolution');
2+
3+
module.exports = {
4+
root: true,
5+
env: {
6+
browser: true,
7+
node: true,
8+
commonjs: true,
9+
es6: true,
10+
jquery: true,
11+
jest: true,
12+
},
13+
settings: {
14+
react: {
15+
version: 'detect',
16+
},
17+
},
18+
parserOptions: {
19+
ecmaVersion: 'latest',
20+
sourceType: 'module',
21+
ecmaFeatures: {
22+
jsx: true,
23+
},
24+
},
25+
extends: [
26+
'./rules/base.rules',
27+
'eslint:recommended',
28+
'plugin:react/recommended',
29+
'plugin:jsx-a11y/recommended',
30+
'plugin:import/recommended',
31+
'airbnb',
32+
'prettier',
33+
'plugin:prettier/recommended',
34+
],
35+
plugins: [
36+
'html',
37+
'import',
38+
'prettier',
39+
'react',
40+
'react-hooks',
41+
'simple-import-sort',
42+
],
43+
ignorePatterns: ['node_modules/'],
44+
};

package.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"name": "@frontendfixer/eslint-config-react",
3+
"version": "1.0.0",
4+
"description": "ESLint, Prettier and Typescript Config for React application",
5+
"keywords": [
6+
"javascript",
7+
"typescript",
8+
"ecmascript",
9+
"eslint",
10+
"eslint-config",
11+
"lint",
12+
"config",
13+
"prettier",
14+
"react"
15+
],
16+
"repository": {
17+
"type": "git",
18+
"url": "git@github.com:frontendfixer/eslint-config-react.git"
19+
},
20+
"author": {
21+
"name": "Lakshmikanta Patra",
22+
"email": "frontendfixer@gmail.com"
23+
},
24+
"license": "MIT",
25+
"files": [
26+
"index.js",
27+
"typescript.js"
28+
],
29+
"main": "index.js",
30+
"eslintConfig": {
31+
"extends": "./index.js"
32+
},
33+
"scripts": {
34+
"lint": "eslint .",
35+
"lint:fix": "eslint . --fix",
36+
"changeset": "changeset",
37+
"release": "changeset publish",
38+
"commit": "git-cz",
39+
"acr": "git add . && pnpm commit && git push --follow-tags"
40+
},
41+
"peerDependencies": {
42+
"eslint": ">=8.0.0",
43+
"prettier": ">=2.0.0",
44+
"typescript": "^5.0.0"
45+
},
46+
"dependencies": {
47+
"@rushstack/eslint-patch": "^1.3.2",
48+
"@typescript-eslint/eslint-plugin": "^5.60.1",
49+
"@typescript-eslint/parser": "^5.60.1",
50+
"eslint-config-airbnb": "^19.0.4",
51+
"eslint-config-airbnb-typescript": "^17.0.0",
52+
"eslint-config-prettier": "^8.8.0",
53+
"eslint-import-resolver-typescript": "^3.5.5",
54+
"eslint-plugin-html": "^7.1.0",
55+
"eslint-plugin-import": "^2.27.5",
56+
"eslint-plugin-jsx-a11y": "^6.7.1",
57+
"eslint-plugin-prettier": "^4.2.1",
58+
"eslint-plugin-react": "^7.32.2",
59+
"eslint-plugin-react-hooks": "^4.6.0",
60+
"eslint-plugin-react-refresh": "^0.4.1",
61+
"eslint-plugin-simple-import-sort": "^10.0.0"
62+
},
63+
"devDependencies": {
64+
"@changesets/changelog-github": "^0.4.8",
65+
"@changesets/cli": "^2.26.2",
66+
"cz-conventional-changelog": "^3.3.0",
67+
"eslint": "^8.44.0",
68+
"prettier": "^2.8.8",
69+
"react": "^18.2.0",
70+
"typescript": "^5.1.6"
71+
},
72+
"config": {
73+
"commitizen": {
74+
"path": "./node_modules/cz-conventional-changelog"
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)