Skip to content

Commit b167ac4

Browse files
authored
chore: start migration, yarn v4, changesets, workflows (#13)
1 parent c08c379 commit b167ac4

File tree

288 files changed

+24293
-14516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+24293
-14516
lines changed

.babelrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

.c8rc.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
2-
"reporter": ["lcov"],
3-
"include": ["lib/**/*.js"],
4-
"exclude": ["lib/test/**/*.js"]
2+
"reporter": [
3+
"lcov"
4+
],
5+
"include": [
6+
"lib/**/*.js"
7+
],
8+
"exclude": [
9+
"lib/test/**/*.js"
10+
]
511
}

.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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "es-tooling/eslint-plugin-jsx-a11y-x"
7+
}
8+
],
9+
"commit": false,
10+
"fixed": [],
11+
"access": "public",
12+
"baseBranch": "main",
13+
"updateInternalDependencies": "patch",
14+
"ignore": []
15+
}

.changeset/soft-ears-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-jsx-a11y-x": minor
3+
---
4+
5+
chore: start migration, yarn v4, changesets, workflows

.codesandbox/ci.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"node": "20",
3+
"sandboxes": []
4+
}

.editorconfig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
root = true
2-
3-
[*]
4-
end_of_line = lf
5-
indent_size = 2
6-
indent_style = space
7-
trim_trailing_whitespace = true
1+
root=true
2+
3+
[*]
4+
end_of_line=lf
5+
indent_size=2
6+
indent_style=space
7+
trim_trailing_whitespace=true

.env.yarn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ESLINT_USE_FLAT_CONFIG=false

.eslint-doc-generatorrc.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { format } from 'prettier';
2+
3+
import prettierRC from './.prettierrc.mjs';
4+
5+
/** @type {import('eslint-doc-generator').GenerateOptions} */
6+
const config = {
7+
postprocess: content =>
8+
format(content, { ...prettierRC, parser: 'markdown' }),
9+
};
10+
11+
export default config;

.eslintrc.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
module.exports = {
2+
root: true,
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:import-x/recommended',
6+
'plugin:ft-flow/recommended',
7+
'prettier',
8+
],
9+
ignorePatterns: ['lib/', 'reports/', 'examples/'],
10+
parser: '@babel/eslint-parser',
11+
plugins: ['ft-flow'],
12+
rules: {
13+
'max-len': 'off',
14+
'no-template-curly-in-string': 'off',
15+
'import-x/no-extraneous-dependencies': 'error',
16+
},
17+
settings: {
18+
'import-x/resolver': 'typescript',
19+
},
20+
overrides: [
21+
{
22+
files: ['src/rules/*'],
23+
extends: ['plugin:eslint-plugin/rules-recommended'],
24+
rules: {
25+
'eslint-plugin/require-meta-docs-description': [
26+
'error',
27+
{
28+
pattern: '^(Enforce|Require|Disallow)',
29+
},
30+
],
31+
'eslint-plugin/require-meta-docs-url': [
32+
'error',
33+
{
34+
pattern:
35+
'https://github.com/es-tooling/eslint-plugin-jsx-a11y-x/tree/HEAD/docs/rules/{{name}}.md',
36+
},
37+
],
38+
'eslint-plugin/require-meta-type': 'off',
39+
// disable temporarily
40+
'eslint-plugin/prefer-message-ids': 'off',
41+
},
42+
},
43+
{
44+
files: ['__tests__/src/rules/*.js'],
45+
extends: ['plugin:eslint-plugin/tests-recommended'],
46+
},
47+
{
48+
files: ['__tests__/**/*'],
49+
env: {
50+
jest: true,
51+
},
52+
},
53+
],
54+
};

0 commit comments

Comments
 (0)