Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 0 additions & 17 deletions .babelrc

This file was deleted.

12 changes: 9 additions & 3 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"reporter": ["lcov"],
"include": ["lib/**/*.js"],
"exclude": ["lib/test/**/*.js"]
"reporter": [
"lcov"
],
"include": [
"lib/**/*.js"
],
"exclude": [
"lib/test/**/*.js"
]
}
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/config/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "es-tooling/eslint-plugin-jsx-a11y-x"
}
],
"commit": false,
"fixed": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/soft-ears-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-jsx-a11y-x": minor
---

chore: start migration, yarn v4, changesets, workflows
4 changes: 4 additions & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"node": "20",
"sandboxes": []
}
14 changes: 7 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
root = true
[*]
end_of_line = lf
indent_size = 2
indent_style = space
trim_trailing_whitespace = true
root=true

[*]
end_of_line=lf
indent_size=2
indent_style=space
trim_trailing_whitespace=true
1 change: 1 addition & 0 deletions .env.yarn
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ESLINT_USE_FLAT_CONFIG=false
11 changes: 11 additions & 0 deletions .eslint-doc-generatorrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { format } from 'prettier';

import prettierRC from './.prettierrc.mjs';

/** @type {import('eslint-doc-generator').GenerateOptions} */
const config = {
postprocess: content =>
format(content, { ...prettierRC, parser: 'markdown' }),
};

export default config;
54 changes: 54 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:import-x/recommended',
'plugin:ft-flow/recommended',
'prettier',
],
ignorePatterns: ['lib/', 'reports/', 'examples/'],
parser: '@babel/eslint-parser',
plugins: ['ft-flow'],
rules: {
'max-len': 'off',
'no-template-curly-in-string': 'off',
'import-x/no-extraneous-dependencies': 'error',
},
settings: {
'import-x/resolver': 'typescript',
},
overrides: [
{
files: ['src/rules/*'],
extends: ['plugin:eslint-plugin/rules-recommended'],
rules: {
'eslint-plugin/require-meta-docs-description': [
'error',
{
pattern: '^(Enforce|Require|Disallow)',
},
],
'eslint-plugin/require-meta-docs-url': [
'error',
{
pattern:
'https://github.com/es-tooling/eslint-plugin-jsx-a11y-x/tree/HEAD/docs/rules/{{name}}.md',
},
],
'eslint-plugin/require-meta-type': 'off',
// disable temporarily
'eslint-plugin/prefer-message-ids': 'off',
},
},
{
files: ['__tests__/src/rules/*.js'],
extends: ['plugin:eslint-plugin/tests-recommended'],
},
{
files: ['__tests__/**/*'],
env: {
jest: true,
},
},
],
};
36 changes: 36 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".

on:
pull_request:
types:
- opened
- reopened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js LTS
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: lts/*
cache: yarn

- name: Install dependencies
run: yarn --immutable

- name: Format Codes
run: yarn format

- name: Apply autofix.ci
uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1
with:
fail-fast: false
75 changes: 75 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: CI

on:
- push
- pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
name: Lint and Test with Node.js ${{ matrix.node }} and ESLint ${{ matrix.eslint }} on ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
node:
- 18
- 20
- 22
- 24
eslint:
- 8.56
- 8
- 9

include:
- executeLint: true
node: 20
os: ubuntu-latest
fail-fast: false

runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node }}
cache: yarn

# - name: Install ESLint ${{ matrix.eslint }}
# if: ${{ matrix.eslint != 9 }}
# run: |
# yarn add -D eslint@${{ matrix.eslint }} eslint-plugin-unicorn@56

- name: Install Dependencies
run: yarn --immutable

- name: Build and Test
run: yarn run-s build test

- name: Lint
run: yarn lint
if: ${{ matrix.executeLint }}
env:
PARSER_NO_WATCH: true

- name: Codecov
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Run codacy-coverage-reporter
# bad Windows -- https://github.com/codacy/codacy-coverage-reporter-action/issues/91
if: ${{ !github.event.pull_request.head.repo.fork && matrix.os != 'windows-latest' }}
uses: codacy/codacy-coverage-reporter-action@89d6c85cfafaec52c72b6c5e8b2878d33104c699 # v1.3.0
continue-on-error: true
with:
api-token: ${{ secrets.CODACY_API_TOKEN }}
37 changes: 0 additions & 37 deletions .github/workflows/main.yml

This file was deleted.

Loading
Loading