Skip to content

Commit 1ce07be

Browse files
pkg: Update @anansi/eslint-plugin to v1 (#3202)
* pkg: Update `@anansi/eslint-plugin` to v1 * internal: Use eslint flat config --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nathaniel Tucker <[email protected]>
1 parent 5987b66 commit 1ce07be

File tree

19 files changed

+433
-1307
lines changed

19 files changed

+433
-1307
lines changed

.changeset/honest-lamps-add.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@data-client/react': patch
3+
---
4+
5+
fix: ExternalDataProvider correctly tracks unmounting

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
setup:
88
docker: &docker
99
# specify the version you desire here
10-
- image: cimg/node:22.4
10+
- image: cimg/node:22.7
1111
resource_class: large
1212
steps:
1313
- checkout:
@@ -48,6 +48,7 @@ jobs:
4848
- project/jest.config.js
4949
- project/tsconfig-base.json
5050
- project/tsconfig.json
51+
- project/eslint.config.mjs
5152
- project/yarn.lock
5253
- project/tsconfig.test.json
5354
- project/package.json
@@ -61,7 +62,7 @@ jobs:
6162
at: ~/
6263
- run:
6364
command: |
64-
yarn lint packages/*/src
65+
yarn lint --quiet packages/*/src
6566
6667
typecheck:
6768
docker: *docker

.github/renovate.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"downlevel-dts",
1212
"immutable",
1313
"@types/lodash",
14-
"cimg/node",
1514
"nock"
1615
],
1716
"timezone": "America/Chicago",

eslint.config.mjs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import anansiPlugin from '@anansi/eslint-plugin';
2+
import globals from 'globals';
3+
4+
export default [
5+
...anansiPlugin.configs.typescript,
6+
{
7+
ignores: [
8+
'**/lib*/*',
9+
'**/dist*/*',
10+
'packages/*/native/*',
11+
'**/node_modules*/*',
12+
'node_modules/*',
13+
'**/src-*-types/*',
14+
],
15+
},
16+
{
17+
files: ['**/*.?(m|c)ts?(x)'],
18+
rules: {
19+
'@typescript-eslint/no-empty-function': 'warn',
20+
},
21+
},
22+
{
23+
files: ['**/__tests__/**/*.?(m|c)ts?(x)', '**/*.test?(.*).?(m|c)ts?(x)'],
24+
rules: {
25+
'@typescript-eslint/no-unused-expressions': 'off',
26+
},
27+
},
28+
{
29+
files: ['**/*.?(m|c)js?(x)'],
30+
settings: {
31+
'import/resolver': {
32+
node: {},
33+
},
34+
},
35+
},
36+
{
37+
languageOptions: {
38+
globals: {
39+
...globals.browser,
40+
process: 'writable',
41+
},
42+
},
43+
},
44+
{
45+
files: ['examples/**/*.?(m|c)ts?(x)'],
46+
rules: {
47+
'no-console': 'off',
48+
},
49+
},
50+
];

examples/.eslintrc

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

examples/github-app/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)