Skip to content

Commit

Permalink
refactor(legacy-removed): removido código antigo e suporte somente pa…
Browse files Browse the repository at this point in the history
…ra flat-config
  • Loading branch information
andrefelipeschulle committed Jun 14, 2024
1 parent f0d9eff commit a994d44
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1,689 deletions.
36 changes: 0 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,42 +55,6 @@ export default [
This library focuses on linter and prettier was separated for better performance, to use prettier together with ESlint, following this documentation
[BrainyLab Prettier Config](https://www.npmjs.com/package/@brainylab/prettier-config)

## Usage Config Legacy

create file .eslintrc.json in main project folder, add the lines below in the file.

#### config node project

```json
{
"extends": "@brainylab/eslint-config/node"
}
```

#### config react project

```json
{
"extends": "@brainylab/eslint-config/react"
}
```

#### config react-native project

```json
{
"extends": "@brainylab/eslint-config/react-native"
}
```

#### config next project

```json
{
"extends": "@brainylab/eslint-config/next"
}
```

### Config VS Code to auto fix

create ou alter `.vscode/settings.json`.
Expand Down
21 changes: 0 additions & 21 deletions legacy/default-rules.js

This file was deleted.

45 changes: 0 additions & 45 deletions legacy/node.js

This file was deleted.

21 changes: 3 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brainylab/eslint-config",
"version": "2.0.2",
"version": "2.1.0",
"license": "MIT",
"type": "module",
"author": {
Expand Down Expand Up @@ -30,31 +30,18 @@
"description": "ESLint config for BrainyLab projects",
"main": "index.js",
"scripts": {
"build": "npx tsup && cp ./legacy/* dist",
"build": "npx tsup",
"commit:add": "git add .",
"commit:detail": "cz",
"commit:push": "git push",
"commit": "pnpm commit:add && pnpm commit:detail && pnpm commit:push"
},
"dependencies": {
"@eslint/js": "9.4.0",
"@react-native/eslint-plugin": "0.74.0",
"@typescript-eslint/eslint-plugin": "6.19.1",
"@typescript-eslint/parser": "6.19.1",
"eslint": "9.4.0",
"eslint-config-next": "14.1.0",
"eslint-config-prettier": "9.1.0",
"eslint-config-standard": "17.1.0",
"eslint-define-config": "2.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-import-helpers": "1.3.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-n": "16.6.2",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-native": "4.1.0",
"eslint-plugin-import-x": "0.5.1",
"globals": "15.4.0",
"typescript-eslint": "7.13.0"
},
Expand All @@ -65,9 +52,7 @@
"@types/node": "20.14.2",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint-plugin-import-x": "0.5.1",
"tsup": "8.1.0",
"tsx": "4.15.2",
"typescript": "^5.4.5"
},
"engines": {
Expand Down
Loading

0 comments on commit a994d44

Please sign in to comment.