Skip to content

Commit 7cfd42c

Browse files
authored
Update eslint and prettier (#1212)
* chore: Update eslint and prettier config * chore: Run prettier
1 parent 9b401f0 commit 7cfd42c

16 files changed

+1724
-1615
lines changed

.eslintrc.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
extends: 'eslint:recommended',
8+
overrides: [
9+
{
10+
env: {
11+
node: true,
12+
},
13+
files: ['.eslintrc.{js,cjs}'],
14+
parserOptions: {
15+
sourceType: 'script',
16+
},
17+
},
18+
],
19+
parserOptions: {
20+
ecmaVersion: 'latest',
21+
sourceType: 'module',
22+
},
23+
rules: {},
24+
};

.eslintrc.json

-17
This file was deleted.

.github/ISSUE_TEMPLATE/01-icon-request.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: 🙏 Icon request
22
description: Request a new icon
3-
title: "Icon request: "
4-
labels: ["icon request"]
5-
projects: ["feathericons/1"]
3+
title: 'Icon request: '
4+
labels: ['icon request']
5+
projects: ['feathericons/1']
66
body:
77
- type: input
88
id: icon-name

.github/ISSUE_TEMPLATE/02-bug-report.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: 🐛 Bug report
22
description: Report a bug
3-
title: "Bug: "
4-
labels: ["bug"]
5-
projects: ["feathericons/1"]
3+
title: 'Bug: '
4+
labels: ['bug']
5+
projects: ['feathericons/1']
66
body:
77
- type: textarea
88
id: description
99
attributes:
1010
label: Description
1111
description: "Tell us more about the problem that you're running into."
12-
placeholder: "e.g. When I try to do X, Y happens instead of Z"
12+
placeholder: 'e.g. When I try to do X, Y happens instead of Z'
1313
validations:
1414
required: true
1515
- type: textarea
@@ -70,4 +70,3 @@ body:
7070
options:
7171
- label: I have searched the existing issues to make sure this bug has not already been reported.
7272
required: true
73-

.github/workflows/ci.yml

+20-20
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ jobs:
66
ci:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
10-
- name: Use Node.js 16.x
11-
uses: actions/setup-node@v3
12-
with:
13-
node-version: 16.x
14-
cache: 'npm'
15-
- name: Install dependencies
16-
run: npm ci --legacy-peer-deps
17-
- name: Build
18-
run: npm run build
19-
- name: Test
20-
run: npm run test:coverage
21-
- name: Lint
22-
run: npm run lint
23-
- name: Release
24-
if: github.ref_name == 'main'
25-
run: npx semantic-release
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
28-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9+
- uses: actions/checkout@v3
10+
- name: Use Node.js 16.x
11+
uses: actions/setup-node@v3
12+
with:
13+
node-version: 16.x
14+
cache: 'npm'
15+
- name: Install dependencies
16+
run: npm ci --legacy-peer-deps
17+
- name: Build
18+
run: npm run build
19+
- name: Test
20+
run: npm run test:coverage
21+
- name: Lint
22+
run: npm run lint
23+
- name: Release
24+
if: github.ref_name == 'main'
25+
run: npx semantic-release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
coverage

CODE_OF_CONDUCT.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3030
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3232
professional setting
3333

3434
## Our Responsibilities
@@ -71,4 +71,4 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], versi
7171
available at [http://contributor-covenant.org/version/1/4][version]
7272

7373
[homepage]: http://contributor-covenant.org
74-
[version]: http://contributor-covenant.org/version/1/4/
74+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ The following is a set of guidelines for contributing to Feather. Feel free to p
1111
1212
Pull requests for bug fixes and improvements are welcome. If you’re not sure if something is worth doing, please open an issue first.
1313

14-
**Working on your first Pull Request?** You can learn how from this *free* series
14+
**Working on your first Pull Request?** You can learn how from this _free_ series
1515
[How to Contribute to an Open Source Project on GitHub](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github).
1616

1717
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
1818

19-
- __Make your commit messages as descriptive as possible.__ Include as much information as you can. Explain anything that might be unclear.
20-
- __Document your pull request__. Explain your changes, link to the relevant issue, and add screenshots when applicable.
21-
- __Include only related work__. If you have unrelated changes, please split them into separate pull requests.
19+
- **Make your commit messages as descriptive as possible.** Include as much information as you can. Explain anything that might be unclear.
20+
- **Document your pull request**. Explain your changes, link to the relevant issue, and add screenshots when applicable.
21+
- **Include only related work**. If you have unrelated changes, please split them into separate pull requests.
22+
2223
## Icon requests
2324

2425
To request a new icon, please fill out the [icon request form](https://github.com/feathericons/feather/issues/new?template=01-icon-request.yml).

0 commit comments

Comments
 (0)