-
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.
Merge pull request #1 from empathyco/kickoff-repo
feat: kickoff repo
- Loading branch information
Showing
11 changed files
with
7,627 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Stop the editor from looking for .editorconfig files in the parent directories | ||
# root = true | ||
|
||
[*] | ||
# Non-configurable Prettier behaviors | ||
charset = utf-8 | ||
insert_final_newline = true | ||
# Caveat: Prettier won’t trim trailing whitespace inside template strings, but your editor might. | ||
# trim_trailing_whitespace = true | ||
|
||
# Configurable Prettier behaviors | ||
# (change these if your Prettier config differs) | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
max_line_length = 100 |
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,34 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
/coverage | ||
/output | ||
stats.html | ||
.cache | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# Lint cache | ||
.eslintcache | ||
.stylelintcache | ||
/.cache | ||
|
||
# Motive | ||
.loaded_actions |
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 @@ | ||
lts/iron |
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,2 +1,38 @@ | ||
# eslint-config | ||
ESLint config preset | ||
# @empathyco/eslint-config | ||
|
||
- [@antfu/eslint-config](https://github.com/antfu/eslint-config) as default ESLint config preset. | ||
- [Prettier](https://github.com/prettier/prettier) as code formatter sharing config preset. | ||
- [@eslint/config-inspector](https://github.com/eslint/config-inspector) the visual tool for inspecting and understanding your ESLint flat configs. | ||
|
||
## Usage | ||
|
||
### Install | ||
|
||
```bash | ||
npm i -D eslint @empathyco/eslint-config | ||
``` | ||
|
||
And create `eslint.config.mjs` in your project root: | ||
|
||
```js | ||
// eslint.config.mjs | ||
import { empathyco } from '@empathyco/eslint-config'; | ||
|
||
export default empathyco(); | ||
``` | ||
|
||
### Add script for package.json | ||
|
||
For example: | ||
|
||
```json | ||
{ | ||
"scripts": { | ||
"lint": "eslint --fix .", | ||
"lint:check": "eslint .", | ||
"lint:inspect": "eslint --inspect-config .", | ||
"format": "prettier --write .", | ||
"format:check": "prettier --check ." | ||
} | ||
} | ||
``` |
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 { empathyco } from './src'; | ||
|
||
export default empathyco(); |
Oops, something went wrong.