Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency eslint-define-config to v2 #45

Merged
merged 3 commits into from
Jan 3, 2024
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^1.24.1",
"eslint-define-config": "^2.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-antfu": "^1.0.13",
"eslint-plugin-deprecation": "^2.0.0",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/antfu.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import antfuPlugin from 'eslint-plugin-antfu'

export function antfu() {
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
const config = [
{
plugins: {
Expand Down
2 changes: 1 addition & 1 deletion src/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { typescript } from './typescript.js'
import { unicorn } from './unicorn.js'

export function basic() {
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
const config = [
{
// @ts-expect-error: 'readonly' and cannot be assigned to the mutable type 'string[]'
Expand Down
2 changes: 1 addition & 1 deletion src/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import importPlugin from 'eslint-plugin-import'

export function imports() {
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
const config = [
{
plugins: {
import: importPlugin,

Check warning on line 11 in src/imports.js

View workflow job for this annotation

GitHub Actions / lint

Unsafe assignment of an `any` value
},
settings: {
'import/resolver': {
Expand Down
2 changes: 1 addition & 1 deletion src/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import markdownPlugin from 'eslint-plugin-markdown'
import { GLOB_MARKDOWN, GLOB_SRC, GLOB_VUE } from './shared.js'

export function markdown() {
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
const config = [
{
files: [GLOB_MARKDOWN],
Expand Down
2 changes: 1 addition & 1 deletion src/no-only-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import plugin from 'eslint-plugin-no-only-tests'

export function noOnlyTests() {
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
const config = [
{
plugins: {
'no-only-tests': plugin,

Check warning on line 11 in src/no-only-tests.js

View workflow job for this annotation

GitHub Actions / lint

Unsafe assignment of an `any` value
},
rules: {
'no-only-tests/no-only-tests': 'error',
Expand Down
2 changes: 1 addition & 1 deletion src/package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { GLOB_PACKAGE_JSON } from './shared.js'
* Sort package.json keys
*/
export function packageJson() {
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
const config = [
{
files: [GLOB_PACKAGE_JSON],
Expand Down
2 changes: 1 addition & 1 deletion src/prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
* have to run `pretter` separately for formatting.
*/
export function prettier() {
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
const config = [
{
rules: {

Check warning on line 13 in src/prettier.js

View workflow job for this annotation

GitHub Actions / lint

Unsafe assignment of an `any` value
...prettierConfig.rules,

Check warning on line 14 in src/prettier.js

View workflow job for this annotation

GitHub Actions / lint

Unsafe member access .rules on an `any` value
},
},
]
Expand Down
2 changes: 1 addition & 1 deletion src/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
import { GLOB_TS, GLOB_TSX } from './shared.js'

export function react() {
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
const config = [
{
files: [GLOB_TS, GLOB_TSX],
plugins: {
react: reactPlugin,

Check warning on line 16 in src/react.js

View workflow job for this annotation

GitHub Actions / lint

Unsafe assignment of an `any` value
},
languageOptions: {
parserOptions: {
Expand All @@ -27,8 +27,8 @@
version: 'detect',
},
},
rules: {

Check warning on line 30 in src/react.js

View workflow job for this annotation

GitHub Actions / lint

Unsafe assignment of an `any` value
...reactPlugin.configs.recommended.rules,

Check warning on line 31 in src/react.js

View workflow job for this annotation

GitHub Actions / lint

Unsafe member access .configs on an `any` value
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
},
Expand All @@ -37,7 +37,7 @@
{
files: [GLOB_TS, GLOB_TSX],
plugins: {
'react-hooks': reactHooksPlugin,

Check warning on line 40 in src/react.js

View workflow job for this annotation

GitHub Actions / lint

Unsafe assignment of an `any` value
},
rules: {
'react-hooks/rules-of-hooks': 'error',
Expand Down
2 changes: 1 addition & 1 deletion src/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { GLOB_JS, GLOB_JSX, GLOB_TS, GLOB_TSX } from './shared.js'
export { tsParser, tsPlugin }

export function typescript() {
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
const config = [
{
files: [GLOB_TS, GLOB_TSX, GLOB_JS, GLOB_JSX],
Expand Down
2 changes: 1 addition & 1 deletion src/unicorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import plugin from 'eslint-plugin-unicorn'

export function unicorn() {
/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
const config = [
{
plugins: {
unicorn: plugin,

Check warning on line 11 in src/unicorn.js

View workflow job for this annotation

GitHub Actions / lint

Unsafe assignment of an `any` value
},
rules: {
// Pass error message when throwing errors
Expand Down