Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
nekochan0122 committed Aug 28, 2024
0 parents commit 11f8daf
Show file tree
Hide file tree
Showing 16 changed files with 2,696 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 NekoChan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# @nekochan/config

## ESlint (Flat Config + TypeScript)

1. Install ESlint

```bash
pnpm i -D eslint typescript-eslint @eslint/js @eslint/compat @types/eslint__js
```

2. Install Base Plugins

```bash
pnpm i -D @stylistic/eslint-plugin eslint-plugin-import eslint-plugin-simple-import-sort eslint-plugin-unicorn
```

3. Install Config and Use it

```bash
pnpm i -D @nekochan/config
```

```js
import baseConfig from '@nekochan/config/eslint/base'

export default baseConfig
```
7 changes: 7 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import tseslint from 'typescript-eslint'

import baseConfig from './src/eslint/presets/base.js'

export default tseslint.config(
...baseConfig,
)
40 changes: 40 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "@nekochan0122/config",
"description": "NekoChan's config",
"version": "0.0.1-alpha.1",
"license": "MIT",
"repository": "https://github.com/nekochan0122/config",
"author": {
"name": "NekoChan",
"url": "https://github.com/NekoChan0122"
},
"keywords": [
"config",
"eslint"
],
"exports": {
".": "./src/"
},
"type": "module",
"devDependencies": {
"@eslint/compat": "^1.1.1",
"@eslint/js": "^9.9.1",
"@stylistic/eslint-plugin": "^2.6.4",
"@types/eslint__js": "^8.42.3",
"eslint": "^9.9.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^55.0.0",
"typescript-eslint": "^8.3.0"
},
"peerDependencies": {
"@eslint/compat": ">=1.1.0",
"@eslint/js": ">=9.9.0",
"@stylistic/eslint-plugin": ">=2.6.0",
"eslint": ">=9.9.0",
"eslint-plugin-import": ">=2.29.0",
"eslint-plugin-simple-import-sort": ">=12.1.0",
"eslint-plugin-unicorn": ">=55.0.0",
"typescript-eslint": ">=8.3.0"
}
}
Loading

0 comments on commit 11f8daf

Please sign in to comment.