-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #4
- Loading branch information
Showing
30 changed files
with
617 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"eslint.experimental.useFlatConfig": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import lvjiaxuan from '@lvjiaxuan/eslint-plugin/flat' | ||
|
||
export default lvjiaxuan.configs.recommended |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
{ | ||
"name": "@lvjiaxuan/eslint-config-monorepo", | ||
"type": "module", | ||
"version": "0.7.0", | ||
"private": true, | ||
"author": "lvjiaxuan <471501748@qq.com> (https://github.com/lvjiaxuan)", | ||
"license": "MIT", | ||
"homepage": "https://github.com/lvjiaxuan/@lvjiaxuan/eslint-config-monorepo#README.md", | ||
"scripts": { | ||
"lint": "eslint .", | ||
"lint": "nix cross-env ESLINT_USE_FLAT_CONFIG=false eslint -c=.eslintrc.json .", | ||
"lint:flat": "nix cross-env ESLINT_USE_FLAT_CONFIG=true eslint .", | ||
"test": "nr -r test", | ||
"prepare": "nr -r stub" | ||
"build": "nr -r build", | ||
"prepare": "nr build" | ||
}, | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
"@lvjiaxuan/eslint-plugin": "workspace:*", | ||
"@types/eslint": "^8.21.1", | ||
"eslint": "^8.35.0", | ||
"execa": "^7.0.0", | ||
"tsup": "^6.6.3", | ||
"typescript": "^4.9.5", | ||
"unbuild": "^1.1.2" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"extends": "plugin:@lvjiaxuan/recommended" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import eslint from 'eslint' | ||
import vue from '@lvjiaxuan/eslint-config-vue/flat' | ||
|
||
/** | ||
* @type {Array.<eslint.Linter.FlatConfig>} | ||
*/ | ||
export default vue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env node | ||
'use strict' | ||
import '../dist/add.mjs' | ||
import '../dist/add.mjs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import eslint from 'eslint' | ||
import lvjiaxuan from '@lvjiaxuan/eslint-config/flat' | ||
import index from './index' | ||
|
||
const pluginRules = index.rules | ||
|
||
/** @type {eslint.ESLint.Plugin} */ | ||
export default { | ||
configs: { | ||
recommended: [ | ||
...lvjiaxuan, | ||
{ | ||
files: [ '**/*.js', '**/*.cjs', '**/*.mjs', '**/*.ts', '**/*.d.ts', '**/*.tsx', '**/*.mts', '**/*.cts' ], | ||
plugins: { '@lvjiaxuan': { rules: pluginRules } }, | ||
rules: index.configs.recommended.rules, | ||
}, | ||
], | ||
}, | ||
rules: pluginRules, | ||
} |
Oops, something went wrong.