Skip to content

Commit

Permalink
internal: Use eslint flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Sep 9, 2024
1 parent 4e25f4c commit b6446be
Show file tree
Hide file tree
Showing 19 changed files with 195 additions and 1,244 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-lamps-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@data-client/react': patch
---

fix: ExternalDataProvider correctly tracks unmounting
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
setup:
docker: &docker
# specify the version you desire here
- image: cimg/node:22.4
- image: cimg/node:22.7
resource_class: large
steps:
- checkout:
Expand Down Expand Up @@ -48,6 +48,7 @@ jobs:
- project/jest.config.js
- project/tsconfig-base.json
- project/tsconfig.json
- project/eslint.config.mjs
- project/yarn.lock
- project/tsconfig.test.json
- project/package.json
Expand All @@ -61,7 +62,7 @@ jobs:
at: ~/
- run:
command: |
yarn lint packages/*/src
yarn lint --quiet packages/*/src
typecheck:
docker: *docker
Expand Down
1 change: 0 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"downlevel-dts",
"immutable",
"@types/lodash",
"cimg/node",
"nock"
],
"timezone": "America/Chicago",
Expand Down
50 changes: 50 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import anansiPlugin from '@anansi/eslint-plugin';
import globals from 'globals';

export default [
...anansiPlugin.configs.typescript,
{
ignores: [
'**/lib*/*',
'**/dist*/*',
'packages/*/native/*',
'**/node_modules*/*',
'node_modules/*',
'**/src-*-types/*',
],
},
{
files: ['**/*.?(m|c)ts?(x)'],
rules: {
'@typescript-eslint/no-empty-function': 'warn',
},
},
{
files: ['**/__tests__/**/*.?(m|c)ts?(x)', '**/*.test?(.*).?(m|c)ts?(x)'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
},
},
{
files: ['**/*.?(m|c)js?(x)'],
settings: {
'import/resolver': {
node: {},
},
},
},
{
languageOptions: {
globals: {
...globals.browser,
process: 'writable',
},
},
},
{
files: ['examples/**/*.?(m|c)ts?(x)'],
rules: {
'no-console': 'off',
},
},
];
5 changes: 0 additions & 5 deletions examples/.eslintrc

This file was deleted.

1 change: 0 additions & 1 deletion examples/github-app/.eslintignore

This file was deleted.

Loading

0 comments on commit b6446be

Please sign in to comment.