Skip to content

Commit

Permalink
feat: add support for flat configs
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher committed Dec 6, 2023
1 parent 705370a commit 40ecd25
Show file tree
Hide file tree
Showing 79 changed files with 1,927 additions and 168 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.js
Expand Up @@ -26,7 +26,7 @@ module.exports = {
parserOptions: {
sourceType: 'module',
project: [
'./tsconfig.eslint.json',
'./tsconfig.json',
'./packages/*/tsconfig.json',
/**
* We are currently in the process of transitioning to nx's out of the box structure and
Expand Down Expand Up @@ -301,6 +301,7 @@ module.exports = {
'./packages/eslint-plugin-internal/src/rules/**/*.ts',
'./packages/eslint-plugin-tslint/src/rules/**/*.ts',
'./packages/eslint-plugin/src/configs/**/*.ts',
'./packages/core/src/configs/**/*.ts',
'./packages/eslint-plugin/src/rules/**/*.ts',
],
rules: {
Expand Down Expand Up @@ -362,6 +363,7 @@ module.exports = {
files: [
'./packages/scope-manager/src/lib/*.ts',
'./packages/eslint-plugin/src/configs/*.ts',
'./packages/core/src/configs/*.ts',
],
rules: {
'@typescript-eslint/internal/no-poorly-typed-ts-props': 'off',
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/07-enhancement-other.yaml
Expand Up @@ -24,6 +24,7 @@ body:
description: Select the package against which you want to report the bug.
options:
- ast-spec
- core
- eslint-plugin-tslint
- parser
- scope-manager
Expand Down
5 changes: 5 additions & 0 deletions .github/renovate.json5
Expand Up @@ -78,6 +78,11 @@
matchPackagePrefixes: ['@types/jest', 'jest', '@jest'],
groupName: 'jest',
},
{
matchPackageNames: ['eslint'],
matchPackagePrefixes: ['@eslint'],
groupName: 'eslint',
},
],
postUpdateOptions: [
// run yarn dedupe to cleanup the lockfile after updates
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -163,6 +163,7 @@ jobs:
package:
[
'ast-spec',
'core',
'eslint-plugin',
'eslint-plugin-internal',
'eslint-plugin-tslint',
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/semantic-pr-titles.yml
Expand Up @@ -27,6 +27,7 @@ jobs:
scopes: |
deps
ast-spec
core
eslint-plugin
eslint-plugin-internal
eslint-plugin-tslint
Expand Down
2 changes: 2 additions & 0 deletions .vscode/settings.json
Expand Up @@ -9,6 +9,8 @@
"typescript",
"typescriptreact"
],
// required to make the extension pickup the flat config
"eslint.experimental.useFlatConfig": true,

// When enabled, will trim trailing whitespace when saving a file.
"files.trimTrailingWhitespace": true,
Expand Down
12 changes: 12 additions & 0 deletions docs/packages/Core.mdx
@@ -0,0 +1,12 @@
---
id: core
sidebar_label: core
---

# `@typescript-eslint/core`

> Tooling which enables you to use TypeScript with ESLint
This package is the main entrypoint that you can use to consume our tooling with ESLint.

// TODO(bradzacher) - docs on using the tooling

0 comments on commit 40ecd25

Please sign in to comment.