Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2023 #175

Merged
merged 43 commits into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
17c2b7e
Update packages and scripts
mgsisk Dec 14, 2023
92cd640
Update .yaml-lint.json
mgsisk Dec 14, 2023
0dd331a
Update .taprc
mgsisk Dec 14, 2023
6360c06
Update .eslintrc.yml
mgsisk Dec 14, 2023
18ca593
Update .codacy.yml
mgsisk Dec 14, 2023
facb781
Update FUNDING.yml
mgsisk Dec 14, 2023
9780cab
Update bug-report.md
mgsisk Dec 14, 2023
193db20
Update config.yml
mgsisk Dec 14, 2023
e0484cf
Update .gitignore
mgsisk Dec 14, 2023
05ec63c
Update .remarkrc.yml
mgsisk Dec 14, 2023
e22ba7d
Update README.md
mgsisk Dec 14, 2023
eadac53
Update SECURITY.md
mgsisk Dec 14, 2023
b6c0392
Update CODE_OF_CONDUCT.md
mgsisk Dec 14, 2023
822dd61
Update THANKS.md
mgsisk Dec 14, 2023
d654e55
Delete wordpress.js
mgsisk Dec 14, 2023
28963a3
Delete wordpress.js
mgsisk Dec 14, 2023
07e7797
Update babel.js
mgsisk Dec 14, 2023
8bb539f
Update typescript.js
mgsisk Dec 14, 2023
836d5df
Update index.js
mgsisk Dec 14, 2023
fd853ce
Update eslint-comments.js
mgsisk Dec 14, 2023
6c75b0a
Update good.ts
mgsisk Dec 14, 2023
260f76d
Update typescript.js
mgsisk Dec 14, 2023
7efd460
Update index.js
mgsisk Dec 14, 2023
0d50170
Update babel.js
mgsisk Dec 14, 2023
7f0c522
Update make.js
mgsisk Dec 14, 2023
f2f0920
Update index.js
mgsisk Dec 14, 2023
0e6b896
Update babel.js
mgsisk Dec 14, 2023
33a7625
Update eslint.js
mgsisk Dec 14, 2023
aee4ee2
Update babel.js
mgsisk Dec 14, 2023
017f138
Update import.js
mgsisk Dec 14, 2023
e2846ed
Update jsdoc.js
mgsisk Dec 14, 2023
4b95c33
Update typescript.js
mgsisk Dec 14, 2023
08129d5
Update build.yml
mgsisk Dec 14, 2023
67eb684
Update CHANGELOG.md
mgsisk Dec 14, 2023
e126afa
Update .yaml-lint.json
mgsisk Dec 15, 2023
1dd8d26
Update CONTRIBUTING.md
mgsisk Dec 15, 2023
dc3d5cd
Update LICENSE.md
mgsisk Dec 15, 2023
874eb65
Update package.json
mgsisk Dec 15, 2023
79de283
Update README.md
mgsisk Dec 15, 2023
87b064b
Update eslint.js
mgsisk Dec 15, 2023
058e799
Update SUPPORT.md
mgsisk Dec 15, 2023
9c12c26
Update Vagrantfile
mgsisk Dec 15, 2023
36e323c
Update package-lock.json
mgsisk Dec 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ engines:
- LICENSE.md
eslint:
exclude_paths:
- 'test/typescript/**'
- "test/typescript/**"
3 changes: 1 addition & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
extends: './src/cnf/index'
extends: "./src/cnf/index"
env:
node: true
ignorePatterns:
- coverage/
- node_modules/
4 changes: 1 addition & 3 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
issuehunt: mgsisk
liberapay: mgsisk
otechie: mgsisk
github: mgsisk
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ this section.
Provide any relevant context that might help here, including:

- Code related to the bug
- Environments that produce the bug (e.g. node version, remark version)
- Environments that produce the bug (e.g. node version, eslint version)
- Links to live examples of the bug
- Project versions that include the bug
- Screenshots demonstrating the bug
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
blank_issues_enabled: false
contact_links:
- name: Support
url: https://github.com/mgsisk/eslint-config/blob/main/SUPPORT.md
about: Other support resources are available
34 changes: 21 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,51 @@ name: build
on: [push]

jobs:

analyze:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm clean-install
- uses: codacy/codacy-analysis-cli-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
- uses: codacy/codacy-analysis-cli-action@master
with:
output: results.sarif
format: sarif
gh-code-scanning-compat: true
max-allowed-issues: 2147483647
- uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif

test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12.x, 14.x, 15.x]
node: [16, 18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm clean-install
- run: npm test
- if: matrix.node == '15.x'
- if: matrix.node == '20'
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/lcov.info
coverage-reports: .tap/report/lcov.info

release:
runs-on: ubuntu-latest
needs: [test]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm clean-install
- id: set_vars
run: |
Expand All @@ -66,13 +74,13 @@ jobs:
runs-on: ubuntu-latest
needs: [release]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm clean-install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
registry-url: https://npm.pkg.github.com
- run: npm publish
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.nyc_output/
.tap/
.vagrant/
/*.js
coverage/
node_modules/
2 changes: 1 addition & 1 deletion .remarkrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
plugins:
- '@mgsisk/remark-lint-config'
- "@mgsisk/remark-lint-config"
5 changes: 2 additions & 3 deletions .taprc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
100: true
coverage-report: lcov
no-browser: true
coverage-report:
- lcovonly
5 changes: 1 addition & 4 deletions .yaml-lint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"schema": "DEFAULT_SAFE_SCHEMA",
"ignore": [
"coverage/**",
"node_modules/**"
]
"ignore": ["node_modules/**"]
}
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@ Notable project changes. Versions are [semantic][].

## [Unreleased][]

No unreleased changes.
### Added

- `ecmaVersion: latest` to standard config

### Changed

- File formatting now handled by Prettier
- typescript config now uses `@typescript-eslint/stylistic-type-checked` and
`@typescript-eslint/strict-type-checked`

### Removed

- `env` option from standard config
- A significant number of deprecated rules
- WordPress ESlint configuration

## [3.0.0][] - 2021-05-07

Expand Down
10 changes: 5 additions & 5 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Examples of responses to code of conduct violations include:
## Reporting

Report violations of this code of conduct to the community leaders responsible
for addressing such violations at [conduct@mgsisk.com][]. Community leaders will
for addressing such violations at [help@mgsisk.com][]. Community leaders will
make every effort to acknowledge, review, and address violations as soon as
possible. Reports will remain confidential, and any public statements resulting
from a report will keep the identities of victims and reporters confidential
Expand All @@ -52,9 +52,9 @@ unless those individuals instruct community leaders otherwise.
## Appealing

Individual(s) that believe they have been falsely or unfairly accused of
violating this code of conduct should notify [conduct@mgsisk.com][] with a
concise description of their grievance. Community leaders will make every effort
to acknowledge, review, and address grievances.
violating this code of conduct should notify [help@mgsisk.com][] with a concise
description of their grievance. Community leaders will make every effort to
acknowledge, review, and address grievances.

## Scope

Expand All @@ -64,4 +64,4 @@ any space, and any communications related to community business. It also applies
to unacceptable behavior occurring outside the community when such behavior may
adversely affect the safety and well-being of community participants.

[conduct@mgsisk.com]: mailto:conduct@mgsisk.com
[help@mgsisk.com]: mailto:help@mgsisk.com
14 changes: 2 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ and [npm-scripts][] provide the tools required to maintain a consistent coding
style and automate essential development tasks. Install the project dependencies
with `npm install`, then use `npm run` to see a list of available tasks.

A [Vagrant][] environment using the [VirtualBox][] provider is available if
you're unwilling or unable to install Node. Run `vagrant up` and then use
`vagrant ssh` to connect to the virtual machine or issue commands directly.

### Test

Changes must adhere to this project's coding and documentation standards. All
Expand Down Expand Up @@ -87,9 +83,7 @@ doubt, squash to a single commit.

Direct financial support from the community is always a great way to contribute
to this project; it provides essential monetary support and encourages ongoing
development. If you'd like to fund a specific issue with this project, please
use [IssueHunt][]. If you'd like to fund this project's maintainer and their
ongoing work on this and other projects, please use [Liberapay][].
development.

[a good commit message]: https://chris.beams.io/posts/git-commit
[bug report template]: .github/ISSUE_TEMPLATE/bug-report.md
Expand All @@ -101,15 +95,11 @@ ongoing work on this and other projects, please use [Liberapay][].
[discussions]: https://github.com/mgsisk/eslint-config/discussions
[feature request template]: .github/ISSUE_TEMPLATE/feature-request.md
[forking this repository]: https://help.github.com/en/github/getting-started-with-github/fork-a-repo
[funding]: .github/FUNDING.yml?sponsor=1
[issuehunt]: https://issuehunt.io/r/mgsisk
[funding]: https://github.com/sponsors/mgsisk
[issues]: https://github.com/mgsisk/eslint-config/issues
[liberapay]: https://liberapay.com/mgsisk
[node.js]: https://nodejs.org
[npm-scripts]: https://docs.npmjs.com/misc/scripts
[pull request template]: .github/PULL_REQUEST_TEMPLATE.md
[pulls]: https://github.com/mgsisk/eslint-config/pulls
[security policy]: SECURITY.md
[support resources]: SUPPORT.md
[vagrant]: https://www.vagrantup.com
[virtualbox]: https://www.virtualbox.org
22 changes: 11 additions & 11 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
ISC License

Copyright (c) 2018, Michael Sisk
Copyright 2018 Michael Sisk

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ for JavaScript development.
- `@mgsisk/eslint-config/typescript` – Configuration for TypeScript development
using [@typescript-eslint/parser][] and extra rules from
[@typescript-eslint/eslint-plugin][].
- `@mgsisk/eslint-config/wordpress` – Configuration for WordPress development
using [@wordpress/eslint-plugin][].

## Installation

Expand Down Expand Up @@ -52,14 +50,13 @@ anyone that has found this project useful.

[ISC][]

[@babel/eslint-parser]: https://npmjs.com/package/@wordpress/eslint-plugin
[@babel/eslint-plugin]: https://npmjs.com/package/@wordpress/eslint-plugin
[@typescript-eslint/eslint-plugin]: https://npmjs.com/package/@wordpress/eslint-plugin
[@typescript-eslint/parser]: https://npmjs.com/package/@wordpress/eslint-plugin
[@wordpress/eslint-plugin]: https://npmjs.com/package/@wordpress/eslint-plugin
[badge-build]: https://img.shields.io/github/workflow/status/mgsisk/eslint-config/build
[@babel/eslint-parser]: https://www.npmjs.com/package/@babel/eslint-parser
[@babel/eslint-plugin]: https://www.npmjs.com/package/@babel/eslint-plugin
[@typescript-eslint/eslint-plugin]: https://www.npmjs.com/package/@typescript-eslint/eslint-plugin
[@typescript-eslint/parser]: https://npmjs.com/package/@typescript-eslint/parser
[badge-build]: https://img.shields.io/github/actions/workflow/status/mgsisk/eslint-config/build.yml
[badge-coverage]: https://img.shields.io/codacy/coverage/214d41f28f1e4970974e1ea25fe6492e
[badge-funding]: https://img.shields.io/liberapay/receives/mgsisk
[badge-funding]: https://img.shields.io/github/sponsors/mgsisk
[badge-quality]: https://img.shields.io/codacy/grade/214d41f28f1e4970974e1ea25fe6492e
[badge-release]: https://img.shields.io/github/v/tag/mgsisk/eslint-config?sort=semver
[changelog]: CHANGELOG.md
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Project maintainers encourage contributions from external security researchers.

## Disclosure

Report security issues for this project to [security@mgsisk.com][] with this
Report security issues for this project to [help@mgsisk.com][] with this
project's name in the subject line. Project maintainers will make every effort
to acknowledge, review, and address security issues. Reporters will receive
progress updates, and should work with project maintainers as much as they are
Expand Down Expand Up @@ -34,4 +34,4 @@ to the individual(s) responsible for maintaining those projects.
Project maintainers are not aware of any outstanding security issues.

[changelog]: CHANGELOG.md
[security@mgsisk.com]: mailto:security@mgsisk.com
[help@mgsisk.com]: mailto:help@mgsisk.com
8 changes: 0 additions & 8 deletions SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@ before you begin.
If you've found a bug or want to suggest a new feature, submit an issue. See the
[contributing guidelines][] for help with submitting an issue.

## [Contact][]

If you need more direct help, you can contact the maintainer via [Otechie][].
This is a great way to receive individualized help while providing financial
support to this project.

[code of conduct]: CODE_OF_CONDUCT.md
[contact]: https://otechie.com/mgsisk
[contributing guidelines]: CONTRIBUTING.md
[discussions]: https://github.com/mgsisk/eslint-config/discussions
[issues]: https://github.com/mgsisk/eslint-config/issues
[otechie]: https://otechie.com
10 changes: 4 additions & 6 deletions THANKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@ the standard ESLint rules:
- [@babel/eslint-plugin][]
- [@typescript-eslint/eslint-plugin][]
- [@typescript-eslint/parser][]
- [@wordpress/eslint-plugin][]
- [eslint-plugin-eslint-comments][]
- [eslint-plugin-import][]
- [eslint-plugin-jsdoc][]
- [eslint-plugin-promise][]
- [eslint-plugin-sonarjs][]

[@babel/eslint-parser]: https://npmjs.com/package/@wordpress/eslint-plugin
[@babel/eslint-plugin]: https://npmjs.com/package/@wordpress/eslint-plugin
[@typescript-eslint/eslint-plugin]: https://npmjs.com/package/@wordpress/eslint-plugin
[@typescript-eslint/parser]: https://npmjs.com/package/@wordpress/eslint-plugin
[@wordpress/eslint-plugin]: https://npmjs.com/package/@wordpress/eslint-plugin
[@babel/eslint-parser]: https://npmjs.com/package/@babel/eslint-parser
[@babel/eslint-plugin]: https://npmjs.com/package/@babel/eslint-plugin
[@typescript-eslint/eslint-plugin]: https://npmjs.com/package/@typescript-eslint/eslint-plugin
[@typescript-eslint/parser]: https://npmjs.com/package/@typescript-eslint/parser
[authors]: AUTHORS.md
[eslint-plugin-eslint-comments]: https://npmjs.com/package/eslint-plugin-eslint-comments
[eslint-plugin-import]: https://npmjs.com/package/eslint-plugin-import
Expand Down
Loading
Loading